|
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
A JUControlBinding class responsible for binding controls/models that are bound to a single Row object in the BC4J layer. This class is responsible for:
This class defines the abstract APIs for subclasses to implement, so that Row's attributes can be passed to the Binding object for appropriate display/update.
Constructor Summary | |
protected |
JUCtrlAttrsBinding() *** For internal framework use only *** |
|
JUCtrlAttrsBinding(java.lang.Object control, JUIteratorBinding iterBinding, java.lang.String[] attrNames) Creates a binding between the given control and attributes in the Rows returned by the passed in Iterator Binding. |
Method Summary | |
abstract java.lang.Object |
getValueAt(int attrIndex) Gets the value from the control for the attribute at the given index. |
void |
refreshControl() *** For internal framework use only *** |
abstract void |
setDataValueAt(java.lang.Object value, int attrIndex) |
abstract 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 |
updateNavigated(NavigationEvent event) Overridden as a no-op. |
void |
updateRangeScrolled(ScrollEvent event) Overridden as a no-op. |
void |
updateValuesFromRow(Row row) Updates the control-binding and hence the control with attribute values from the attributes of this Row. |
void |
updateValuesFromRows(Row[] rows, boolean clear) Passes on the first row from the given array of rows to updateValuesFromRow() method to update the bound control's display. |
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 |
Constructor Detail |
protected JUCtrlAttrsBinding()
public JUCtrlAttrsBinding(java.lang.Object control, JUIteratorBinding iterBinding, java.lang.String[] attrNames)
Method Detail |
public abstract java.lang.Object getValueAt(int attrIndex)
public abstract void setValueAt(java.lang.Object value, int attrIndex)
public abstract void setDataValueAt(java.lang.Object value, int attrIndex)
public void updateValuesFromRow(Row row)
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 JUCtrlValueBinding
public void updateValuesFromRows(Row[] rows, boolean clear)
updateValuesFromRows
in class JUCtrlValueBinding
public void updateRangeScrolled(ScrollEvent event)
updateRangeScrolled
in class JUCtrlValueBinding
ScrollEvent
public void updateNavigated(NavigationEvent event)
updateNavigated
in class JUCtrlValueBinding
public void refreshControl()
Updates the values in a control that is bound using an Iterator already in use. (a valid row iterator) If you do not call this method, your control won't update unless you refresh the Iterator.
refreshControl
in class JUControlBinding
|
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.