|
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.TextFieldDataField
com.ontimize.gui.field.ReferenceExtDataField
The main class to extend the ReferenceDataField
functionalities.
ReferenceDataField,
Serialized Form| Nested Class Summary | |
protected class |
ReferenceExtDataField.CodeFieldListener
The code field listener to manage the codeChange value in function of events. |
protected static class |
ReferenceExtDataField.MultipleResultWindow
The main class to manage a multiple result window in a Reference Ext datafield. |
protected class |
ReferenceExtDataField.TableWindow
The main class to shows a table in a window. |
| Nested classes inherited from class com.ontimize.gui.field.TextFieldDataField |
TextFieldDataField.EJTextField, TextFieldDataField.InnerDocumentListener |
| 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 java.lang.String |
attrAux
The auxiliary attributes. |
protected static java.lang.String |
auxCodeLabelKey
The search key. |
protected DateDocument |
auxDateDoc
An auxiliary date document. |
static java.lang.String |
BIG_DECIMAL
Deprecated. use ParseUtils.BIG_DECIMAL |
static int |
BIG_DECIMAL_
Deprecated. use ParseUtils.BIG_DECIMAL_ |
static java.lang.String |
BIG_INTEGER
Deprecated. use ParseUtils.BIG_INTEGER |
static int |
BIG_INTEGER_
Deprecated. use ParseUtils.BIG_INTEGER_ |
protected CacheManager |
cacheManager
The cache manager. |
protected int |
cacheTime
The cache time. |
static java.lang.String |
CLEAR_QUICK_FILTER
|
protected boolean |
clearDetailTableQuickFilterWhenShow
|
protected java.lang.String |
code
The code. |
protected javax.swing.JTextField |
codeField
This object provides a EJTextField with 4 columns. |
protected ReferenceExtDataField.CodeFieldListener |
codeFieldListener
A reference to code field listener. |
protected boolean |
codeNumber
The condition about existence of code number. |
protected int |
codeNumberClass
The code number class. |
protected java.lang.String |
codeQueryField
The code query field key. |
protected java.lang.Object |
codeValue
The code value. |
protected java.util.Hashtable |
dataCache
A Hashtable used as a data cache. |
protected boolean |
dataCacheInitialized
The condition to check whether dataCache are initialized. |
protected boolean |
dataRecordListenerReady
True when DataRecordListener is registered in the detail form |
static java.lang.String |
DATEFORMAT
Date format pattern string key to convert the data field dates values. |
static boolean |
defaultDisableOnParentkeyNull
|
static boolean |
defaultIgnoreNullOnSetValueSet
|
static boolean |
defaultParentkeyListener
|
static java.lang.String |
defaultParentkeyListenerEvent
|
protected javax.swing.JButton |
deleteButton
The Field button for delete. |
protected java.util.Vector |
descriptionColumns
The description columns vector. |
protected boolean |
descriptionFieldVisible
The condition of field description visibility. |
protected boolean |
descriptionValue
The description value condition. |
static java.lang.String |
DISABLE_ON_PARENTKEY_NULL
|
protected boolean |
disabledValueEvents
The enable or disable value events, By default, false. |
protected boolean |
disableonparentkeynull
Indicates whether this field has disabled when parentkey field is null. |
static java.lang.String |
DOUBLE
Deprecated. use ParseUtils.DOUBLE |
static int |
DOUBLE_
Deprecated. use ParseUtils.DOUBLE_ |
protected java.lang.String |
entityName
The entity name. |
static java.lang.String |
FORMAT
Format pattern string key to convert the data field content value. |
protected FormatPattern |
formatPattern
Pattern to format the field contents. |
protected java.util.Hashtable |
hOnSetValueSetEquivalences
This object is used to store onsetvalueset attributes and equivalences (for these fields in entity) when structure of parameter onsetvalueset is: "fieldonset1:fieldentitypk1;fieldonset2:fieldentitypk2;...fieldonsetn:fieldentitypkn" |
protected java.util.Hashtable |
hParentkeyEquivalences
This object is used to store parentkeys and equivalences (for these fields in entity) when structure of parameter parentkeys is: "fieldpk1:fieldentitypk1;fieldpk2:fieldentitypk2;...fieldpkn:fieldentitypkn" |
static java.lang.String |
IGNORE_NULL_ONSETVALUESET
Key used for xml parameter 'ignorenullonsetvalueset' |
protected boolean |
ignorenullonsetvalueset
Indicates if fields contained into 'onsetvalueset' have to be deleted on null value of the field. |
protected java.lang.String |
iMask
The iMask key. |
protected boolean |
initCacheOnSetValue
The condition to initialize cache on setvalue method. |
static java.lang.String |
INTEGER
Deprecated. use ParseUtils.INTEGER |
static int |
INTEGER_
Deprecated. use ParseUtils.INTEGER_ |
protected boolean |
integerValue
The integer value condition. |
protected long |
lastCacheTime
The last cache time. |
protected EntityReferenceLocator |
locator
The locator. |
static java.lang.String |
LONG
Deprecated. use ParseUtils.LONG |
static int |
LONG_
Deprecated. use ParseUtils.LONG_ |
protected ReferenceExtDataField.MultipleResultWindow |
multipleResultWindow
The reference to multiple result window. |
static java.lang.String |
NO_RESULT_CLEAR_CODE
Key used for xml parameter 'noresultclearcode' |
protected boolean |
noresultclearcode
The condition about code will be cleared when not matches with existing value. |
protected javax.swing.JButton |
okButton
The ok button. |
protected java.util.Vector |
onsetvaluesetAttributes
The vector with attributes to update when data field value changed. |
protected java.util.Vector |
othersParentKey
The others parent keys in a 1x3 Vector. |
protected java.awt.Frame |
parentFrame
The parent Frame. |
static java.lang.String |
PARENTKEY_LISTENER
|
static java.lang.String |
PARENTKEY_LISTENER_EVENT
Key used for xml parameter 'parentkeylistenerevent' |
static java.lang.String |
PARENTKEY_LISTENER_EVENT_ALL
|
static java.lang.String |
PARENTKEY_LISTENER_EVENT_PROGRAMMATIC
|
static java.lang.String |
PARENTKEY_LISTENER_EVENT_USER
|
protected boolean |
parentkeyCache
|
protected java.util.Vector |
parentkeyList
The parent keys vector. |
protected boolean |
parentkeyListener
Indicates whether this field has registered a listener for each parentkey fields to reset it when one of the values of these parentkeys change (when parentkey field that changes is null it is not reset). |
protected java.lang.String |
parentkeyListenerEvent
Indicates the type of event that is taken into consideration on parentkey listener changes. |
protected java.lang.String |
parentKeys
The parentkeys. |
static java.lang.String |
propUserSelection
The UserSelection property. |
protected javax.swing.JButton |
queryButton
The Field button for query. |
protected java.awt.event.ActionListener |
queryListener
A listener for query operation. |
protected static java.lang.String |
RECORD_NOT_FOUND_ERROR_MESSAGE
|
protected javax.swing.JButton |
refreshCacheButton
The reference for a refresh cache button. |
static java.lang.String |
RESULTS_DIALOG_SIZE_POSITION
The results_dialog_size_position property. |
protected static java.lang.String |
ResultSelectionInfoKey
The result selection key. |
static java.lang.String |
SEARCH_DIALOG_SIZE_POSITION
The search_dialog_size_position property. |
protected java.lang.String |
separator
A separator. |
static java.lang.String |
SHORT
Deprecated. use ParseUtils.SHORT |
static int |
SHORT_
Deprecated. use ParseUtils.SHORT_ |
protected Table |
t
The reference for the table. |
protected ReferenceExtDataField.TableWindow |
tableWindow
A reference to table Window. |
protected boolean |
userCacheManager
The condition to exist a user cache manager. |
protected boolean |
visibleCodeField
The condition of code field visibility. |
protected boolean |
visibleCodeSearch
The condition of code visibility of the code in the detail window. |
protected java.lang.String |
windowTitle
The window title key. |
| Fields inherited from class com.ontimize.gui.field.TextFieldDataField |
disabledTextColor, innerListener |
| 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.i18n.Internationalization |
DEBUG_LANGUAGE |
| 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.SecureElement |
DESACTIVATE_COMPONENT_BY_PERMISSION_TIP |
| Fields inherited from interface com.ontimize.util.templates.ITemplateField |
DATA_TYPE_FIELD, DATA_TYPE_FIELD_ATTR, DATA_TYPE_IMAGE, DATA_TYPE_IMAGE_ATTR, DATA_TYPE_TABLE, DATA_TYPE_TABLE_ATTR, TEMPLATE_DATA_TYPE |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, PROPERTIES, SOMEBITS |
| Constructor Summary | |
ReferenceExtDataField(java.util.Hashtable parameters)
|
|
| Method Summary | |
void |
clearQuickFilter()
|
protected void |
createDataField()
Creates a data field that focus is not supported. |
protected void |
createDataRecordListener()
|
protected void |
createMultipleResultsWindow(Table t)
Creates the multiple result window. |
void |
deleteData()
The method to delete data for component. |
void |
deleteData(boolean clearCode)
|
protected void |
deleteUserData()
Deletes the user data in code field. |
protected void |
deleteUserData(boolean clearcode)
Deletes the user data in code field. |
protected boolean |
existFieldsToUpdate(java.util.Hashtable changes,
java.util.Hashtable keys)
|
protected void |
fireValueChanged(java.lang.Object newValue,
java.lang.Object oldValue,
int type)
Detects fire value events. |
void |
free()
Makes the object to release the resources. |
java.lang.Object |
getAttribute()
Gets the object attribute. |
java.util.Vector |
getAttributes()
Gets Attributes from table. |
protected java.lang.String |
getCodeDescription(java.lang.Object code,
java.util.Hashtable value)
Obtains the code description. |
javax.swing.JTextField |
getCodeField()
Returns the codeField. |
java.lang.String |
getCodeFieldName()
Gets the code field name |
protected java.lang.Object |
getCodeFieldValue()
Gets the code field value. |
java.lang.String |
getCodeSearchFieldName()
Gets the code search field name. |
java.util.Hashtable |
getCodeValues(java.lang.Object code)
Returns the combo values associated to code. |
java.util.Hashtable |
getDataCache()
Gets the data cache. |
javax.swing.JButton |
getDeleteButton()
|
java.lang.String |
getEntity()
The entity name. |
protected long |
getLastCacheTime()
Gets the last cache time |
Table |
getMultipleResultTable()
Gets the reference to table with multiple results. |
java.util.Hashtable |
getParentkeyEquivalences()
Returns a Hashtable with key-value corresponding with result to apply two 'tokenizer' actions over parentkeys parameter. |
java.util.Vector |
getParentKeyList()
|
java.util.Vector |
getParentKeys()
Returns the parentkeys. |
java.util.Hashtable |
getParentKeyValues()
|
javax.swing.JButton |
getQueryButton()
|
java.lang.String |
getResultDialogSizePreferenceKey()
Deprecated. |
java.lang.String |
getSearchDialogSizePreferenceKey()
Returns a string with preference key about dialog search. |
int |
getSQLDataType()
Returns the SQL type of varchar or integer in function of integerValue.
|
Table |
getTable()
Gets the reference to the table. |
int |
getTemplateDataType()
Returns the data type. |
java.lang.Object |
getTemplateDataValue()
Gets the value to show in the template |
java.util.Vector |
getTextsToTranslate()
Gets the text to translate |
protected java.lang.Object |
getTypedInnerValue(java.lang.Object s)
Obtains the typed value from parameter. |
java.lang.Object |
getValue()
Gets the value of a component. |
boolean |
hasParentKeys()
|
void |
init(java.util.Hashtable parameters)
Initializes parameters. |
void |
initCache()
Inits the cache. |
void |
initPreferences(ApplicationPreferences prefs,
java.lang.String user)
Inits the user and application preferences. |
protected void |
installFocusListener()
Adds the focus listener to the data field. |
protected void |
installPopupMenuListener()
Installs a pop-up menu listener. |
protected void |
installPreferenceHelpListener()
Adds a help listener |
void |
invalidateCache()
Invalidate cache setting to 0 the lastCacheTime. |
boolean |
isClearDetailTableQuickFilterWhenShow()
Returns the condition expressed in parameter 'clearquickfilter'. |
boolean |
isCodeFieldVisible()
Checks whether the codefield is visible. |
boolean |
isCodeSearchVisible()
Checks whether the code search is visible. |
boolean |
isEmpty()
Checks the existence of text in codeField. |
boolean |
isModified()
This method should be return true when data have been modified. |
boolean |
isParentkeyListener()
|
protected void |
populateTable()
Fills the table. |
EntityResult |
queryBy(java.lang.String column,
java.lang.Object value)
Establishes the query |
protected EntityResult |
queryByCode(java.lang.Object code)
Queries by code |
void |
registerParentkeyValueChangeListeners()
|
java.util.Hashtable |
replaceParentkeyByEquivalence(java.util.Hashtable hParentkeyEquivalences)
|
void |
requestFocus()
|
void |
resetFilter()
Removes all the filters set to a table. |
void |
setCacheManager(CacheManager cm)
Sets the CacheManager. |
void |
setCode(java.lang.Object codeValue)
Sets the code. |
protected void |
setCode(java.lang.Object codeValue,
int valueEventType)
Sets the code in function of event value. |
void |
setEnabled(boolean en)
Description method to set enabled or not the component according the boolean condition in parameter. |
void |
setFilter(java.lang.String column,
java.lang.Object[] values,
int condition)
Applies a filter to a specified column. |
void |
setFormBuilder(FormBuilder builder)
|
protected void |
setInnerListenerEnabled(boolean enabled)
Enable or disable the intern value events notification. |
void |
setParentForm(Form f)
Method declaration to set the form that contains the component. |
void |
setParentFrame(java.awt.Frame frame)
This method is called from Form for each component that implements this interface. |
void |
setParentkeyListener(boolean parentkeyListener)
|
void |
setReferenceLocator(EntityReferenceLocator locator)
Establishes the reference locator that will be used by component. |
void |
setResourceBundle(java.util.ResourceBundle resources)
Sets the language resource bundle. |
void |
setValue(java.lang.Object value)
Sets the value for component. |
void |
setValue(java.lang.Object value,
boolean inner)
Establishes the field value. |
protected java.lang.String |
toString(java.lang.Object v)
Checks whether parameter is a string or a date. |
protected void |
updateBackgroundColor()
Updates the background color. |
protected void |
updateDataCache(java.util.Hashtable updateAttributes,
java.util.Hashtable updateKeys)
|
protected void |
updateOnSetValueSetAttributes(java.util.Hashtable data)
|
| Methods inherited from class com.ontimize.gui.field.TextFieldDataField |
getInnerListenerEnabled, getInnerValue, getLabelComponentText, getText, installInnerListener, isInnerValueEqual, isModifiable, isRequired, setInnerValue |
| 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.i18n.Internationalization |
setComponentLocale |
| Methods inherited from interface com.ontimize.gui.field.ReferenceDataComponent |
getParentForm |
| Methods inherited from interface com.ontimize.gui.field.DataComponent |
getLabelComponentText, isHidden, isModifiable, isRequired, setModifiable, setRequired |
| Methods inherited from interface com.ontimize.gui.field.FormComponent |
getConstraints, isEnabled, setVisible |
| Methods inherited from interface com.ontimize.gui.SecureElement |
initPermissions, isRestricted |
| Field Detail |
public static final java.lang.String SEARCH_DIALOG_SIZE_POSITION
protected static final java.lang.String RECORD_NOT_FOUND_ERROR_MESSAGE
public static final java.lang.String RESULTS_DIALOG_SIZE_POSITION
public static final java.lang.String PARENTKEY_LISTENER
public static final java.lang.String DISABLE_ON_PARENTKEY_NULL
public static final java.lang.String CLEAR_QUICK_FILTER
public static final java.lang.String PARENTKEY_LISTENER_EVENT
public static final java.lang.String PARENTKEY_LISTENER_EVENT_ALL
public static final java.lang.String PARENTKEY_LISTENER_EVENT_USER
public static final java.lang.String PARENTKEY_LISTENER_EVENT_PROGRAMMATIC
public static final java.lang.String IGNORE_NULL_ONSETVALUESET
public static boolean defaultIgnoreNullOnSetValueSet
public static final java.lang.String FORMAT
DATEFORMAT,
Constant Field Valuespublic static final java.lang.String NO_RESULT_CLEAR_CODE
public static final java.lang.String DATEFORMAT
FORMAT,
Constant Field Valuespublic static final java.lang.String BIG_DECIMAL
ParseUtils.BIG_DECIMAL
public static final java.lang.String BIG_INTEGER
ParseUtils.BIG_INTEGER
public static final java.lang.String DOUBLE
ParseUtils.DOUBLE
public static final java.lang.String LONG
ParseUtils.LONG
public static final java.lang.String SHORT
ParseUtils.SHORT
public static final java.lang.String INTEGER
ParseUtils.INTEGER
public static final int BIG_DECIMAL_
ParseUtils.BIG_DECIMAL_
public static final int BIG_INTEGER_
ParseUtils.BIG_INTEGER_
public static final int DOUBLE_
ParseUtils.DOUBLE_
public static final int LONG_
ParseUtils.LONG_
public static final int INTEGER_
ParseUtils.INTEGER_
public static final int SHORT_
ParseUtils.SHORT_
public static boolean defaultParentkeyListener
public static boolean defaultDisableOnParentkeyNull
public static java.lang.String defaultParentkeyListenerEvent
protected static java.lang.String auxCodeLabelKey
protected static java.lang.String ResultSelectionInfoKey
protected boolean dataRecordListenerReady
protected boolean parentkeyListener
protected boolean disableonparentkeynull
protected java.lang.String parentkeyListenerEvent
protected java.util.Vector onsetvaluesetAttributes
protected boolean ignorenullonsetvalueset
protected boolean descriptionValue
protected boolean integerValue
protected java.lang.String code
protected EntityReferenceLocator locator
protected java.util.Hashtable hParentkeyEquivalences
parentkeys is: "fieldpk1:fieldentitypk1;fieldpk2:fieldentitypk2;...fieldpkn:fieldentitypkn"
protected java.util.Hashtable hOnSetValueSetEquivalences
onsetvalueset is: "fieldonset1:fieldentitypk1;fieldonset2:fieldentitypk2;...fieldonsetn:fieldentitypkn"
protected javax.swing.JTextField codeField
protected javax.swing.JButton queryButton
protected javax.swing.JButton deleteButton
protected java.awt.Frame parentFrame
protected java.lang.String parentKeys
protected java.lang.String entityName
protected boolean visibleCodeField
protected boolean visibleCodeSearch
protected boolean descriptionFieldVisible
public static final java.lang.String propUserSelection
protected java.lang.String iMask
protected java.lang.String windowTitle
protected java.util.Vector othersParentKey
protected java.util.Vector parentkeyList
protected java.util.Vector descriptionColumns
protected int cacheTime
protected long lastCacheTime
protected java.util.Hashtable dataCache
Hashtable used as a data cache.
protected boolean parentkeyCache
protected java.lang.String separator
protected boolean clearDetailTableQuickFilterWhenShow
protected boolean userCacheManager
protected CacheManager cacheManager
protected boolean initCacheOnSetValue
protected boolean dataCacheInitialized
protected boolean disabledValueEvents
protected java.lang.String attrAux
protected boolean codeNumber
protected boolean noresultclearcode
protected int codeNumberClass
protected java.lang.String codeQueryField
protected java.lang.Object codeValue
protected DateDocument auxDateDoc
protected ReferenceExtDataField.MultipleResultWindow multipleResultWindow
protected ReferenceExtDataField.TableWindow tableWindow
protected javax.swing.JButton okButton
protected javax.swing.JButton refreshCacheButton
protected Table t
protected java.awt.event.ActionListener queryListener
protected ReferenceExtDataField.CodeFieldListener codeFieldListener
protected FormatPattern formatPattern
format
parameter is missing. Also wrappers the content of the dateformat
parameter.
- Since:
- Ontimize 5.2059EN
| Constructor Detail |
public ReferenceExtDataField(java.util.Hashtable parameters)
throws java.lang.Exception
| Method Detail |
public boolean isEmpty()
isEmpty in interface DataComponentisEmpty in class TextFieldDataFieldprotected void updateOnSetValueSetAttributes(java.util.Hashtable data)
protected void createDataRecordListener()
protected boolean existFieldsToUpdate(java.util.Hashtable changes,
java.util.Hashtable keys)
protected void updateDataCache(java.util.Hashtable updateAttributes,
java.util.Hashtable updateKeys)
public void init(java.util.Hashtable parameters)
| attribute | values | default | required | meaning |
| attr | cod | no | The field attribute. | |
| entity | yes | Associated entity. | ||
| cod | yes | The code name associated to field. | ||
| codinteger | yes/no | no | no | When code value is an Integer |
| codnumber | yes/no | no | no | Specifies if a number object is used. |
| codnumberclass | BigDecimal/BigInteger/Double/Long/Short/Integer | no | Specifies the type number object used. It is only available when codnumber is setted. | |
| csize | no | The number of characters for code field. | ||
| codvisible | yes/no | yes | no | Condition about visibility of cod. |
| codsearchvisible | yes/no | no | no | Condition about visibility of cod search in detail window. |
| dateformat | A Java date pattern | no | Java Date pattern to use in format parameter. |
|
| format | message;column_1;...;column_N | no | The field shows the translation with the given message and columns. Example: -User has a reference field that queries an entity with three fields ID;INITIALDATE;ENDDATE. ID is the code of field. -User wants to format description of this field to show: Period starts: INITIALDATE and ends: ENDDATE -He only needs to store in bundle a key, e.g., refExtKey= Period starts: {0} and ends: {1} -He must specify in parameter format="refExtKey;INITIALDATE;ENDDATE" |
|
| mask | no | Specifies an input mask for applying to the code field. | ||
| onsetvalueset | fieldonset1:fieldentitypk1;fieldonset2:fieldentitypk2;...fieldonsetn :fieldentitypkn (since version 5.2057EN-1.4) | no | Field attributes whose value will be set when data on field change. | |
| descriptioncols | dcol1;dcol2;...;dcoln | yes | no | Visible table columns in text field. By default, it is the parameter value of visiblecols in table. |
| parentkeylistener | yes/no | no | no | Register a listener for each parentkey field to delete data
of this field when one of the parentkey values changes (when new
value of the parentkey field is null, field value is not reset,
excepts if 'disableonparentkeynull' is true). If you use this
parameter then you need to use the setvalueorder for the Form @see
Form.init(Hashtable) |
| disableonparentkeynull | yes/no | no | no | Disable field when parentkey is null. |
| noresultclearcode | yes/no (since version 5.2068EN) | yes | no | Indicates whether code field should be reset when query did not return any match for current code value. |
Valid Table parameters:
| attribute | values | default | required | meaning |
| key | cod | no | The Table key. | |
| parentkeys | fieldpk1:fieldentitypk1;fieldpk2:fieldentitypk2;...fieldpkn :fieldentitypkn (since version 5.2057EN-1.4) | yes | The field that is parentkey and correspondent associated field in entity. It is accepted to indicate only the fieldpki when it is equal to fieldentitypki, e.g. : fieldpk1;fieldpk2:fieldentitypk2 ;...fieldpkn:fieldentitypkn | |
| cols | cols1;cols2;...;colsn | yes | Columns associated to the code. It forms the description field. | |
| cachetime | 10 minutes | no | The time data remains in cache. | |
| separator | " " | no | The separator character for columns. | |
| usecachemanager | yes/no | yes | no | With "no" parameter, field will have its own cache. |
| visiblecols | vcols1,vcols2,...,vcolsn | no | The visible cols from cols. With empty parameter all columns are visible. | |
| form | no | The form that is opened in detail. On init, update mode will be its state. | ||
| initcacheonsetvalue | yes/no | no | Inits cache when setValue() is called. |
|
| codsearch | no | It specifies the field name for searching when user introduces a search value. | ||
| controls | yes/no | yes | no | Allows the Table to have some control buttons, in the top of it. This buttons, by default, can export to excel the data in the table, show charts, reports, and so on. If the value is not, the controlsvisible attribute will not affect. |
| descvisible | yes/no | yes | no | The visibility description. |
| parentkeylistenerevent | user/programmatic | both | no | The type of event that is taken into consideration on parentkey listener changes. E.g. if 'user' value is set, just the events generated by user changes are taken into consideration. |
| ignorenullonsetvalueset | yes/no | no | no | It specifies whether the fields included into 'onsetvalueset' are deleted when null value is set in this field. If value is true the fields contained into 'onsetvalueset' are not deleted on null value. |
init in interface FormComponentinit in class TextFieldDataFieldparameters - the Hashtable with parameters
| attribute | values | default | required | meaning |
| focuslistener | no | The complete class name that implements FocusListener and will be registered like listener for
this field.
|
protected java.lang.Object getCodeFieldValue()
protected java.lang.Object getTypedInnerValue(java.lang.Object s)
s - the object to obtain the type
public void setCode(java.lang.Object codeValue)
codeValue - setCode(Object, int)public java.util.Hashtable replaceParentkeyByEquivalence(java.util.Hashtable hParentkeyEquivalences)
public EntityResult queryBy(java.lang.String column,
java.lang.Object value)
queryBy in interface ReferenceDataComponentcolumn - the col namevalue - the value to add to keyvalues hashtable, with the form
(col,value)
protected EntityResult queryByCode(java.lang.Object code)
code - the value to add to hashtable, with the form (code,codigo)
protected void setCode(java.lang.Object codeValue,
int valueEventType)
codeValue - the value to setvalueEventType - the type of eventsetValue(Object, boolean)public 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 set
public void setValue(java.lang.Object value,
boolean inner)
protected java.lang.String getCodeDescription(java.lang.Object code,
java.util.Hashtable value)
code - the object to search in hashtable parametervalue - the hashtable with all codes
protected java.lang.String toString(java.lang.Object v)
v - the object to convert
public int getSQLDataType()
integerValue.
getSQLDataType in interface DataComponentpublic void setReferenceLocator(EntityReferenceLocator locator)
ReferenceComponent
setReferenceLocator in interface ReferenceComponentlocator - a reference locator to set in componentpublic void registerParentkeyValueChangeListeners()
public boolean isParentkeyListener()
public void setParentkeyListener(boolean parentkeyListener)
public void setParentFrame(java.awt.Frame frame)
OpenDialog
setParentFrame in interface OpenDialogframe - the frame
public void free()
throws java.lang.Exception
Freeable
free in interface Freeablejava.lang.Exceptionpublic void setParentForm(Form f)
AccessForm
setParentForm in interface AccessFormsetParentForm in class DataFieldpublic void setFormBuilder(FormBuilder builder)
setFormBuilder in interface CreateFormspublic void setEnabled(boolean en)
FormComponent
setEnabled in interface FormComponentsetEnabled in class DataFielden - the condition to set enableprotected void updateBackgroundColor()
updateBackgroundColor in class DataFieldpublic void deleteData()
DataComponent
deleteData in interface DataComponentdeleteData in class TextFieldDataFieldpublic void deleteData(boolean clearCode)
protected void deleteUserData(boolean clearcode)
protected void deleteUserData()
public boolean isModified()
DataComponenttrue when data have been modified. The method
setValue() should be change this condition.
isModified in interface DataComponentisModified in class DataFieldpublic void setResourceBundle(java.util.ResourceBundle resources)
Internationalization
setResourceBundle in interface InternationalizationsetResourceBundle in class DataFieldpublic java.lang.Object getAttribute()
IdentifiedElement
getAttribute in interface IdentifiedElementgetAttribute in class TextFieldDataFieldpublic java.lang.String getCodeFieldName()
getCodeFieldName in interface ReferenceDataComponentcodepublic void requestFocus()
requestFocus in class DataFieldpublic java.util.Vector getTextsToTranslate()
getTextsToTranslate in interface InternationalizationgetTextsToTranslate in class DataFieldpublic java.util.Hashtable getCodeValues(java.lang.Object code)
code - the object to find
public java.util.Hashtable getDataCache()
public void initCache()
protected long getLastCacheTime()
lastCacheTimepublic void invalidateCache()
public java.util.Vector getParentKeys()
public java.util.Hashtable getParentkeyEquivalences()
string="formfieldpk1:equivalententityfieldpk1;formfieldpk2:equivalententityfieldpk2;...;formfieldpkn:equivalententityfieldpkn"Hashtable:
Hashtable with key-valuepublic boolean hasParentKeys()
hasParentKeys in interface IFilterElementpublic java.util.Hashtable getParentKeyValues()
getParentKeyValues in interface IFilterElementpublic void setCacheManager(CacheManager cm)
setCacheManager in interface CachedComponentpublic java.util.Vector getAttributes()
getAttributes in interface CachedComponentpublic java.lang.String getEntity()
getEntity in interface CachedComponententityName
protected void fireValueChanged(java.lang.Object newValue,
java.lang.Object oldValue,
int type)
DataField
fireValueChanged in class DataFieldnewValue - the new valueoldValue - the previous valuetype - the type of value eventprotected void installFocusListener()
DataField
installFocusListener in class DataField
public void setFilter(java.lang.String column,
java.lang.Object[] values,
int condition)
column - the name of columnvalues - the object array to apply filtercondition - the condition to filterpublic void resetFilter()
public void clearQuickFilter()
protected void populateTable()
throws java.lang.Exception
java.lang.Exception - when exception occursprotected void createDataField()
createDataField in class TextFieldDataFieldComponent.isFocusTraversable()
public void initPreferences(ApplicationPreferences prefs,
java.lang.String user)
initPreferences in interface HasPreferenceComponentinitPreferences in class DataFieldprotected void createMultipleResultsWindow(Table t)
t - the tableprotected void setInnerListenerEnabled(boolean enabled)
TextFieldDataField
setInnerListenerEnabled in class TextFieldDataFieldenabled - the enabled conditionpublic Table getTable()
public Table getMultipleResultTable()
public javax.swing.JTextField getCodeField()
getCodeField in interface ReferenceDataComponentpublic java.lang.String getResultDialogSizePreferenceKey()
public java.lang.String getSearchDialogSizePreferenceKey()
protected void installPopupMenuListener()
installPopupMenuListener in class DataFieldMouseListenerprotected void installPreferenceHelpListener()
installPreferenceHelpListener in class DataFieldpublic boolean isClearDetailTableQuickFilterWhenShow()
public java.util.Vector getParentKeyList()
getParentKeyList in interface IFilterElementpublic javax.swing.JButton getDeleteButton()
public javax.swing.JButton getQueryButton()
public java.lang.String getCodeSearchFieldName()
ReferenceDataComponent
getCodeSearchFieldName in interface ReferenceDataComponentString with the search field name.public boolean isCodeFieldVisible()
ReferenceDataComponent
isCodeFieldVisible in interface ReferenceDataComponentpublic boolean isCodeSearchVisible()
ReferenceDataComponent
isCodeSearchVisible in interface ReferenceDataComponentpublic int getTemplateDataType()
ITemplateFieldITemplateField.DATA_TYPE_FIELD
ITemplateField.DATA_TYPE_IMAGE
ITemplateField.DATA_TYPE_TABLE
getTemplateDataType in interface ITemplateFieldint with the data type.public java.lang.Object getTemplateDataValue()
ITemplateField
getTemplateDataValue in interface ITemplateField
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||