git-svn-id: https://svn.coded.pt/svn/SIPRP@1194 bb69d46d-e84e-40c8-a05a-06db0d633741

lxbfYeaa
Tiago Simão 16 years ago
parent f6fdccf00d
commit 0d427363ac

@ -42,7 +42,5 @@
<classpathentry kind="lib" path="SIPRPSoft/lib/fop.jar"/> <classpathentry kind="lib" path="SIPRPSoft/lib/fop.jar"/>
<classpathentry kind="lib" path="common/lib/ashwood-2.0.jar"/> <classpathentry kind="lib" path="common/lib/ashwood-2.0.jar"/>
<classpathentry kind="lib" path="common/lib/cayenne-server-3.0M6.jar"/> <classpathentry kind="lib" path="common/lib/cayenne-server-3.0M6.jar"/>
<classpathentry kind="lib" path="SIPRPSoft/lib/evospellchecker.jar"/>
<classpathentry kind="lib" path="SIPRPSoft/lib/jazzy-core.jar"/>
<classpathentry kind="output" path="SIPRPSoft/build/classes"/> <classpathentry kind="output" path="SIPRPSoft/build/classes"/>
</classpath> </classpath>

@ -257,7 +257,7 @@ public class GerirNormalizacaoPanel extends JPanel implements LeafUIConstants, C
} ); } );
textCodigo.addCaretListener( this ); textCodigo.addCaretListener( this );
textAreaDescricao.addCaretListener( this ); textAreaDescricao.addCaretListener( this );
SpellChecker.getInstance().getSpellChecker().attachSpellCheckToComponent( textAreaDescricao ); SpellChecker.getInstance().attachSpellCheckToComponent( textAreaDescricao );
buttonPortuguesaCriar.addActionListener( new ActionListener() buttonPortuguesaCriar.addActionListener( new ActionListener()
{ {
@Override @Override

@ -68,10 +68,10 @@ public class GerirMedidaPanel extends JPanel
{ {
fieldTextMedida.setWrapStyleWord( true ); fieldTextMedida.setWrapStyleWord( true );
fieldTextMedida.setLineWrap( true ); fieldTextMedida.setLineWrap( true );
SpellChecker.getInstance().getSpellChecker().attachSpellCheckToComponent( fieldTextMedida ); SpellChecker.getInstance().attachSpellCheckToComponent( fieldTextMedida );
fieldTextRequisitosLegais.setWrapStyleWord( true ); fieldTextRequisitosLegais.setWrapStyleWord( true );
fieldTextRequisitosLegais.setLineWrap( true ); fieldTextRequisitosLegais.setLineWrap( true );
SpellChecker.getInstance().getSpellChecker().attachSpellCheckToComponent( fieldTextRequisitosLegais ); SpellChecker.getInstance().attachSpellCheckToComponent( fieldTextRequisitosLegais );
scrollMedida.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_NEVER ); scrollMedida.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_NEVER );
scrollMedida.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS ); scrollMedida.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS );
scrollRequesitos.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_NEVER ); scrollRequesitos.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_NEVER );

@ -80,8 +80,8 @@ public class GerirMedidaRelatorioPanel extends JPanel
fieldTextMedida.setLineWrap( true ); fieldTextMedida.setLineWrap( true );
fieldTextRequisitosLegais.setWrapStyleWord( true ); fieldTextRequisitosLegais.setWrapStyleWord( true );
fieldTextRequisitosLegais.setLineWrap( true ); fieldTextRequisitosLegais.setLineWrap( true );
SpellChecker.getInstance().getSpellChecker().attachSpellCheckToComponent( fieldTextRequisitosLegais ); SpellChecker.getInstance().attachSpellCheckToComponent( fieldTextRequisitosLegais );
SpellChecker.getInstance().getSpellChecker().attachSpellCheckToComponent( fieldTextMedida ); SpellChecker.getInstance().attachSpellCheckToComponent( fieldTextMedida );
scrollMedida.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_NEVER ); scrollMedida.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_NEVER );
scrollMedida.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS ); scrollMedida.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS );
scrollRequesitos.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_NEVER ); scrollRequesitos.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_NEVER );

@ -82,7 +82,7 @@ public class LeafTextAreaEditor extends JPanel
scroll.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS ); scroll.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS );
buttonSave.setMargin( new Insets(0,0,0,0) ); buttonSave.setMargin( new Insets(0,0,0,0) );
buttonRevert.setMargin( new Insets(0,0,0,0) ); buttonRevert.setMargin( new Insets(0,0,0,0) );
SpellChecker.getInstance().getSpellChecker().attachSpellCheckToComponent( fieldText ); SpellChecker.getInstance().attachSpellCheckToComponent( fieldText );
} }
private void startupLayout( boolean textField ) private void startupLayout( boolean textField )

@ -1,7 +1,7 @@
package siprp; package siprp;
import com.evolute.modules.spellchecker.EvoSpellChecker; import javax.swing.JTextArea;
import com.evolute.modules.spellchecker.EvoSpellChecker.Dictionary; import javax.swing.text.JTextComponent;
public class SpellChecker public class SpellChecker
@ -9,11 +9,11 @@ public class SpellChecker
private static SpellChecker instance = null; private static SpellChecker instance = null;
private final EvoSpellChecker spellChecker; // private final EvoSpellChecker spellChecker;
private SpellChecker() private SpellChecker()
{ {
this.spellChecker = new EvoSpellChecker( Dictionary.PT_PT ); // this.spellChecker = new EvoSpellChecker( Dictionary.PT_PT );
} }
public static SpellChecker getInstance() public static SpellChecker getInstance()
@ -25,9 +25,10 @@ public class SpellChecker
return instance; return instance;
} }
public EvoSpellChecker getSpellChecker() public void attachSpellCheckToComponent( JTextComponent fieldTextMedida )
{ {
return spellChecker; // TODO Auto-generated method stub
// spellChecker.attachSpellCheckToComponent( fieldTextMedida )
} }
} }

Loading…
Cancel
Save