Ontimize 5.2072EN

com.ontimize.gui.field
Class DictionaryDataField

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bycom.ontimize.gui.field.DataField
                      extended bycom.ontimize.gui.field.DictionaryDataField
All Implemented Interfaces:
AccessForm, javax.accessibility.Accessible, java.awt.event.ActionListener, ApplicationPreferencesListener, DataComponent, java.util.EventListener, FormComponent, HasHelpIdComponent, HasPreferenceComponent, IdentifiedElement, java.awt.image.ImageObserver, Internationalization, java.awt.MenuContainer, java.awt.event.MouseListener, OpenDialog, SecureElement, java.io.Serializable, ValueChangeDataComponent

public class DictionaryDataField
extends DataField
implements java.awt.event.MouseListener, java.awt.event.ActionListener, OpenDialog

Text field associated with a dictionary

Version:
1.0 31-01-2001
See Also:
Serialized Form

Nested Class Summary
protected  class DictionaryDataField.Analyzer
           
protected  class DictionaryDataField.DictionayDocument
           
protected  class DictionaryDataField.ExtendedTextPane
           
 
Nested classes inherited from class com.ontimize.gui.field.DataField
DataField.AuxPanel, DataField.CopyActionListener, DataField.ELabel, DataField.FieldButton, DataField.FieldFocusListener, DataField.InfoMouseListener, DataField.ToggleButton
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  DictionaryDataField.Analyzer analyzer
           
protected  java.lang.String changeDictionaryKey
           
protected  javax.swing.JMenuItem changeDictionaryMenu
           
protected  java.text.Collator collator
           
protected  java.lang.String currentDictionayFile
           
protected  java.lang.String currentLanguage
           
protected  java.util.Vector currentWordList
           
static boolean DEBUG_DICTIONARY
           
protected  int delay
           
protected  java.lang.String deleteKey
           
protected  javax.swing.JMenuItem deleteMenu
           
protected  java.lang.String dictionaryListFile
           
protected  DictionaryDataField.DictionayDocument doc
           
protected static DictionaryChangeListener globalListener
           
protected  java.lang.String initialLanguage
           
protected  java.util.Locale locale
           
protected  int maxLenght
           
protected  ExtendedJPopupMenu menu
           
protected  java.lang.String menuKey
           
protected  javax.swing.JMenuItem noSuggestionMenu
           
protected  java.awt.Frame parentFrame
           
protected  int rowNumber
           
protected  java.lang.String saveKey
           
protected  javax.swing.JMenuItem saveMenu
           
protected  boolean sQLTypeText
           
protected  java.lang.String suggestionKey
           
protected  javax.swing.JMenu suggestionMenu
           
protected  javax.swing.text.SimpleAttributeSet textErrorAttributes
           
protected  javax.swing.text.SimpleAttributeSet textOkAttributes
           
protected  boolean uppercase
           
protected static java.util.Hashtable wordList
           
 
Fields inherited from class com.ontimize.gui.field.DataField
advancedQueryMode, ALIGN, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, alignment, ASTERISK_REQUIRED_STYLE, ATTR, attribute, backgroundColor, BGCOLOR, bold, BOLD, BORDER, BORDER_REQUIRED_STYLE, borderText, BOTTOM, CENTER, CLIPBOARD_COPY, CLIPBOARD_COPY_es_ES, CLIPBOARD_CUT, CLIPBOARD_CUT_es_ES, CLIPBOARD_PASTE, CLIPBOARD_PASTE_es_ES, conditions, dataField, DEFAULT_BORDER, DEFAULT_BOTTOM_MARGIN, DEFAULT_FIELD_LEFT_MARGIN, DEFAULT_FIELD_RIGHT_MARGIN, DEFAULT_LABEL_LEFT_MARGIN, DEFAULT_LABEL_RIGHT_MARGIN, DEFAULT_PARENT_MARGIN, DEFAULT_PARENT_MARGIN_FOR_SCROLL, DEFAULT_TOP_MARGIN, defaultAsteriskColor, DEFAULTBORDER, defaultDisableBackgroundColor, defaultFieldButtonHigh, defaultPreferenceTextNotRetrievedFromPreferences, DEFINE_HELP_FIELD_PREFERENCE, dim, DIM, disabledbgcolor, DISABLEDBGCOLOR, empty, enabled, ENABLED, FIELD_HELP_TIP, fieldlistenerFocus, fieldSize, fireValueEvents, FOCUS_BACKGROUNDCOLOR, FONT, fontColor, FONTCOLOR, fontSize, FONTSIZE, height, HEIGHT, incrementalFont, initPreferenceHelpText, isEnabled, LABELALIGN, labelComponent, LABELFONT, LABELFONTCOLOR, labelPosition, LABELPOSITION, LABELSIZE, labelText, LABELVISIBLE, LEFT, LOWERED, menuCopy, menuCut, menuDefineHelpPreference, menuHelpPreferences, menuPaste, modifiable, NO_STR, NONE, noRequiredBorder, OPAQUE, originalSize, OUTBORDER, panel, parentForm, permissionActivate, permissionVisible, popupMenu, RAISED, redimensionPanel, redimensJTextField, required, REQUIRED, requiredBorder, REQUIREDBORDER, requiredFieldBackgroundColor, resources, restricted, RIGHT, show, showLabel, SIZE, TEXT_STR, TEXTALIGN, textAlignment, textHelpPreference, TIP, tipKey, TOP, validData, VALIGN, Valignment, valueListener, valueSave, VISIBLE, VISUALIZE_HELP_FIELD_PREFERENCE, weightDataFieldH, weightPanelH, width, WIDTH, x, X, y, Y, YES_STR
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface com.ontimize.gui.field.DataComponent
COMP_FOCUS_YELLOW, GREEN_VERY_LIGHT, LIGHT_GRAY_BLUE, LIGHT_GREYISH_BLUE, VERY_LIGHT_BLUE, VERY_LIGHT_GRAY, VERY_LIGHT_PINK, VERY_LIGHT_RED, VERY_LIGHT_SKYBLUE, VERY_LIGHT_YELLOW, VERY_LIGHT_YELLOW_2
 
Fields inherited from interface com.ontimize.gui.field.FormComponent
DEBUG
 
Fields inherited from interface com.ontimize.gui.i18n.Internationalization
DEBUG_LANGUAGE
 
Fields inherited from interface com.ontimize.gui.SecureElement
DESACTIVATE_COMPONENT_BY_PERMISSION_TIP
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, PROPERTIES, SOMEBITS
 
Constructor Summary
DictionaryDataField(java.util.Hashtable parameters)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          This method must not be overwrite
protected  boolean addFile(java.net.URL urlFile, java.lang.String word)
           
protected  void buildMenu()
           
 void deleteData()
          The method to delete data for component.
protected  boolean deleteWord(java.net.URL urlFile, java.lang.String word)
           
protected  boolean deleteWordInDictionary(java.lang.String word)
           
protected  void enableListenerInterno(boolean enable)
          Convenience function.
protected  void fireGlobalWordAdded(java.lang.String lang, java.util.Locale l, java.lang.String word)
           
protected  void fireGlobalWordRemoved(java.lang.String lang, java.util.Locale l, java.lang.String word)
           
protected  java.net.URL getEnabledDictionary()
           
 int getSQLDataType()
          Returns the sql data type according to java.sql.Types
protected  java.util.Vector getSuggestions(java.lang.String word)
           
 java.lang.Object getValue()
          Gets the value of a component.
 void init(java.util.Hashtable parameters)
          Inits parameters.
protected  void installSuggestionListener()
           
 boolean isEmpty()
          Checks the data existence in component.
 boolean isModifiable()
          Returns true when field is modifiable for this form.
protected  void loadDictionary(java.lang.String language)
           
protected  void loadDictionary(java.net.URL urlFile)
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
protected  java.util.Vector readFile(java.net.URL urlFile)
           
protected  void replaceWord(int i, java.lang.String orig, java.lang.String newWord)
           
protected  void runAnalyzer(int delay)
           
protected  void saveFileOutJar(java.net.URL urlFile)
           
protected  boolean saveWordInDictionary(java.lang.String word)
           
 void setComponentLocale(java.util.Locale l)
           
static void setDictionaryChangeListener(DictionaryChangeListener listener)
           
 void setModifiable(boolean modifiable)
          Sets modifiable the field.
 void setParentFrame(java.awt.Frame m)
          This method is called from Form for each component that implements this interface.
 void setResourceBundle(java.util.ResourceBundle resources)
          Sets the language resource bundle.
 void setValue(java.lang.Object value)
          Sets the value for component.
protected  void showPopupMenu(java.awt.Component c, int x, int y)
          Shows the pop-up menu.
protected  void showPopupMenu(java.awt.Component c, int x, int y, java.lang.String word, boolean delete, int offsetIni)
           
protected  void uninstallSuggestionListener()
           
 
Methods inherited from class com.ontimize.gui.field.DataField
addFocusListener, addHelpMenuPopup, addValueChangeListener, changeButton, changeOpacity, checkDefineHelpPermission, checkEnabledPermission, checkVisiblePermission, configurePopupMenuHelp, createFocusListener, createInstanceConditionCombo, createPopupMenu, defineHelpField, finalize, fireValueChanged, getAttribute, getBorder, getConstraints, getDataField, getDisabledbgcolor, getFontColor, getHelpIdString, getHelpPreferenceKey, getLabelComponent, getLabelComponentText, getLabelFontColor, getLabelText, getParentForm, getPreferenceHelpText, getText, getTextsToTranslate, getValueChangeListeners, hasHelpInPreferences, initPermissions, initPreferences, installFocusListener, installHelpId, installPopupMenuListener, installPreferenceHelpListener, isAdvancedQueryMode, isEnabled, isHidden, isLabelVisible, isModified, isRequired, isRestricted, parseBoolean, preferenceChanged, removeFocusListener, removeValueChangeListener, requestFocus, seeHelpField, setBold, setDisabledbgcolor, setEnabled, setFont, setFontColor, setFontSize, setLabelFontColor, setParentForm, setRequired, setRequiredFieldBackground, setVisible, updateBackgroundColor, updateBackgroundColor, updateFont, updateTip, updateUI, validateComponentPositions
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEBUG_DICTIONARY

public static boolean DEBUG_DICTIONARY

maxLenght

protected int maxLenght

uppercase

protected boolean uppercase

textErrorAttributes

protected javax.swing.text.SimpleAttributeSet textErrorAttributes

textOkAttributes

protected javax.swing.text.SimpleAttributeSet textOkAttributes

globalListener

protected static DictionaryChangeListener globalListener

initialLanguage

protected java.lang.String initialLanguage

currentDictionayFile

protected java.lang.String currentDictionayFile

currentLanguage

protected java.lang.String currentLanguage

dictionaryListFile

protected java.lang.String dictionaryListFile

locale

protected java.util.Locale locale

wordList

protected static java.util.Hashtable wordList

currentWordList

protected java.util.Vector currentWordList

menuKey

protected java.lang.String menuKey

saveKey

protected java.lang.String saveKey

deleteKey

protected java.lang.String deleteKey

changeDictionaryKey

protected java.lang.String changeDictionaryKey

suggestionKey

protected java.lang.String suggestionKey

menu

protected ExtendedJPopupMenu menu

saveMenu

protected javax.swing.JMenuItem saveMenu

deleteMenu

protected javax.swing.JMenuItem deleteMenu

changeDictionaryMenu

protected javax.swing.JMenuItem changeDictionaryMenu

suggestionMenu

protected javax.swing.JMenu suggestionMenu

noSuggestionMenu

protected javax.swing.JMenuItem noSuggestionMenu

parentFrame

protected java.awt.Frame parentFrame

delay

protected int delay

rowNumber

protected int rowNumber

sQLTypeText

protected boolean sQLTypeText

collator

protected java.text.Collator collator

analyzer

protected DictionaryDataField.Analyzer analyzer

doc

protected DictionaryDataField.DictionayDocument doc
Constructor Detail

DictionaryDataField

public DictionaryDataField(java.util.Hashtable parameters)
                    throws java.lang.IllegalArgumentException
Method Detail

runAnalyzer

protected void runAnalyzer(int delay)

buildMenu

protected void buildMenu()

init

public void init(java.util.Hashtable parameters)
Description copied from class: DataField
Inits parameters.

Specified by:
init in interface FormComponent
Overrides:
init in class DataField
Parameters:
parameters - the Hashtable with parameters

attribute values default required meaning
attr yes The attribute to manage the field.
dim no/text/yes no no The resize possibilities (no resize, resize the insertion space, resize the space between label and text ).
size 10 no The size of text in number of characters.
align center/left/right center no The alignment for field.
visible yes/no yes no The visibility condition.
required yes/no no no The required condition.
fontsize no The font size.
fontcolor no The font color.
bgcolor no The background color.
labelsize no The label size in number of characters.
labelvisible yes/no yes The label visibility.
border default/none/raised/lowered or a color defined in ColorConstants. Moreover, it is also allowed a border defined in #BorderManager no The border for datafield
tip no The tip for data field.
textalign center/right/left no The text alignment.
labelposition top/bottom/right/left no The label position.
outborder default/none/raised/lowered or a color defined in ColorConstants no The out border.
enabled yes/no yes no The field activation.
text attr no Alternative for attr text.
labelalign left/right/center left no The label alignment.
labelfontcolor black no The font color for label in field
font A string like : 'Arial-BOLD-18' (See #Font.decode()) The default font for system no Font for data field.
opaque yes/no no no Data field opacity condition
labelfont no The type of font for label of data field
requiredborder yes/no no no The border requirement condition. If it is specified to 'yes', it will be fixed to #BorderManager.DEFAULT_DATA_FIELD_REQUIRED_BORDE
disabledbgcolor no The background color when data field is disabled.

loadDictionary

protected void loadDictionary(java.lang.String language)

loadDictionary

protected void loadDictionary(java.net.URL urlFile)

readFile

protected java.util.Vector readFile(java.net.URL urlFile)

setResourceBundle

public void setResourceBundle(java.util.ResourceBundle resources)
Description copied from interface: Internationalization
Sets the language resource bundle. When the application changes the configured language, for all the objects that implement this interface this method must be called with the new file.
The method must translate all the elements that have texts in the GUI

Specified by:
setResourceBundle in interface Internationalization
Overrides:
setResourceBundle in class DataField

setComponentLocale

public void setComponentLocale(java.util.Locale l)
Specified by:
setComponentLocale in interface Internationalization
Overrides:
setComponentLocale in class DataField

getValue

public java.lang.Object getValue()
Description copied from interface: DataComponent
Gets the value of a component.

Specified by:
getValue in interface DataComponent
Returns:
the object with value.

setValue

public void setValue(java.lang.Object value)
Description copied from interface: DataComponent
Sets the value for component.

Specified by:
setValue in interface DataComponent
Parameters:
value - the object with value to set

deleteData

public void deleteData()
Description copied from interface: DataComponent
The method to delete data for component.

Specified by:
deleteData in interface DataComponent

isEmpty

public boolean isEmpty()
Description copied from interface: DataComponent
Checks the data existence in component.

Specified by:
isEmpty in interface DataComponent
Returns:
true when component is empty

isModifiable

public boolean isModifiable()
Description copied from class: DataField
Returns true when field is modifiable for this form. False in other case.

Specified by:
isModifiable in interface DataComponent
Overrides:
isModifiable in class DataField

setModifiable

public void setModifiable(boolean modifiable)
Description copied from class: DataField
Sets modifiable the field.

Specified by:
setModifiable in interface DataComponent
Overrides:
setModifiable in class DataField
Parameters:
modifiable - modif the modifiable condition

getSQLDataType

public int getSQLDataType()
Description copied from interface: DataComponent
Returns the sql data type according to java.sql.Types

Specified by:
getSQLDataType in interface DataComponent
Returns:
the Integer type

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

showPopupMenu

protected void showPopupMenu(java.awt.Component c,
                             int x,
                             int y)
Description copied from class: DataField
Shows the pop-up menu.

Overrides:
showPopupMenu in class DataField
Parameters:
c - the component
x - the x coordinate
y - the y coordinate

showPopupMenu

protected void showPopupMenu(java.awt.Component c,
                             int x,
                             int y,
                             java.lang.String word,
                             boolean delete,
                             int offsetIni)

uninstallSuggestionListener

protected void uninstallSuggestionListener()

installSuggestionListener

protected void installSuggestionListener()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
This method must not be overwrite

Specified by:
actionPerformed in interface java.awt.event.ActionListener

getEnabledDictionary

protected java.net.URL getEnabledDictionary()

saveWordInDictionary

protected boolean saveWordInDictionary(java.lang.String word)

addFile

protected boolean addFile(java.net.URL urlFile,
                          java.lang.String word)

saveFileOutJar

protected void saveFileOutJar(java.net.URL urlFile)

deleteWordInDictionary

protected boolean deleteWordInDictionary(java.lang.String word)

deleteWord

protected boolean deleteWord(java.net.URL urlFile,
                             java.lang.String word)

fireGlobalWordAdded

protected void fireGlobalWordAdded(java.lang.String lang,
                                   java.util.Locale l,
                                   java.lang.String word)

fireGlobalWordRemoved

protected void fireGlobalWordRemoved(java.lang.String lang,
                                     java.util.Locale l,
                                     java.lang.String word)

setDictionaryChangeListener

public static void setDictionaryChangeListener(DictionaryChangeListener listener)

setParentFrame

public void setParentFrame(java.awt.Frame m)
Description copied from interface: OpenDialog
This method is called from Form for each component that implements this interface. It fixes the parent frame for element. This frame is needed to open the modal dialog.

Specified by:
setParentFrame in interface OpenDialog
Parameters:
m - the frame

replaceWord

protected void replaceWord(int i,
                           java.lang.String orig,
                           java.lang.String newWord)

enableListenerInterno

protected void enableListenerInterno(boolean enable)
Convenience function. Enables or disables the event notifications provoked from inner listener. So, it is easy to distinguish between internal(by program) and external (from user interface) modifications of field. It should be disabled only when application modifies the content internally.

Parameters:
enable -

getSuggestions

protected java.util.Vector getSuggestions(java.lang.String word)

Ontimize