Oracle Application Development Framework Model and Business Components Java API Reference 10.1.3.1.0
B28969-01


oracle.jbo.uicli.binding
Class JUCtrlBoolBinding

java.lang.Object
  extended byjava.util.AbstractMap
      extended byoracle.jbo.common.JboAbstractMap
          extended byoracle.adf.model.binding.DCControlBinding
              extended byoracle.jbo.uicli.binding.JUControlBinding
                  extended byoracle.jbo.uicli.binding.JUCtrlValueBinding
                      extended byoracle.jbo.uicli.binding.JUCtrlAttrsBinding
                          extended byoracle.jbo.uicli.binding.JUCtrlListBinding
                              extended byoracle.jbo.uicli.binding.JUCtrlBoolBinding

All Implemented Interfaces:
oracle.adf.model.AttributeBinding, AttributeBinding, ControlBinding, oracle.adf.model.ControlBinding, java.util.EventListener, JUCtrlInputValueHandler, JUCtrlValueHandler, java.util.Map, oracle.jbo.RowNavigationListener, RowSetListener, oracle.jbo.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 Class Summary

 

Nested classes inherited from class java.util.Map
java.util.Map.Entry

 

Field Summary

 

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_ADD_NULL_AT_END, LIST_ADD_NULL_AT_START, LIST_ADD_NULL_NOWHERE, LIST_ADD_NULL_UNINIT, LIST_OPER_NAVIGATE, LIST_OPER_SET_ATTRIBUTE, LISTITEM_DisplayValues, LISTITEM_Index, LISTITEM_Prompt, LISTITEM_Selected, LISTITEM_SelectedIndex, LOV_SRC_ATTRNAMES, LOV_SRC_EL_EXPR, LOV_SRC_ROW_DATA, mFirstDisplayAttr, mListAttrNames, mListDisplayAttrNames, mListIterBinding, mNullValueFlag, 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_HEIGHT, ATTR_DISPLAY_HINT, ATTR_DISPLAY_WIDTH, ATTR_FORMAT, ATTR_FORMATS, ATTR_INPUT_VALUE, ATTR_LABEL, ATTR_LABELS, ATTR_LABELSET, ATTR_MANDATORY, ATTR_PATH, ATTR_TOOLTIP, ATTR_UPDATEABLE, ATTR_VIEWABLE, 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, mAttributeListener, mInternalGet_KeyResolved, ROW_KEY_STR

 

Constructor Summary
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.
 java.lang.Object getInputValue()
          Primarily for spel support.
 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.
 void setInputValue(java.lang.Object value)
          Primarily for spel support.

 

Methods inherited from class oracle.jbo.uicli.binding.JUCtrlListBinding
addBindingChangeListener, addControlToPanel, addNullAndSetValueList, convertValueList, filterList, findAndUpdateSelectedIndex, findListIndex, findMatchingListValue, getDisplayAttributeDefs, getDisplayData, getDisplayHints, getDisplayListIterator, getListDisplayAttrNames, getListIterBinding, getListOperMode, getNullValueFlag, getNullValueIndex, getSelectedIndex, getSelectedIndexValue, getSelectedValue, getValueAt, getValueFromList, getValueList, hasNullValue, internalGet, isControlQueriable, isSingleAttrList, isUpdateable, isViewInitialized, iteratorClosed, iteratorReset, matchTargetWithLov, navigated, put, rangeRefreshed, rangeScrolled, release, removeBindingChangeListener, rowDeleted, rowInserted, rowUpdated, setAttributeFromValueList, setDataValueAt, setListOperMode, setListValueAsSelected, setNullValueProperties, setSelectedIndex, setSelectedIndexValue, setStaticList, setTargetAttrsFromLovRow, setupListItems, setValueAt, setValueList, toString, updateTargetFromSelectedValue, updateValuesFromRow

 

Methods inherited from class oracle.jbo.uicli.binding.JUCtrlAttrsBinding
createAttributeBinding, refreshControl, setControlEnabled, updateNavigated, updateRangeScrolled, updateValuesFromRows

 

Methods inherited from class oracle.jbo.uicli.binding.JUCtrlValueBinding
compareAndSetAttribute, displayInShortForm, ensureVariableManager, 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, getFormat, getFormats, getHint, getHint, getInputErrorsForRowKey, getInputValue, getInputValueHandler, getInputValueInRow, getLabel, getLabel, getLabels, getLabelSet, getLocaleContext, getMergedAttributeValues, getNullValueString, getPath, getTooltip, getTooltip, hasFormatInformation, hasVariables, initResources, internalGetRow, internalHasPermission, isArrayIteratorType, isAttributeMandatory, isAttributeUpdateable, isAttributeUpdateable, isMandatory, isNewInputValue, lookupAttributeDef, processInputException, resetInputState, resolvePath, setArrayIteratorType, setAttribute, setAttribute, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeValue, setError, setInputValue, setInputValueHandler, setInputValueInRow, setNullValueString, stopEditing, updateRowDeleted, updateRowInserted, validateInputValue

 

Methods inherited from class oracle.jbo.uicli.binding.JUControlBinding
getCurrentRow, getFormBinding, getIteratorBinding, reportException, setFormBinding

 

Methods inherited from class oracle.adf.model.binding.DCControlBinding
addToDCExceptions, executeQuery, executeQueryIfNeeded, get, getAllRowsInRange, getApplicationModule, getBindingContainer, getControl, getControlModel, getDCIteratorBinding, getDef, getDefFullName, getDefName, getFullName, getLayoutObject, getName, getRowAtRangeIndex, getRowIterator, getTransaction, getViewObject, hashCode, internalHasPermission, internalSetName, needsEstimatedRowCount, removeFromDCExceptions, reportException, resetAttributeExceptionInRow, setBindingContainer, setControl, setListener, setListener, setName

 

Methods inherited from class oracle.jbo.common.JboAbstractMap
entrySet, equals, internalPut

 

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, getLabel, validateInputValue

 

Methods inherited from interface oracle.adf.model.ControlBinding
setListener

 

Methods inherited from interface oracle.binding.ControlBinding
getName, getPath, resolvePath, setListener

 

Methods inherited from interface oracle.jbo.StructureDef
getDefFullName, getDefName, getFullName, getName

 

Constructor Detail

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,
                         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. 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.

Method Detail

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.

getInputValue

public java.lang.Object getInputValue()
Primarily for spel support. method for spel-access.

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);

Specified by:
getInputValue in interface oracle.adf.model.AttributeBinding
Overrides:
getInputValue in class JUCtrlListBinding

setInputValue

public void setInputValue(java.lang.Object value)
Primarily for spel support. Could be removed prior to 905Prod and merged into a get() method for spel-access.

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.

Specified by:
setInputValue in interface oracle.adf.model.AttributeBinding
Overrides:
setInputValue in class JUCtrlListBinding

processNewInputValue

public 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.
Specified by:
processNewInputValue in interface oracle.adf.model.AttributeBinding
Overrides:
processNewInputValue in class JUCtrlListBinding
Parameters:
value - new selectedIndex value.

Oracle Application Development Framework Model and Business Components Java API Reference 10.1.3.1.0
B28969-01


Copyright © 1997, 2006, Oracle. All rights reserved.