|
Oracle9i Business Components for Java API Reference Oracle9i Jdeveloper (9.0.4) B10391-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.jbo.uicli.binding.JUControlBinding | +--oracle.jbo.uicli.binding.JUCtrlValueBinding | +--oracle.jbo.uicli.binding.JUCtrlAttrsBinding | +--oracle.jbo.uicli.binding.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.
Field Summary | |
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. |
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 JUIteratorBinding |
mListIterBinding Iterator Binding object that this binding uses to get the LOV data. |
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. |
Constructor Summary | |
|
JUCtrlListBinding(java.lang.Object control, JUIteratorBinding iterBinding, java.lang.String[] attrNames, int listOperMode) **For Testing purposes only*** Uses the same Iterator Binding to update as well as display values. |
protected |
JUCtrlListBinding(java.lang.Object control, JUIteratorBinding iterBinding, java.lang.String[] attrNames, JUIteratorBinding 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, JUIteratorBinding iterBinding, java.lang.String[] attrNames, java.lang.Object[] valueList) Uses the given static list of value objects to display data in the control. |
Method Summary | |
void |
convertValueList() *** For internal framework use only *** |
int |
findListIndex(java.lang.Object val) |
java.lang.Object |
findMatchingListValue(java.lang.Object val) |
java.lang.Object |
findValue(java.lang.Object val) |
static java.lang.Object[] |
getAttrValuesFromRSI(JUIteratorBinding iterBinding, RowSetIterator listRSI, java.lang.String[] listAttrNames, RowSetListener listener) |
int |
getListOperMode() Returns whether this list binding is used for Row Navigation or updating attributes on a target ViewObject (default). |
int |
getSelectedIndex() |
java.lang.Object |
getSelectedValue() |
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() |
boolean |
isSingleAttrList() *** For internal framework use only *** |
protected boolean |
matchTargetWithLov(Row targetRow, Row lovRow) *** For internal framework use only *** |
void |
navigated(NavigationEvent event) *** For internal framework use only *** |
void |
rangeRefreshed(RangeRefreshEvent event) *** For internal framework use only *** |
void |
rangeScrolled(ScrollEvent event) *** For internal framework use only *** |
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 *** |
void |
setAttributeFromValueList(int listIndex) |
void |
setListOperMode(int listOperMode) *** For internal framework use only *** |
void |
setSelectedIndex(int indx) |
protected void |
setSingleAttrList(boolean flag) *** For internal framework use only *** |
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 |
setValueList(java.lang.Object[] valueList) *** For internal framework use only *** |
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. |
Methods inherited from class oracle.jbo.uicli.binding.JUCtrlAttrsBinding |
refreshControl, setDataValueAt, setValueAt, updateNavigated, updateRangeScrolled, updateValuesFromRows |
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, reportException, setFormBinding, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int LIST_OPER_SET_ATTRIBUTE
public static int LIST_OPER_NAVIGATE
protected boolean mSingleAttrList
protected java.lang.Object[] mValueList
protected java.lang.String[] mListAttrNames
protected java.lang.String[] mListDisplayAttrNames
protected JUIteratorBinding mListIterBinding
protected boolean mStaticList
protected AttributeDef mFirstDisplayAttr
Constructor Detail |
public JUCtrlListBinding(java.lang.Object control, JUIteratorBinding iterBinding, java.lang.String[] attrNames, int listOperMode)
public JUCtrlListBinding(java.lang.Object control, JUIteratorBinding iterBinding, java.lang.String[] attrNames, java.lang.Object[] valueList)
protected JUCtrlListBinding(java.lang.Object control, JUIteratorBinding iterBinding, java.lang.String[] attrNames, JUIteratorBinding listIterBinding, java.lang.String[] listAttrNames, java.lang.String[] listDisplayAttrNames)
Method Detail |
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.
public int getListOperMode()
public void setListOperMode(int listOperMode)
Sets the operating mode for this list binding.
protected void setSingleAttrList(boolean flag)
public boolean isSingleAttrList()
public void setValueList(java.lang.Object[] valueList)
public void convertValueList()
public int getSelectedIndex()
public void setSelectedIndex(int indx)
public java.lang.Object getValueAt(int attrIndex)
JUCtrlAttrsBinding
getValueAt
in class JUCtrlAttrsBinding
public java.lang.Object[] getValueList()
public java.lang.Object getSelectedValue()
protected boolean matchTargetWithLov(Row targetRow, Row lovRow)
public java.lang.Object findMatchingListValue(java.lang.Object val)
public int findListIndex(java.lang.Object val)
public java.lang.Object findValue(java.lang.Object val)
public java.lang.Object getValueFromList(int listIndex)
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 static java.lang.Object[] getAttrValuesFromRSI(JUIteratorBinding iterBinding, RowSetIterator listRSI, java.lang.String[] listAttrNames, RowSetListener listener)
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 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.
|
Oracle9i Business Components for Java API Reference Oracle9i Jdeveloper (9.0.4) B10391-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2003, Oracle. All rights reserved.