oracle.jbo.uicli.binding
Class JUCtrlBoolBinding
java.lang.Object
|
+--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:
- AttributeList, java.util.EventListener, RowNavigationListener, RowSetListener
- Direct Known Subclasses:
- JUButtonBinding
- public abstract 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.
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. |
Type | Method |
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 |
convertValueList, findListIndex, findMatchingListValue,
getAttrValuesFromRSI, getListOperMode,
getSelectedIndex, getSelectedValue, getValueAt,
getValueFromList, getValueList, isSingleAttrList,
matchTargetWithLov, navigated,
rangeRefreshed, rangeScrolled,
rowDeleted, rowInserted, rowUpdated,
setAttributeFromValueList, setListOperMode, setSelectedIndex,
setSingleAttrList, setTargetAttrsFromLovRow,
setupListItems, setValueList, updateValuesFromRow |
Methods inherited from class oracle.jbo.uicli.binding.JUCtrlValueBinding |
findAttributeDef, getAttribute, getAttribute,
getAttributeCount, getAttributeDef, getAttributeDefs,
getAttributeFromRow, getAttributeFromRow,
getAttributeFromRow, getAttributeFromRow, getAttributeFromRow, getAttributeIndexOf,
getAttributeNames, isAttributeUpdateable, setAttribute, setAttribute, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeInRow, stopEditing,
updateRowDeleted, updateRowInserted |
Methods inherited from class oracle.jbo.uicli.binding.JUControlBinding |
addControlToPanel, executeQuery,
executeQueryIfNeeded, getAllRowsInRange, getApplicationModule,
getControl, getCurrentRow, getDef,
getFormBinding, getIteratorBinding, getLayoutObject,
getName, getRowAtRangeIndex, getRowIterator,
getTransaction, getViewObject, isControlQueriable,
reportException, setFormBinding,
setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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.