|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 2 (11.1.2.1.0) E17483-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
public class JUCtrlBoolBinding
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 Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Field Summary |
---|
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_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, GET_ALLOWS, mAttrs, mHasInputVal, mInputVal, SEP_LIST_DISPLAY |
Fields inherited from class oracle.adf.model.binding.DCControlBinding |
---|
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 |
Fields inherited from class oracle.jbo.common.JboAbstractMap |
---|
MAP_NULL_VALUE |
Constructor Summary | |
---|---|
JUCtrlBoolBinding(java.lang.Object control,
DCIteratorBinding iterBinding,
java.lang.String attrName,
boolean boolVal,
java.lang.String serverBindingName)
|
|
JUCtrlBoolBinding(java.lang.Object control,
DCIteratorBinding 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. |
|
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. |
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. |
protected java.lang.Object |
getInputValueInRow(JUCtrlValueBinding binding,
Row row,
AttributeDef ad)
Primarily for spel support. |
protected java.lang.Object |
getInputValueOnError()
Subclasses may override to return custom/cached/transformed input value when there is an exception stored on this binding. |
java.lang.Object |
getValueFromBoolean(boolean b)
Matches the boolean value to a value from the list based on boolVal parameter in the constructor. |
boolean |
processNewInputValue(java.lang.Object value)
Compares the value (assumed to be a numeric String or an Integer) with currently selected index in this listbinding and if different, then returns true. |
protected void |
setInputValueInRow(JUCtrlValueBinding binding,
Row row,
AttributeDef ad,
java.lang.Object value,
boolean handleException)
Primarily for spel support. |
Methods inherited from class oracle.jbo.uicli.binding.JUCtrlAttrsBinding |
---|
createAttributeBinding, refreshControl, setControlEnabled, updateValuesFromRows |
Methods inherited from class oracle.jbo.uicli.binding.JUControlBinding |
---|
getCurrentRow, getFormBinding, getIteratorBinding, reportException, setFormBinding |
Methods inherited from class oracle.jbo.common.JboAbstractMap |
---|
entrySet, equals, setThrowIfPropertyNotFoundOnGet |
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 |
Methods inherited from interface oracle.adf.model.AttributeBinding |
---|
getErrors, getInputValue, getLabel, setInputValue, validateInputValue |
Methods inherited from interface oracle.adf.model.ControlBinding |
---|
setListener |
Methods inherited from interface oracle.binding.ControlBinding |
---|
getName, getPath, release, resolvePath, setListener |
Methods inherited from interface oracle.jbo.StructureDef |
---|
getDefFullName, getDefName, getFullName, getName |
Constructor Detail |
---|
public JUCtrlBoolBinding(java.lang.Object control, JUIteratorBinding iterBinding, java.lang.String attrName)
public JUCtrlBoolBinding(java.lang.Object control, DCIteratorBinding iterBinding, java.lang.String attrName, java.lang.Object[] valueList, boolean boolVal)
public JUCtrlBoolBinding(java.lang.Object control, DCIteratorBinding iterBinding, java.lang.String attrName, boolean boolVal, java.lang.String serverBindingName)
Method Detail |
---|
public java.lang.Object findValue(java.lang.Object val)
findValue
in class JUCtrlListBinding
public java.lang.Object getValueFromBoolean(boolean b)
protected java.lang.Object getInputValueInRow(JUCtrlValueBinding binding, Row row, AttributeDef ad)
Returns the last input value for the first attribute on this binding if this value raised an exception. Otherwise returns the value from the model object calling getAttribute(0);
getInputValueInRow
in class JUCtrlListBinding
protected void setInputValueInRow(JUCtrlValueBinding binding, Row row, AttributeDef ad, java.lang.Object value, boolean handleException)
Sets the value given and caches any error/exception in member variables for further access. Also rethrows the exception for outer methods to catch it.
setInputValueInRow
in class JUCtrlListBinding
protected java.lang.Object getInputValueOnError()
getInputValueOnError
in class JUCtrlListBinding
public boolean processNewInputValue(java.lang.Object value)
processNewInputValue
in class JUCtrlListBinding
value
- new selectedIndex value.
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 2 (11.1.2.1.0) E17483-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |