oracle.jbo.uicli.binding
Class JUCtrlBoolBinding
java.lang.Object
java.util.AbstractMap
oracle.jbo.common.JboAbstractMap
oracle.adf.model.binding.DCControlBinding
oracle.jbo.uicli.binding.JUControlBinding
oracle.jbo.uicli.binding.JUCtrlValueBinding
oracle.jbo.uicli.binding.JUCtrlAttrsBinding
oracle.jbo.uicli.binding.JUCtrlListBinding
oracle.jbo.uicli.binding.JUCtrlBoolBinding
- All Implemented Interfaces:
- java.util.EventListener, JUCtrlInputValueHandler, java.util.Map, RowNavigationListener, RowSetListener, RowSetManagementListener, StructureDef
- Direct Known Subclasses:
- JUButtonBinding
- public class JUCtrlBoolBinding
- extends JUCtrlListBinding
Implements data binding support for controls that allow only one of two values,
like a checkbox. This binding lets a subclass provide two values in a list
and by default the first value is returned to indicate a TRUE value and the second
value represents the FALSE value.
Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
Fields inherited from class oracle.jbo.uicli.binding.JUCtrlListBinding |
DH_CONTROL_TYPE, DH_DISPLAY_HEIGHT, DH_DISPLAY_HINT, DH_DISPLAY_WIDTH, DH_FORMAT, DH_LABEL, DH_TOOLTIP, LIST_OPER_NAVIGATE, LIST_OPER_SET_ATTRIBUTE, LISTITEM_DisplayValues, LISTITEM_Index, LISTITEM_Prompt, LISTITEM_Selected, LISTITEM_SelectedIndex, mFirstDisplayAttr, mListAttrNames, mListDisplayAttrNames, mListIterBinding, mSingleAttrList, mStaticList, mValueList |
Fields inherited from class oracle.jbo.uicli.binding.JUCtrlValueBinding |
ATTR_ATTRIBUTE, ATTR_ATTRIBUTE_DEF, ATTR_ATTRIBUTE_DEFS, ATTR_ATTRIBUTE_VALUE, ATTR_ATTRIBUTE_VALUES, ATTR_ATTRIBUTES, ATTR_DISPLAY_HINT, ATTR_INPUT_VALUE, ATTR_LABEL, ATTR_LABELS, ATTR_LABELSET, ATTR_MANDATORY, ATTR_TOOLTIP, ATTR_UPDATEABLE, mHasInputVal, mInputVal, SEP_LIST_DISPLAY |
Constructor Summary |
JUCtrlBoolBinding(java.lang.Object control,
JUIteratorBinding iterBinding,
java.lang.String attrName)
This constructor binds a Swing control to an attribute 'attrName' in the ViewObject
identified by the given IteratorBinding iterBinding. |
JUCtrlBoolBinding(java.lang.Object control,
JUIteratorBinding iterBinding,
java.lang.String attrName,
java.lang.Object[] valueList,
boolean boolVal)
This constructor binds a Swing control to an attribute 'attrName' in the ViewObject
identified by the given IteratorBinding iterBinding. |
Method Summary |
java.lang.Object |
findValue(java.lang.Object val)
Matches the given value to a boolean based on what's in the list and the setting
of boolval parameter from the constructor. |
java.lang.Object |
getValueFromBoolean(boolean b)
Matches the boolean value to a value from the list based on boolVal parameter in the
constructor. |
Methods inherited from class oracle.jbo.uicli.binding.JUCtrlListBinding |
addControlToPanel, convertValueList, findListIndex, findMatchingListValue, getDisplayAttributeDefs, getDisplayData, getDisplayHints, getDisplayListIterator, getInputValue, getListDisplayAttrNames, getListIterBinding, getListOperMode, getSelectedIndex, getSelectedIndexValue, getSelectedValue, getValueAt, getValueFromList, getValueList, internalGet, isControlQueriable, isSingleAttrList, isViewInitialized, iteratorClosed, iteratorReset, matchTargetWithLov, navigated, processNewInputValue, put, rangeRefreshed, rangeScrolled, release, rowDeleted, rowInserted, rowUpdated, setAttributeFromValueList, setDataValueAt, setInputValue, setListOperMode, setListValueAsSelected, setSelectedIndex, setSelectedIndexValue, setSingleAttrList, setStaticList, setTargetAttrsFromLovRow, setupListItems, setValueAt, setValueList, toString, updateTargetFromSelectedValue, updateValuesFromRow |
Methods inherited from class oracle.jbo.uicli.binding.JUCtrlValueBinding |
compareAndSetAttribute, displayInShortForm, findAttributeDef, getAttribute, getAttribute, getAttribute, getAttributeCount, getAttributeDef, getAttributeDef, getAttributeDefs, getAttributeFromRow, getAttributeFromRow, getAttributeFromRow, getAttributeFromRow, getAttributeFromRow, getAttributeIndexOf, getAttributeNames, getAttributes, getAttributes, getAttributeUIHelper, getAttributeValidators, getAttributeValidators, getAttributeValue, getAttributeValue, getAttributeValueFromRow, getAttributeValues, getAttributeValues, getControlType, getDisplayHeight, getDisplayHint, getDisplayWidth, getError, getErrors, getHint, getHint, getLabel, getLabel, getLabels, getLabelSet, getLocaleContext, getMergedAttributeValues, getPath, getTooltip, getTooltip, hasFormatInformation, internalGetRow, isArrayIteratorType, isAttributeMandatory, isAttributeUpdateable, isMandatory, isNewInputValue, isUpdateable, lookupAttributeDef, processInputException, resetInputState, setArrayIteratorType, setAttribute, setAttribute, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeValue, setError, setInputValue, setInputValueHandler, stopEditing, updateRowDeleted, updateRowInserted |
Methods inherited from class oracle.adf.model.binding.DCControlBinding |
addToDCExceptions, executeQuery, executeQueryIfNeeded, get, getAllRowsInRange, getApplicationModule, getBindingContainer, getControl, getControlModel, getCurrentRow, getDCIteratorBinding, getDef, getDefFullName, getDefName, getFullName, getLayoutObject, getName, getRowAtRangeIndex, getRowIterator, getTransaction, getViewObject, hashCode, internalSetName, needsEstimatedRowCount, removeFromDCExceptions, reportException, resetAttributeExceptionInRow, setBindingContainer, setControl, setName |
Methods inherited from class java.util.AbstractMap |
clear, clone, containsKey, containsValue, isEmpty, keySet, putAll, remove, size, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
JUCtrlBoolBinding
public JUCtrlBoolBinding(java.lang.Object control,
JUIteratorBinding iterBinding,
java.lang.String attrName)
- This constructor binds a Swing control to an attribute 'attrName' in the ViewObject
identified by the given IteratorBinding iterBinding. This constructor should only
be used if the attribute values for TRUE and FALSE states are boolean 'true' and 'false'
and not some other values.
JUCtrlBoolBinding
public JUCtrlBoolBinding(java.lang.Object control,
JUIteratorBinding iterBinding,
java.lang.String attrName,
java.lang.Object[] valueList,
boolean boolVal)
- This constructor binds a Swing control to an attribute 'attrName' in the ViewObject
identified by the given IteratorBinding iterBinding. This constructor should only
be used if the attribute values for TRUE and FALSE states are identified by the
first two values in the given list. If boolVal = true, then the first value
in the list is returned when this control's state is TRUE for the value of the attribute.
If boolVal = false, then the first value in the list is returned to mean control's state = FALSE.
findValue
public java.lang.Object findValue(java.lang.Object val)
- Matches the given value to a boolean based on what's in the list and the setting
of boolval parameter from the constructor.
- Overrides:
findValue
in class JUCtrlListBinding
getValueFromBoolean
public java.lang.Object getValueFromBoolean(boolean b)
- Matches the boolean value to a value from the list based on boolVal parameter in the
constructor. If boolVal equals b, returns the first element in the list. Otherwise,
returns the second element or null when no second element was given.
Copyright © 1997, 2004, Oracle. All rights reserved.