|
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.AbstractMultipleReferenceDataField
com.ontimize.gui.field.MultipleReferenceDataField
This class provides an implementation of an AbstractMultipleReferenceDataField.
| Nested Class Summary | |
protected class |
MultipleReferenceDataField.DocumentInnerListener
Creates a document inner listener. |
protected class |
MultipleReferenceDataField.TableWindow
This class implements a table window in a dialog. |
| Nested classes inherited from class com.ontimize.gui.field.AbstractMultipleReferenceDataField |
AbstractMultipleReferenceDataField.CEJTextField, AbstractMultipleReferenceDataField.CodFieldListener, AbstractMultipleReferenceDataField.InnerListener |
| 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 static java.lang.String |
auxCodeLabelKey
A key for search operation. |
protected javax.swing.JButton |
deleteButton
An instance for a delete button. |
protected javax.swing.JButton |
okButton
A reference for the ok button. |
protected java.awt.event.ActionListener |
queryListener
An instance of query listener. |
protected javax.swing.JButton |
refreshCacheButton
The reference for refreshing the cache button. |
protected javax.swing.JButton |
searchButton
An instance for a search button. |
protected boolean |
showButtons
|
protected Table |
t
The reference for the table. |
protected MultipleReferenceDataField.TableWindow |
tableWindow
An instance for a table Window. |
protected java.lang.String |
windowTitle
The window title. |
| Fields inherited from class com.ontimize.gui.field.AbstractMultipleReferenceDataField |
cacheManager, cacheTime, CACHETIME, codListener, cods, CODS, cols, COLS, dataCache, dataCacheInitialized, entity, ENTITY, formatColumn, initCacheOnSetValue, innerListener, jVisibleCods, keys, KEYS, lastCacheTime, locator, ONSETVALUESET, onsetvaluesetAttributes, PARENT_CODS, PARENT_KEYS, parentCods, parentkeyCache, PARENTKEYCACHE, parentkeys, separator, typecods, TYPECODS, useCacheManager, value, valueEventDisabled, visibleCods, VISIBLECODS, visiblesize |
| 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 | |
MultipleReferenceDataField(java.util.Hashtable parameters)
The class constructor. |
|
| Method Summary | |
protected void |
createAdditionalComponents()
Creates additional components like magnifying glass button, delete button and search button. |
protected void |
createComponent()
Creates component. |
javax.swing.JButton |
getDeleteButton()
|
javax.swing.JButton |
getSearchButton()
|
java.lang.String |
getSearchDialogSizePreferenceKey()
Gets the size preference key for search dialog. |
void |
init(java.util.Hashtable parameters)
Initializes parameters. |
protected void |
installInnerListener()
Installs an inner listener for field. |
protected void |
populateTable()
Fills the table. |
void |
setEnabled(boolean enabled)
Description method to set enabled or not the component according the boolean condition in parameter. |
void |
setFormatValue(java.lang.Object value)
|
void |
setParentForm(Form parentForm)
Method declaration to set the form that contains the component. |
void |
setResourceBundle(java.util.ResourceBundle resources)
Sets the language resource bundle. |
| 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 |
| Methods inherited from interface com.ontimize.gui.field.DataComponent |
getLabelComponentText, isHidden, isModifiable, isModified, isRequired, setModifiable, setRequired |
| Methods inherited from interface com.ontimize.gui.field.FormComponent |
getConstraints, isEnabled, setVisible |
| Methods inherited from interface com.ontimize.gui.i18n.Internationalization |
getTextsToTranslate, setComponentLocale |
| Methods inherited from interface com.ontimize.gui.field.IdentifiedElement |
getAttribute |
| Methods inherited from interface com.ontimize.gui.SecureElement |
initPermissions, isRestricted |
| Field Detail |
protected javax.swing.JButton searchButton
protected javax.swing.JButton deleteButton
protected MultipleReferenceDataField.TableWindow tableWindow
protected javax.swing.JButton okButton
protected boolean showButtons
protected javax.swing.JButton refreshCacheButton
protected Table t
protected java.lang.String windowTitle
protected static java.lang.String auxCodeLabelKey
protected java.awt.event.ActionListener queryListener
| Constructor Detail |
public MultipleReferenceDataField(java.util.Hashtable parameters)
throws java.lang.Exception
parameters - the Hashtable with parameters| Method Detail |
public void init(java.util.Hashtable parameters)
init in interface FormComponentinit in class AbstractMultipleReferenceDataFieldparameters - The Hashtable with additional parameters:
| attribute | values | default | required | meaning |
| buttons | yes/no | yes | no | Show/Hide search and delete buttons |
| title | entity | no | The title for window. | |
| opaquebuttons | yes/no | no | no | Opacity condition for buttons showed with this field |
| numrowscolumn | yes/no | no | no | Shows or hide a column containing the row numumber in the result table |
| controlsvisible | yes/no | no | no | Shows or hide the table controls in the result table |
| autoadjustheader | yes/no | yes | Allows the TableHeader to adjusts its height to the FontText in order to see the the text when the font size changes. | |
| rows | Integer | 15 | Default width for the table header |
protected void createComponent()
AbstractMultipleReferenceDataField
createComponent in class AbstractMultipleReferenceDataFieldprotected void installInnerListener()
protected void createAdditionalComponents()
protected void populateTable()
throws java.lang.Exception
java.lang.Exception - when an Exception occurspublic java.lang.String getSearchDialogSizePreferenceKey()
public void setFormatValue(java.lang.Object value)
setFormatValue in class AbstractMultipleReferenceDataFieldpublic void setParentForm(Form parentForm)
AccessForm
setParentForm in interface AccessFormsetParentForm in class DataFieldpublic void setResourceBundle(java.util.ResourceBundle resources)
Internationalization
setResourceBundle in interface InternationalizationsetResourceBundle in class DataFieldpublic void setEnabled(boolean enabled)
FormComponent
setEnabled in interface FormComponentsetEnabled in class DataFieldenabled - the condition to set enablepublic javax.swing.JButton getSearchButton()
public javax.swing.JButton getDeleteButton()
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||