|
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.MemoDataField
This class implements a memo data field. This field could be used like a text box in a description for a user or a product.
| Nested Class Summary | |
protected class |
MemoDataField.InnerDocumentListener
This class implements a inner listener for document. |
| 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 boolean |
activationScrollTip
The condition of scroll tip activation. |
static java.lang.String |
DE
The key for "OF" text. |
protected FindDialog |
dQuery
A reference for a find dialog. |
protected boolean |
expandVertical
The reference to vertical expansion. |
protected MemoDataField.InnerDocumentListener |
innerListener
The reference to inner listener. |
protected int |
maximumTextLength
The maximum text length. |
protected java.awt.Frame |
parentFrame
The reference for parent frame. |
static java.lang.String |
queryKey
The key for search. |
protected int |
rows
The memo data field rows. |
protected javax.swing.JScrollPane |
scroll
A reference for a scroll. |
protected TipScroll |
scrollTip
A reference for a scroll tip. |
protected javax.swing.JMenuItem |
searchMenu
A reference for a search menu. |
static java.lang.String |
selectAllKey
The key for select all. |
protected javax.swing.JMenuItem |
selectAllMenu
A reference for a all selection menu. |
protected boolean |
sqlTypeText
The condition about the SQL type: False -> VARCHAR ; True -> LONGVARCHAR. |
static boolean |
tabTransferFocus
|
protected java.lang.String |
translateDE
The reference to translate the "OF" text. |
protected javax.swing.undo.UndoManager |
undoManager
|
protected boolean |
uppercase
The reference for upper case condition. |
static java.lang.String |
WHITE_SPACE
The key for a white space. |
| 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 | |
MemoDataField(java.util.Hashtable params)
The class constructor. |
|
| Method Summary | |
protected void |
createDataField()
Creates the field and overrides the JComponent.processKeyEvent(KeyEvent)
method for managing focus. |
protected void |
createPopupMenu()
Creates a pop-up menu. |
void |
deleteData()
The method to delete data for component. |
protected void |
enableInnerListener(boolean enable)
This method allows to enable/disable the ValueEvent events notifier. |
void |
free()
Makes the object to release the resources. |
java.lang.Object |
getConstraints(java.awt.LayoutManager parentLayout)
Gets the constraints needed to adapt the field to the container from init
|
protected int |
getRowNumber()
Gets the row number. |
int |
getSQLDataType()
Returns the sql data type according to java.sql.Types
|
java.lang.String |
getText()
Gets text. |
java.util.Vector |
getTextsToTranslate()
Returns all the texts in the element suitable for being translated. |
java.lang.Object |
getValue()
Gets the value of a component. |
protected void |
hideScrollTip()
Hides the scroll tip. |
void |
init(java.util.Hashtable params)
Initializes parameters. |
protected void |
installInnerListener()
Adds a inner listener for document. |
protected void |
installScrollListener()
Installs the scroll listener. |
boolean |
isEmpty()
Checks the data existence in component. |
protected void |
registerUndoableListener()
|
protected void |
registerUndoRedoActions()
|
void |
setComponentLocale(java.util.Locale l)
|
void |
setMaxLength(int l)
Sets the max length of field. |
void |
setParentFrame(java.awt.Frame parentFrame)
This method is called from Form for each component that implements this interface. |
void |
setResourceBundle(java.util.ResourceBundle res)
Sets the language resource bundle. |
void |
setValue(java.lang.Object value)
Sets the value for component. |
protected void |
showPopupMenu(java.awt.Component source,
int x,
int y)
Shows the pop-up menu. |
protected void |
showScrollTip(javax.swing.JScrollBar scrollBar,
int x,
int y,
int row)
Shows the scroll tip. |
protected void |
updateBackgroundColor()
Updates the background color. |
| 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 |
protected int rows
protected boolean sqlTypeText
protected javax.swing.JMenuItem searchMenu
protected javax.swing.JMenuItem selectAllMenu
public static java.lang.String queryKey
public static java.lang.String selectAllKey
protected java.awt.Frame parentFrame
protected FindDialog dQuery
FindDialogprotected TipScroll scrollTip
TipScrollprotected boolean activationScrollTip
protected javax.swing.JScrollPane scroll
public static final java.lang.String DE
public static final java.lang.String WHITE_SPACE
protected java.lang.String translateDE
protected int maximumTextLength
protected boolean uppercase
protected boolean expandVertical
protected javax.swing.undo.UndoManager undoManager
public static boolean tabTransferFocus
protected MemoDataField.InnerDocumentListener innerListener
| Constructor Detail |
public MemoDataField(java.util.Hashtable params)
params - the component parameters| Method Detail |
protected void registerUndoableListener()
protected void registerUndoRedoActions()
public java.lang.String getText()
DataField
getText in class DataFieldprotected void createDataField()
JComponent.processKeyEvent(KeyEvent)
method for managing focus.
protected void installScrollListener()
protected void showScrollTip(javax.swing.JScrollBar scrollBar,
int x,
int y,
int row)
scrollBar - the reference to scroll bar.x - the x positiony - the y positionrow - the row numberprotected int getRowNumber()
protected void hideScrollTip()
public void init(java.util.Hashtable params)
init in interface FormComponentinit in class DataFieldparams - the hashtable with parameters
| attribute | values | default | required | meaning |
| sqltexttype | yes/no | no | no | no -> Varchar ; yes -> LongVarchar. |
| uppercase | yes/no | no | no | The uppercase condition. |
| rows | no | The number of rows. | ||
| maxlength | no | The maxlength for component. | ||
| expand | yes/no | no | The vertical expansion. |
public int getSQLDataType()
DataComponentsql data type according to java.sql.Types
getSQLDataType in interface DataComponentInteger typepublic java.lang.Object getValue()
DataComponent
getValue in interface DataComponentobject with value.public boolean isEmpty()
DataComponent
isEmpty in interface DataComponenttrue when component is emptypublic void setValue(java.lang.Object value)
DataComponent
setValue in interface DataComponentvalue - the object with value to setpublic void deleteData()
DataComponent
deleteData in interface DataComponentprotected void installInnerListener()
protected void enableInnerListener(boolean enable)
enable - the condition to enable/disable the inner listener.public void setParentFrame(java.awt.Frame parentFrame)
OpenDialog
setParentFrame in interface OpenDialogparentFrame - the framepublic void setResourceBundle(java.util.ResourceBundle res)
Internationalization
setResourceBundle in interface InternationalizationsetResourceBundle in class DataFieldpublic void setComponentLocale(java.util.Locale l)
setComponentLocale in interface InternationalizationsetComponentLocale in class DataFieldpublic java.util.Vector getTextsToTranslate()
Internationalization
getTextsToTranslate in interface InternationalizationgetTextsToTranslate in class DataFieldprotected void createPopupMenu()
DataField
createPopupMenu in class DataField
protected void showPopupMenu(java.awt.Component source,
int x,
int y)
DataField
showPopupMenu in class DataFieldsource - the componentx - the x coordinatey - the y coordinatepublic void setMaxLength(int l)
l - the lengthpublic java.lang.Object getConstraints(java.awt.LayoutManager parentLayout)
DataFieldinit
getConstraints in interface FormComponentgetConstraints in class DataFieldparentLayout - the parent layout
public void free()
throws java.lang.Exception
Freeable
free in interface Freeablejava.lang.Exceptionprotected void updateBackgroundColor()
DataField
updateBackgroundColor in class DataField
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||