|
Ontimize 5.2072EN | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.ontimize.gui.field.DataField
com.ontimize.gui.field.DictionaryDataField
Text field associated with a dictionary
| 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 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 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 |
public static boolean DEBUG_DICTIONARY
protected int maxLenght
protected boolean uppercase
protected javax.swing.text.SimpleAttributeSet textErrorAttributes
protected javax.swing.text.SimpleAttributeSet textOkAttributes
protected static DictionaryChangeListener globalListener
protected java.lang.String initialLanguage
protected java.lang.String currentDictionayFile
protected java.lang.String currentLanguage
protected java.lang.String dictionaryListFile
protected java.util.Locale locale
protected static java.util.Hashtable wordList
protected java.util.Vector currentWordList
protected java.lang.String menuKey
protected java.lang.String saveKey
protected java.lang.String deleteKey
protected java.lang.String changeDictionaryKey
protected java.lang.String suggestionKey
protected ExtendedJPopupMenu menu
protected javax.swing.JMenuItem saveMenu
protected javax.swing.JMenuItem deleteMenu
protected javax.swing.JMenuItem changeDictionaryMenu
protected javax.swing.JMenu suggestionMenu
protected javax.swing.JMenuItem noSuggestionMenu
protected java.awt.Frame parentFrame
protected int delay
protected int rowNumber
protected boolean sQLTypeText
protected java.text.Collator collator
protected DictionaryDataField.Analyzer analyzer
protected DictionaryDataField.DictionayDocument doc
| Constructor Detail |
public DictionaryDataField(java.util.Hashtable parameters)
throws java.lang.IllegalArgumentException
| Method Detail |
protected void runAnalyzer(int delay)
protected void buildMenu()
public void init(java.util.Hashtable parameters)
DataField
init in interface FormComponentinit in class DataFieldparameters - 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. |
protected void loadDictionary(java.lang.String language)
protected void loadDictionary(java.net.URL urlFile)
protected java.util.Vector readFile(java.net.URL urlFile)
public void setResourceBundle(java.util.ResourceBundle resources)
Internationalization
setResourceBundle in interface InternationalizationsetResourceBundle in class DataFieldpublic void setComponentLocale(java.util.Locale l)
setComponentLocale in interface InternationalizationsetComponentLocale in class DataFieldpublic java.lang.Object getValue()
DataComponent
getValue in interface DataComponentobject with value.public void setValue(java.lang.Object value)
DataComponent
setValue in interface DataComponentvalue - the object with value to setpublic void deleteData()
DataComponent
deleteData in interface DataComponentpublic boolean isEmpty()
DataComponent
isEmpty in interface DataComponenttrue when component is emptypublic boolean isModifiable()
DataField
isModifiable in interface DataComponentisModifiable in class DataFieldpublic void setModifiable(boolean modifiable)
DataField
setModifiable in interface DataComponentsetModifiable in class DataFieldmodifiable - modif the modifiable conditionpublic int getSQLDataType()
DataComponentsql data type according to java.sql.Types
getSQLDataType in interface DataComponentInteger typepublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListener
protected void showPopupMenu(java.awt.Component c,
int x,
int y)
DataField
showPopupMenu in class DataFieldc - the componentx - the x coordinatey - the y coordinate
protected void showPopupMenu(java.awt.Component c,
int x,
int y,
java.lang.String word,
boolean delete,
int offsetIni)
protected void uninstallSuggestionListener()
protected void installSuggestionListener()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerprotected java.net.URL getEnabledDictionary()
protected boolean saveWordInDictionary(java.lang.String word)
protected boolean addFile(java.net.URL urlFile,
java.lang.String word)
protected void saveFileOutJar(java.net.URL urlFile)
protected boolean deleteWordInDictionary(java.lang.String word)
protected boolean deleteWord(java.net.URL urlFile,
java.lang.String word)
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)
public static void setDictionaryChangeListener(DictionaryChangeListener listener)
public void setParentFrame(java.awt.Frame m)
OpenDialog
setParentFrame in interface OpenDialogm - the frame
protected void replaceWord(int i,
java.lang.String orig,
java.lang.String newWord)
protected void enableListenerInterno(boolean enable)
enable - protected java.util.Vector getSuggestions(java.lang.String word)
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||