|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | 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 |
Type | Constructor |
---|---|
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 |
Type | Method |
---|---|
abstract java.lang.Object |
getValueAt(int attrIndex)
Gets the value from the control for the attribute at the given index. |
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, 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
oracle.jbo.uicli.binding.JUCtrlValueBinding
ScrollEvent
public void updateNavigated(NavigationEvent event)
updateNavigated
in class JUCtrlValueBinding
|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |