|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
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
public class JUCtrlListBinding
A JUCtrlAttrsBinding class responsible displaying a list of values from a static list or a list calculated at runtime using another BC4J ViewObject/RowIterator. This binding operates in two ways:
The operating mode is to be setup in the constructor of this binding.
This binding works in two updateable modes:
This binding can also be used to iterator through a RowIterator object and display single or multiple attributes from the rows.
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 | |
---|---|
static java.lang.String |
DH_CONTROL_TYPE
|
static java.lang.String |
DH_DISPLAY_HEIGHT
|
static java.lang.String |
DH_DISPLAY_HINT
|
static java.lang.String |
DH_DISPLAY_WIDTH
|
static java.lang.String |
DH_FORMAT
|
static java.lang.String |
DH_LABEL
Constants to access elements in the map returned in getDisplayHints() |
static java.lang.String |
DH_TOOLTIP
|
static int |
LIST_ADD_NULL_AT_END
|
static int |
LIST_ADD_NULL_AT_START
|
static int |
LIST_ADD_NULL_NOWHERE
|
static int |
LIST_ADD_NULL_UNINIT
|
static int |
LIST_OPER_MULTI_SELECT
Indicates that list binding will be used to navigate Rows in a RowIterator. |
static int |
LIST_OPER_NAVIGATE
Indicates that list binding will be used to navigate Rows in a RowIterator. |
static int |
LIST_OPER_SET_ATTRIBUTE
Indicates this list binding will be used to update attributes in a target ViewObject. |
static java.lang.String |
LISTITEM_DisplayValues
|
static java.lang.String |
LISTITEM_Index
|
static java.lang.String |
LISTITEM_Prompt
|
static java.lang.String |
LISTITEM_Selected
Constants to access elements in the map returned in getDisplayData() |
static java.lang.String |
LISTITEM_SelectedIndex
|
static java.lang.String |
LISTITEM_SelectedIndices
|
static int |
LOV_SRC_ATTRNAMES
|
static int |
LOV_SRC_EL_EXPR
|
static int |
LOV_SRC_ROW
|
static int |
LOV_SRC_ROW_DATA
|
protected AttributeDef |
mFirstDisplayAttr
|
protected java.lang.String[] |
mListAttrNames
Ordered list of attribute names that this control binding should use to update the target ViewObject's attributes. |
protected java.lang.String[] |
mListDisplayAttrNames
Ordered list of attributes that this control binding should use to display the Rows from the LOV ViewObject. |
protected DCIteratorBinding |
mListIterBinding
Iterator Binding object that this binding uses to get the LOV data. |
protected int |
mNullValueFlag
|
protected boolean |
mSingleAttrList
|
protected boolean |
mStaticList
Controls whether the list of values should be fetched once or should this list update itself when the ViewObject for the LOV changes. |
protected java.lang.Object[] |
mValueList
List of values displayed in the bound control. |
static java.lang.String |
ROW
|
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_DISPLAY_HEIGHT, ATTR_DISPLAY_HINT, ATTR_DISPLAY_WIDTH, 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 | |
---|---|
protected |
JUCtrlListBinding()
*** For internal framework use only *** |
protected |
JUCtrlListBinding(java.lang.Object control,
DCIteratorBinding iterBinding,
java.lang.String[] attrNames,
DCIteratorBinding listIterBinding,
java.lang.String[] listAttrNames,
java.lang.String[] listDisplayAttrNames)
Uses the listIterBinding object to get the iterator and attribute names from listDisplayAttrNames to display attributes from the BC4J Rows in the iterator. |
|
JUCtrlListBinding(java.lang.Object control,
DCIteratorBinding iterBinding,
java.lang.String[] attrNames,
int listOperMode)
**For Testing purposes only*** Uses the same Iterator Binding to update as well as display values. |
|
JUCtrlListBinding(java.lang.Object control,
DCIteratorBinding iterBinding,
java.lang.String[] attrNames,
java.lang.Object[] valueList)
Uses the given static list of value objects to display data in the control. |
protected |
JUCtrlListBinding(java.lang.Object control,
DCIteratorBinding iterBnd,
java.lang.String[] attrNames,
java.lang.String lbName)
|
Method Summary | |
---|---|
void |
addBindingChangeListener(JUCtrlListBindingChangeListener listener)
Register a listener. |
void |
addControlToPanel(java.lang.Object panel,
java.lang.Object layoutObject,
java.lang.Object layoutCons)
*** For internal framework use only *** |
void |
addNullAndSetValueList(java.lang.Object[] rows)
*** For internal framework use only *** This method adjusts the given list with a nullvalue flag as set on this binding. |
protected void |
addRowToMRU(Row row)
|
protected void |
addSelectionToMRU()
|
protected void |
bindRowSetIterator(DCIteratorBinding iterBnd,
RowSetIterator rsi)
|
protected void |
clearMRU()
|
void |
clearSelectedIndices()
|
void |
convertValueList()
*** For internal framework use only *** |
protected void |
createListIterBinding(RowSetIterator rsi,
java.lang.String criteria)
|
protected boolean |
createRowSetIterator()
|
void |
filterList(java.util.Map valuesMap)
Given a map of attribute names and values that they map to, shorten the data that this list is exposing. |
protected java.lang.Object |
findAndUpdateSelectedIndex(java.lang.Object val,
boolean flag)
*** For internal framework use only *** findMatching List value for the given object and if found, set the selected index to that value as well if given flag is true. |
int |
findListIndex(AttributeList nvp)
Finds the index of a list row that contains the matching values. |
int |
findListIndex(java.lang.Object val)
Finds the index of a row that contains the selected display value. |
java.lang.Object |
findMatchingListValue(java.lang.Object val)
|
RowIterator |
findShuttleAvailableRows(DCIteratorBinding baseIter,
java.lang.String selectAttr)
|
RowIterator |
findShuttleSelectedRows(DCIteratorBinding baseIter,
java.lang.String selectAttr)
|
java.lang.Object |
findValue(java.lang.Object val)
|
AttributeDef[] |
getAttributeDefs()
Return Attribute definitions of the attributes to which this binding is bound to. |
protected int |
getComboDisplayAttributeCount()
|
protected AttributeDef[] |
getDisplayAttributeDefs()
|
java.lang.String |
getDisplayCriteriaName()
Return the view criteria name that the LOV Search may use to filter the LOV results. |
java.util.List |
getDisplayData()
Returns a List of Map elements. |
java.util.List |
getDisplayHints()
Returns a List of Map elements (name-value pairs) for UI hints for all display attributes in this list binding. |
java.util.Iterator |
getDisplayListIterator()
Returns an ArrayList of values that should be displayed in this list. |
int |
getDisplayWidth()
Returns the display width for this attribute. |
protected RowSetIterator |
getFilteredRowSetIterator(java.util.Map valuesMap)
Given a map of attribute names and values that they map to, shorten the data that this list is exposing. |
protected RowSetIterator |
getFilteredRowSetIteratorWithCaseCheck(java.util.Map valuesMap,
boolean exact,
boolean caseInsensitive)
|
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. |
protected java.util.HashMap |
getIterBindingDefOptions(DCDataControl dc)
|
protected java.lang.String |
getListBindingName(DCIteratorBinding iter,
JUCtrlListDef def)
|
java.lang.String[] |
getListDisplayAttrNames()
*** For internal framework use only *** |
DCIteratorBinding |
getListIterBinding()
Returns the iterator binding that is used to fill in the values for this list. |
int |
getListOperMode()
Returns whether this list binding is used for Row Navigation or updating attributes on a target ViewObject (default). |
RowSetIterator |
getListRowSetIterator()
|
protected int |
getMRUSize()
|
protected java.lang.String |
getMRUString()
|
protected int |
getNullValueFlag()
|
int |
getNullValueIndex()
|
DCIteratorBinding |
getPreferredListIterBinding()
|
protected boolean |
getPreferredListMode()
|
RowSetIterator |
getPreferredListRowSetIterator()
|
int |
getSelectedIndex()
|
protected int |
getSelectedIndexValue()
|
int[] |
getSelectedIndices()
|
java.lang.Object |
getSelectedValue()
|
java.lang.Object[] |
getSelectedValues()
|
java.lang.String |
getSelectionAttributeName()
|
java.lang.String |
getServerBindingName()
|
protected java.lang.Object |
getTargetRowData(Row targetRow,
AttributeDef ad)
|
java.lang.Object |
getValueAt(int attrIndex)
Gets the value from the control for the attribute at the given index. |
java.lang.Object |
getValueFromList(int listIndex)
|
java.lang.Object[] |
getValueList()
*** For internal framework use only *** |
protected void |
handleFilteredList()
|
protected boolean |
hasMRU()
|
boolean |
hasNullValue()
|
protected void |
initFromServerBinding()
|
protected void |
initResources()
Invoked when the bindingContainer is being initialized for the first time or after it's locale is changed. |
protected java.lang.Object |
internalGet(java.lang.String key)
Subclasses should override this to handle a specific key. |
boolean |
isAutoSubmit()
Returns the autoSubmit value for this attribute. |
protected boolean |
isControlQueriable()
For ADF/nonJClient apps return true so that list bindings are created as queriable if the bound iteratorBinding allows findmode. |
boolean |
isMandatory()
Primarily for spel support. |
boolean |
isSingleAttrList()
*** For internal framework use only *** |
boolean |
isUpdateable()
Overridden to return true incase of NavigationListBinding, so that list component is rendered as enabled. |
protected boolean |
isViewInitialized()
|
void |
iteratorClosed(RowSetManagementEvent event)
Resets the internal state of this binding object and marks it as unusable. |
void |
iteratorReset(RowSetManagementEvent event)
Notifies rangeRefreshed to all bindings so that they can update their display. |
protected boolean |
matchTargetWithLov(Row targetRow,
Row lovRow)
*** For internal framework use only *** |
void |
moveDown(DCIteratorBinding baseRSI,
java.lang.String selectAttr)
|
void |
moveToBottom(DCIteratorBinding baseRSI,
java.lang.String selectAttr)
|
void |
moveToTop(DCIteratorBinding baseRSI,
java.lang.String selectAttr)
|
void |
moveUp(DCIteratorBinding baseRSI,
java.lang.String selectAttr)
|
void |
navigated(NavigationEvent event)
*** For internal framework use only *** |
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. |
java.lang.Object |
put(java.lang.Object obj,
java.lang.Object value)
|
void |
rangeRefreshed(RangeRefreshEvent event)
*** For internal framework use only *** |
void |
rangeScrolled(ScrollEvent event)
*** For internal framework use only *** |
void |
release(int flags)
|
void |
removeBindingChangeListener(JUCtrlListBindingChangeListener listener)
Remove a listener. |
protected void |
resetAttributeDefs()
|
void |
resetShuttle(DCIteratorBinding baseIter,
java.lang.String selectAttr,
JUCtrlListBinding otherList)
|
void |
rowDeleted(DeleteEvent event)
*** For internal framework use only *** |
void |
rowInserted(InsertEvent event)
*** For internal framework use only *** |
void |
rowUpdated(UpdateEvent event)
*** For internal framework use only *** |
protected void |
setAllowBlindMatchInFilter(boolean flag)
|
void |
setAttributeFromValueList(int listIndex)
|
void |
setDataValueAt(java.lang.Object value,
int attrIndex)
|
protected void |
setDef(DCControlBindingDef controlDef)
|
protected void |
setFetchDataOnSetup(boolean flag)
|
protected void |
setInputValueInRow(JUCtrlValueBinding binding,
Row row,
AttributeDef ad,
java.lang.Object value,
boolean handleException)
Primarily for spel support. |
protected void |
setListIterBinding(DCIteratorBinding iterBnd)
|
void |
setListOperMode(int listOperMode)
*** For internal framework use only *** |
protected int |
setListValueAsSelected(java.lang.Object val)
|
protected void |
setNullValueProperties(int flag)
|
protected void |
setPreferredListMode(boolean flag)
|
void |
setSelectedIndex(int indx)
|
protected void |
setSelectedIndexValue(int indx)
|
void |
setSelectedIndices(int[] arr)
|
protected void |
setServerBindingName(java.lang.String sName)
|
protected void |
setStaticList(boolean staticList)
|
protected void |
setTargetAttrsFromLovRow(Row targetRow,
Row lovRow)
*** For internal framework use only *** |
protected void |
setupListItems(boolean clean,
boolean keepSelectedIndex)
If this list is displaying a single attribute and updates a single attribute, then this method fetches the attribute value from all the rows in the given LOV list iterator and sets that as the list of values to display in the bound control. |
void |
setValueAt(java.lang.Object value,
int attrIndex)
Updates the control/control-binding with the latest value of the attribute at the given index with the given value. |
void |
setValueList(java.lang.Object[] valueList)
*** For internal framework use only *** |
void |
shuttle(DCIteratorBinding baseIter,
java.lang.String selectAttr,
boolean select,
boolean selectAll,
JUCtrlListBinding otherList)
|
java.lang.String |
toString()
|
protected void |
updateTargetFromSelectedValue(java.lang.Object val)
|
void |
updateValuesFromRow(Row row)
Updates the control-binding and hence the control with attribute values from the attributes of this Row. |
protected boolean |
usesServerBinding()
|
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, internalPut, 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 |
Field Detail |
---|
public static final int LIST_OPER_SET_ATTRIBUTE
public static final int LIST_OPER_NAVIGATE
public static final int LIST_OPER_MULTI_SELECT
protected boolean mSingleAttrList
public static final int LIST_ADD_NULL_UNINIT
public static final int LIST_ADD_NULL_NOWHERE
public static final int LIST_ADD_NULL_AT_START
public static final int LIST_ADD_NULL_AT_END
protected int mNullValueFlag
protected java.lang.Object[] mValueList
protected java.lang.String[] mListAttrNames
protected java.lang.String[] mListDisplayAttrNames
protected DCIteratorBinding mListIterBinding
protected boolean mStaticList
protected AttributeDef mFirstDisplayAttr
public static final java.lang.String LISTITEM_Selected
public static final java.lang.String LISTITEM_Index
public static final java.lang.String LISTITEM_Prompt
public static final java.lang.String LISTITEM_DisplayValues
public static final java.lang.String LISTITEM_SelectedIndex
public static final java.lang.String LISTITEM_SelectedIndices
public static final java.lang.String DH_LABEL
public static final java.lang.String DH_TOOLTIP
public static final java.lang.String DH_DISPLAY_HINT
public static final java.lang.String DH_DISPLAY_HEIGHT
public static final java.lang.String DH_DISPLAY_WIDTH
public static final java.lang.String DH_CONTROL_TYPE
public static final java.lang.String DH_FORMAT
public static final int LOV_SRC_ATTRNAMES
public static final int LOV_SRC_ROW_DATA
public static final int LOV_SRC_EL_EXPR
public static final int LOV_SRC_ROW
public static final java.lang.String ROW
Constructor Detail |
---|
protected JUCtrlListBinding()
protected JUCtrlListBinding(java.lang.Object control, DCIteratorBinding iterBnd, java.lang.String[] attrNames, java.lang.String lbName)
public JUCtrlListBinding(java.lang.Object control, DCIteratorBinding iterBinding, java.lang.String[] attrNames, int listOperMode)
public JUCtrlListBinding(java.lang.Object control, DCIteratorBinding iterBinding, java.lang.String[] attrNames, java.lang.Object[] valueList)
protected JUCtrlListBinding(java.lang.Object control, DCIteratorBinding iterBinding, java.lang.String[] attrNames, DCIteratorBinding listIterBinding, java.lang.String[] listAttrNames, java.lang.String[] listDisplayAttrNames)
Method Detail |
---|
protected void setServerBindingName(java.lang.String sName)
public final java.lang.String getServerBindingName()
protected void setFetchDataOnSetup(boolean flag)
protected void setDef(DCControlBindingDef controlDef)
setDef
in class JUCtrlValueBinding
protected void setAllowBlindMatchInFilter(boolean flag)
protected void setPreferredListMode(boolean flag)
protected boolean getPreferredListMode()
protected void setListIterBinding(DCIteratorBinding iterBnd)
protected void initResources()
DCControlBinding
initResources
in class JUCtrlValueBinding
protected final boolean hasMRU()
protected boolean usesServerBinding()
protected void initFromServerBinding()
protected void setupListItems(boolean clean, boolean keepSelectedIndex)
If this list is displaying multiple attributes and/or is used in navigation mode, then the valueList is set with the list of all rows from the LOV Iterator binding. In this case, this binding also listens to events from the RowSetIterator for row currency changes, new rows, etc.
protected boolean createRowSetIterator()
protected java.util.HashMap getIterBindingDefOptions(DCDataControl dc)
protected void createListIterBinding(RowSetIterator rsi, java.lang.String criteria)
protected void bindRowSetIterator(DCIteratorBinding iterBnd, RowSetIterator rsi)
public DCIteratorBinding getListIterBinding()
public RowSetIterator getListRowSetIterator()
public DCIteratorBinding getPreferredListIterBinding()
public RowSetIterator getPreferredListRowSetIterator()
public int getListOperMode()
public java.lang.String[] getListDisplayAttrNames()
public void setListOperMode(int listOperMode)
Sets the operating mode for this list binding.
public boolean isSingleAttrList()
public void setValueList(java.lang.Object[] valueList)
public void addNullAndSetValueList(java.lang.Object[] rows)
protected int getMRUSize()
protected java.lang.String getMRUString()
protected void clearMRU()
protected void addSelectionToMRU()
protected void addRowToMRU(Row row)
public boolean hasNullValue()
public int getNullValueIndex()
protected final int getNullValueFlag()
protected void setNullValueProperties(int flag)
public void convertValueList()
public int getSelectedIndex()
public void setSelectedIndex(int indx)
protected void setSelectedIndexValue(int indx)
protected int getSelectedIndexValue()
public java.lang.Object getValueAt(int attrIndex)
JUCtrlAttrsBinding
getValueAt
in class JUCtrlAttrsBinding
public java.lang.Object[] getValueList()
Returns the static value list as set into this listbinding incase of enumeration lists. In case of Row bound lists, returns an array of LOV rows set into this listbinding.
public java.util.Iterator getDisplayListIterator()
public java.lang.Object getSelectedValue()
protected final java.lang.Object getTargetRowData(Row targetRow, AttributeDef ad)
protected boolean matchTargetWithLov(Row targetRow, Row lovRow)
protected int setListValueAsSelected(java.lang.Object val)
public java.lang.Object findMatchingListValue(java.lang.Object val)
protected java.lang.Object findAndUpdateSelectedIndex(java.lang.Object val, boolean flag)
public int findListIndex(java.lang.Object val)
val
- A selected display value or a selected row.
public int findListIndex(AttributeList nvp)
nvp
- Attribute name and value pairs in the target row
public java.lang.String toString()
toString
in class JUCtrlAttrsBinding
public java.lang.Object findValue(java.lang.Object val)
public java.lang.Object getValueFromList(int listIndex)
protected boolean isViewInitialized()
protected boolean isControlQueriable()
isControlQueriable
in class JUCtrlAttrsBinding
public boolean isMandatory()
JUCtrlValueBinding
Returns mandatory flag for the first attribute that this binding is bound to.
isMandatory
in class JUCtrlValueBinding
public void updateValuesFromRow(Row row)
JUCtrlAttrsBinding
This method also enables/disables the Swing control based on the updateability of the first (Default) attribute to which this control is bound.
updateValuesFromRow
in class JUCtrlAttrsBinding
protected void setTargetAttrsFromLovRow(Row targetRow, Row lovRow)
public void setAttributeFromValueList(int listIndex)
protected void updateTargetFromSelectedValue(java.lang.Object val)
public AttributeDef[] getAttributeDefs()
JUCtrlValueBinding
getAttributeDefs
in interface StructureDef
getAttributeDefs
in class JUCtrlValueBinding
protected final java.lang.String getListBindingName(DCIteratorBinding iter, JUCtrlListDef def)
public void rangeRefreshed(RangeRefreshEvent event)
rangeRefreshed
in interface RowSetListener
event
- a description of the new ranges.public void rowInserted(InsertEvent event)
rowInserted
in interface RowSetListener
event
- a description of the new Row object.public void rowDeleted(DeleteEvent event)
rowDeleted
in interface RowSetListener
event
- a description of the deleted Row object.public void rowUpdated(UpdateEvent event)
rowUpdated
in interface RowSetListener
event
- a description of the modified Row object.public void navigated(NavigationEvent event)
navigated
in interface RowNavigationListener
navigated
in interface RowSetListener
event
- a description of the new and previous current rows.public void rangeScrolled(ScrollEvent event)
rangeScrolled
in interface RowSetListener
event
- a description of the new range.public void iteratorReset(RowSetManagementEvent event)
iteratorReset
in interface RowSetManagementListener
event
- a description of the event.public void iteratorClosed(RowSetManagementEvent event)
iteratorClosed
in interface RowSetManagementListener
event
- a description of the event.public void removeBindingChangeListener(JUCtrlListBindingChangeListener listener)
listener
- JUCtrlListBindingChangeListener
public void release(int flags)
release
in class JUCtrlValueBinding
public void setDataValueAt(java.lang.Object value, int attrIndex)
setDataValueAt
in class JUCtrlAttrsBinding
public void setValueAt(java.lang.Object value, int attrIndex)
JUCtrlAttrsBinding
setValueAt
in class JUCtrlAttrsBinding
public void addBindingChangeListener(JUCtrlListBindingChangeListener listener)
listener
- JUCtrlListBindingChangeListener
public void addControlToPanel(java.lang.Object panel, java.lang.Object layoutObject, java.lang.Object layoutCons)
JUControlBinding
addControlToPanel
in class JUCtrlAttrsBinding
public java.lang.Object put(java.lang.Object obj, java.lang.Object value)
put
in interface java.util.Map
put
in class JUCtrlValueBinding
protected java.lang.Object getInputValueOnError()
getInputValueOnError
in class JUCtrlValueBinding
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 JUCtrlValueBinding
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 JUCtrlValueBinding
public java.util.List getDisplayData()
selected
- Boolean.TRUE if current entry should be selectedindex
- Index value of the current entry()prompt
- Concatenated string of all display attribute values for the current entry()displayValues
- Iterator of display attribute values.selectedIndex
- Index of the selected entry that this listBinding is bound to.
Returns null if the list of values for this binding is null. This condition should not occur if the list-binding definition is complete.
public java.util.List getDisplayHints()
label
- Label to display for the current attributetooltip
- Tooltip to display for the current attributedisplayHint
- DisplayHint for the current attributedisplayHeight
- Height in lines for the current attributedisplayWidth
- Width in characters for the current attributecontrolType
- ControlType hint for the current attributeformat
- Format to be used for the current attribute
protected java.lang.Object internalGet(java.lang.String key)
Properties returned vis getter on this control bindings are:
displayHints
- returns getDisplayHints()displayData
- returns getDisplayData()path
- returns getPath()
internalGet
in class JUCtrlValueBinding
protected void resetAttributeDefs()
resetAttributeDefs
in class JUCtrlValueBinding
protected int getComboDisplayAttributeCount()
protected AttributeDef[] getDisplayAttributeDefs()
public boolean processNewInputValue(java.lang.Object value)
processNewInputValue
in class JUCtrlValueBinding
value
- new selectedIndex value.protected void setStaticList(boolean staticList)
protected RowSetIterator getFilteredRowSetIterator(java.util.Map valuesMap)
This method establishes a new ViewCriteria on the collection that the list source iterator binding is bound to. Looks up values from the given map based on the Attribute names in the associated list source collection and sets the corresponding values on a new ViewCriteria row that is added to the ViewCriteria. It then calls findByViewCriteria api on the associated list source iterator and returns the resulting RowSetIterator
This filtered iterator may be used as datasource for lov dialogs that comes up if the iterator contains more than a row.
protected RowSetIterator getFilteredRowSetIteratorWithCaseCheck(java.util.Map valuesMap, boolean exact, boolean caseInsensitive)
public void filterList(java.util.Map valuesMap)
This method establishes a new ViewCriteria on the collection that the list source iterator binding is bound to. Looks up values from the given map based on the Attribute names in the associated list source collection and sets the corresponding values on a new ViewCriteria row that is added to the ViewCriteria and then applied on the collection to filter the collection.
If the filtered list has only one row then that row is assumed as the selected row and list selection index is set to that row.
protected void handleFilteredList()
public int getDisplayWidth()
JUCtrlValueBinding
Calling this on a control-binding that does not have an attribute will throw a NullPointerException
getDisplayWidth
in class JUCtrlValueBinding
public boolean isUpdateable()
isUpdateable
in interface AttributeBinding
isUpdateable
in class JUCtrlValueBinding
public boolean isAutoSubmit()
JUCtrlValueBinding
Calling this on a control-binding that does not have an attribute will throw a NullPointerException
isAutoSubmit
in class JUCtrlValueBinding
public int[] getSelectedIndices()
public java.lang.Object[] getSelectedValues()
public void setSelectedIndices(int[] arr)
public void clearSelectedIndices()
public java.lang.String getSelectionAttributeName()
public void resetShuttle(DCIteratorBinding baseIter, java.lang.String selectAttr, JUCtrlListBinding otherList)
public void shuttle(DCIteratorBinding baseIter, java.lang.String selectAttr, boolean select, boolean selectAll, JUCtrlListBinding otherList)
public RowIterator findShuttleAvailableRows(DCIteratorBinding baseIter, java.lang.String selectAttr)
public RowIterator findShuttleSelectedRows(DCIteratorBinding baseIter, java.lang.String selectAttr)
public void moveToTop(DCIteratorBinding baseRSI, java.lang.String selectAttr)
public void moveUp(DCIteratorBinding baseRSI, java.lang.String selectAttr)
public void moveDown(DCIteratorBinding baseRSI, java.lang.String selectAttr)
public void moveToBottom(DCIteratorBinding baseRSI, java.lang.String selectAttr)
public java.lang.String getDisplayCriteriaName()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |