public class JUComboBoxLovEditBinding extends JUComboBoxCtrlBinding implements java.awt.event.ActionListener
Modifier and Type | Field and Description |
---|---|
protected JUComboBoxLovEditButton |
comboButton |
protected JULovPanelInterface |
mLovPanel |
static java.lang.String |
NO_MATCH_VALUE |
mCellRenderer, mComboModel, mEditor, mSettingValue
DH_CONTROL_TYPE, DH_DISPLAY_HEIGHT, DH_DISPLAY_HINT, DH_DISPLAY_WIDTH, DH_FORMAT, DH_LABEL, DH_TOOLTIP, LIST_ADD_NULL_AT_END, LIST_ADD_NULL_AT_START, LIST_ADD_NULL_NOWHERE, LIST_ADD_NULL_UNINIT, LIST_OPER_MULTI_SELECT, LIST_OPER_NAVIGATE, LIST_OPER_SET_ATTRIBUTE, LIST_OPER_SET_DELIMITED_ATTRIBUTE, LISTITEM_DisplayValues, LISTITEM_Index, LISTITEM_Prompt, LISTITEM_Selected, LISTITEM_SelectedIndex, LISTITEM_SelectedIndices, LOV_SRC_ATTRNAMES, LOV_SRC_EL_EXPR, LOV_SRC_ROW, LOV_SRC_ROW_DATA, mFirstDisplayAttr, mListAttrNames, mListDisplayAttrNames, mListIterBinding, mNullValueFlag, mSingleAttrList, mStaticList, mValueList, ROW
ATTR_ATTRIBUTE, ATTR_ATTRIBUTE_DEF, ATTR_ATTRIBUTE_DEFS, ATTR_ATTRIBUTE_VALUE, ATTR_ATTRIBUTE_VALUES, ATTR_ATTRIBUTES, ATTR_AUTOSUBMIT, ATTR_CATEGORY, ATTR_DISPLAY_HEIGHT, ATTR_DISPLAY_HINT, ATTR_DISPLAY_WIDTH, ATTR_FIELD_ORDER, ATTR_FORMAT, ATTR_FORMATS, ATTR_HINTS, ATTR_INPUT_VALUE, ATTR_LABEL, ATTR_LABELS, ATTR_LABELSET, ATTR_MANDATORY, ATTR_PATH, ATTR_TOOLTIP, ATTR_UPDATEABLE, ATTR_VIEWABLE, DATACHANGE_EVENT_POLICY, EMPTY_STRING, GET_ALLOWS, mAttrs, mHasInputVal, mInputVal, SEP_LIST_DISPLAY
ATTR_CURRENTROW, ATTR_DEF, ATTR_ERROR, ATTR_ERRORS, ATTR_FULLNAME, ATTR_ITER, ATTR_NAME, DC_BINDING_ERROR, mAttributeListener, mInternalGet_KeyResolved, mPermission, mPermissionInfo, ROW_KEY_STR
MAP_NULL_VALUE
Modifier | Constructor and Description |
---|---|
protected |
JUComboBoxLovEditBinding(JUComboBoxLovEditButton cb,
DCIteratorBinding iterBinding,
java.lang.String[] attrNames,
java.lang.String lbName,
boolean testMode,
boolean searchFlag)
*** For internal framework use only ***
|
|
JUComboBoxLovEditBinding(JUComboBoxLovEditButton cb,
JUIteratorBinding iterBinding,
java.lang.String[] attrNames,
int listOperMode,
boolean testMode,
boolean searchFlag) |
|
JUComboBoxLovEditBinding(JUComboBoxLovEditButton cb,
JUIteratorBinding iterBinding,
java.lang.String[] attrNames,
JUIteratorBinding listIterBinding,
java.lang.String[] listAttrNames,
java.lang.String[] listDisplayAttrNames,
boolean testMode,
boolean searchFlag) |
|
JUComboBoxLovEditBinding(JUComboBoxLovEditButton cb,
JUIteratorBinding iterBinding,
java.lang.String[] attrNames,
java.lang.Object[] valueList,
boolean testMode,
boolean searchFlag)
Binds a combobox to an attribute in the associated RowSet.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt)
Based on listOperMode, this binding either navigates the target rowset to the selected
row or sets the attribute/attributes as based on the settings in the constructor.
|
java.lang.Object |
findMatchingListValue(java.lang.Object val) |
protected javax.swing.ButtonModel |
getButtonModelImpl(javax.swing.AbstractButton button)
*** For internal framework use only ***
|
protected AttributeDef[] |
getComboDisplayAttrs() |
protected javax.swing.JComboBox |
getControlCombo() |
java.lang.Object |
getControlModel(java.lang.Object control)
Gets the associated View's model object.
|
protected java.util.HashMap |
getIterBindingDefOptions(DCDataControl dc) |
JULovPanelInterface |
getLovPanelInterface() |
boolean |
invokeLOVAction() |
void |
performLOVAction()
This method is invoked when action is to be performed on the associated button.
|
void |
setDimension(java.awt.Dimension d) |
protected void |
setupListItems(boolean clean,
boolean keepSelectedIndex)
This method is used by the framwork to setup the list of values (LOV) that will be displayed in
this LOV dialog.
|
void |
setValueAt(java.lang.Object value,
int attrIndex)
Finds the item in the combobox that matches the given value and sets it as the current item.
|
addControlToPanel, addElement, addListDataListener, createEnumerationBinding, createLovBinding, createNavigationBinding, getDisplayData, getElementAt, getInstance, getInstance, getModelImpl, getNullValueString, getSelectedItem, getSize, getValueAt, init, insertElementAt, isControlQueriable, isRefreshingList, isViewInitialized, refreshComboList, refreshControl, refreshListItem, release, removeElement, removeElementAt, removeListDataListener, setDataValueAt, setSelectedIndex, setSelectedItem, updateTargetFromSelectedValue, updateValueToCurrentRow
addBindingChangeListener, addNullAndSetValueList, addRowToMRU, addSelectionToMRU, bindRowSetIterator, clearMRU, clearSelectedIndices, convertValueList, createListIterBinding, createRowSetIterator, filterList, findAndUpdateSelectedIndex, findListIndex, findListIndex, findOrCreateLOVDialogIteratorBinding, findShuttleAvailableRows, findShuttleSelectedRows, findValue, getAttributeDefs, getComboDisplayAttributeCount, getDelimiter, getDerivedAttrNames, getDisplayAttributeDefs, getDisplayCriteriaName, getDisplayHints, getDisplayListIterator, getDisplayWidth, getFilteredRowSetIterator, getFilteredRowSetIteratorWithCaseCheck, getFirstDisplayAttrDef, getInputValueInRow, getInputValueOnError, getListAttrNames, getListBindingName, getListDisplayAttrNames, getListIterBinding, getListOperMode, getListRowSetIterator, getLovRowAttributeValue, getLovSourceOption, getMatchingRows, getMatchingRowsWithBaseRow, getMRUSize, getMRUString, getNullValueFlag, getNullValueIndex, getPreferredListIterBinding, getPreferredListMode, getPreferredListRowSetIterator, getSelectedIndex, getSelectedIndexValue, getSelectedIndices, getSelectedValue, getSelectedValues, getSelectionAttributeName, getSelectionIndices, getServerBindingName, getTargetRowData, getValueFromList, getValueList, handleFilteredList, hasMRU, hasNullValue, initFromServerBinding, initResources, internalGet, internalGetDisplayWidth, internalInitListBinding, internalPut, isAutoSubmit, isMandatory, isSingleAttrList, isUpdateable, iteratorClosed, iteratorReset, matchTargetWithLov, moveDown, moveToBottom, moveToTop, moveUp, navigated, processNewInputValue, put, rangeRefreshed, rangeScrolled, refreshFromServerListBinding, releaseLOVDialogIteratorBinding, removeBindingChangeListener, resetAttributeDefs, resetShuttle, rowDeleted, rowInserted, rowUpdated, setAllowBlindMatchInFilter, setAttributeFromValueList, setDef, setFetchDataOnSetup, setInputValueInRow, setListIterBinding, setListOperMode, setListValueAsSelected, setNullValueProperties, setPreferredListMode, setSelectedIndexValue, setSelectedIndices, setSelectionIndices, setServerBindingName, setStaticList, setTargetAttrsFromLovRow, setTargetAttrsFromLovRowAndUpdateMRU, setValueList, shuttle, toString, updateNavigated, updateValuesFromRow, usesServerBinding
createAttributeBinding, setControlEnabled, updateValuesFromRows
addBindingContainerChangeListenerForCtxEvent, addDataChangeListener, clearAttrDefs, clearEventsCache, compareAndSetAttribute, createAndNotifyDCE, createEventProducer, displayInShortForm, ensureVariableManager, eventForMyRow, fetchAttrDefs, findAttributeDef, generateDCE, getAttribute, getAttribute, getAttribute, getAttributeCount, getAttributeDef, getAttributeDef, getAttributeDefsForRow, getAttributeFromRow, getAttributeFromRow, getAttributeFromRow, getAttributeFromRow, getAttributeFromRow, getAttributeIndexOf, getAttributeNames, getAttributes, getAttributes, getAttributeUIHelper, getAttributeValidators, getAttributeValidators, getAttributeValue, getAttributeValue, getAttributeValueFromRow, getAttributeValues, getAttributeValues, getAttrViewExpressions, getBindingHint, getCachedEvents, getCategory, getChangeEventPolicy, getColumnNameForQuery, getControlType, getDataChangeEventPolicy, getDataChangeListener, getDisplayHeight, getDisplayHint, getError, getErrors, getEventProducer, getFieldOrder, getFormat, getFormats, getFormattedAttributeValue, getHint, getHint, getHints, getInputErrorsForRowKey, getInputValue, getInputValue, getInputValueHandler, getIteratorBindingForDCE, getIteratorRenderHint, getLabel, getLabel, getLabels, getLabelSet, getLastEventId, getLocaleContext, getMasterKeyPathForDCE, getMergedAttributeValues, getPath, getPermissionDef, getPermissionHolder, getPermissionInfo, getState, getTooltip, getTooltip, hasEventProducer, hasFormatInformation, hasServerBindingChanged, hasVariables, internalGetAttributeIndexOf, internalGetDataControlReference, internalGetRow, internalHasPermission, internalHasPermission, isArrayIteratorType, isAttributeMandatory, isAttributeUpdateable, isAttributeUpdateable, isAttributeUpdateable, isAttributeUpdateable, isEventsCachingEnabled, isNewInputValue, isNullInsertKeyPathForDCE, isPushDataChangeEvents, isPushOrPollDataChangeEvents, isViewable, lookupAttributeDef, notifyDataChangeEvent, notifyDataExceptionEvent, notifyDCE, pinDataControl, processInputException, removeAttrName, removeDataChangeListener, removeFromDCExceptions, resetInputState, resolvePath, restoreFromState, setArrayIteratorType, setAttribute, setAttribute, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeNames, setAttributes, setAttributeValue, setAttributeValuesInRow, setAttrViewExpressions, setError, setEventProducer, setEventsCaching, setInputValue, setInputValue, setInputValueHandler, setIteratorBinding, setListener, setNullValueString, startEvents, stopEditing, stopEvents, updateRangeScrolled, updateRow, updateRowDeleted, updateRowInserted, useRowSpecificHints, validateInputValue
getCurrentRow, getFormBinding, getIteratorBinding, reportException, setFormBinding
addToDCExceptions, evaluateBooleanExpression, executeQuery, executeQueryIfNeeded, get, getAllRowsInRange, getApplicationModule, getAttributeListener, getBindingContainer, getControl, getDCIteratorBinding, getDef, getDefFullName, getDefName, getFullName, getLayoutObject, getName, getPermission, getPermissionTargetName, getRowAtRangeIndex, getRowIterator, getTransaction, getViewableExpr, getViewObject, hasAttributeListener, hashCode, internalGetDataControl, internalSetName, isAssociatedWithDataControl, isControlViewable, isReleased, needsEstimatedRowCount, release, reportException, resetAttributeExceptionInRow, setBindingContainer, setControl, setDataControlPinned, setListener, setName, setViewableExpr
entrySet, equals, setThrowIfPropertyNotFoundOnGet
clear, clone, containsKey, containsValue, isEmpty, keySet, putAll, remove, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
getErrors, getInputValue, getLabel, setInputValue, validateInputValue
setListener
getName, getPath, release, resolvePath, setListener
getDefFullName, getDefName, getFullName, getName
protected JUComboBoxLovEditButton comboButton
protected JULovPanelInterface mLovPanel
public static final java.lang.String NO_MATCH_VALUE
public JUComboBoxLovEditBinding(JUComboBoxLovEditButton cb, JUIteratorBinding iterBinding, java.lang.String[] attrNames, int listOperMode, boolean testMode, boolean searchFlag)
public JUComboBoxLovEditBinding(JUComboBoxLovEditButton cb, JUIteratorBinding iterBinding, java.lang.String[] attrNames, java.lang.Object[] valueList, boolean testMode, boolean searchFlag)
cb
- ComboBox with which to associate this binding.iterBinding
- Provides the RowSet that is used to update current selection
from the combobox into the current row in the rowset.attrNames
- Provides the name of an attribute (only one attribute is updateable in
this mode).valueList
- A static list of values displayed as options in the combobox from which
to select.protected JUComboBoxLovEditBinding(JUComboBoxLovEditButton cb, DCIteratorBinding iterBinding, java.lang.String[] attrNames, java.lang.String lbName, boolean testMode, boolean searchFlag)
public JUComboBoxLovEditBinding(JUComboBoxLovEditButton cb, JUIteratorBinding iterBinding, java.lang.String[] attrNames, JUIteratorBinding listIterBinding, java.lang.String[] listAttrNames, java.lang.String[] listDisplayAttrNames, boolean testMode, boolean searchFlag)
protected javax.swing.ButtonModel getButtonModelImpl(javax.swing.AbstractButton button)
public java.lang.Object getControlModel(java.lang.Object control)
JUComboBoxCtrlBinding
getControlModel
in class JUComboBoxCtrlBinding
protected javax.swing.JComboBox getControlCombo()
getControlCombo
in class JUComboBoxCtrlBinding
protected AttributeDef[] getComboDisplayAttrs()
getComboDisplayAttrs
in class JUComboBoxCtrlBinding
protected void setupListItems(boolean clean, boolean keepSelectedIndex)
setupListItems
in class JUComboBoxCtrlBinding
clean
- Controls whether to clean the existing entries in the combobox.keepSelectedIndex
- Controls whether to maintain current index as the selected index
after the display data is updated. If this value is true, the current index is maintained.
However if the current index is more than the number of items in the combobox, then the selection
is reset to the first item.public void actionPerformed(java.awt.event.ActionEvent evt)
JUComboBoxCtrlBinding
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class JUComboBoxCtrlBinding
public boolean invokeLOVAction()
public void performLOVAction()
public void setDimension(java.awt.Dimension d)
public void setValueAt(java.lang.Object value, int attrIndex)
setValueAt
in class JUComboBoxCtrlBinding
value
- This value is used in findMatchingListValue method to find out the item in
the combobox that represents the given value. If the value is not found, then no item is selected
in the list.attrIndex
- This argument is ignored by this method.protected java.util.HashMap getIterBindingDefOptions(DCDataControl dc)
getIterBindingDefOptions
in class JUCtrlListBinding
public java.lang.Object findMatchingListValue(java.lang.Object val)
findMatchingListValue
in class JUCtrlListBinding
public JULovPanelInterface getLovPanelInterface()