|
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
A JUControlBinding class responsible for maintaining which attribute(s) of a row this binding can display/update. This class accepts a list of attribute names and gets the AttributeDef objects for those attributes from the associated ViewObject. This class also provides APIs to update values in a control given a new row or a set of rows. JUIteratorBinding uses APIs in this class to notify the controls of:
This class also has accessor methods that return attribute values for Attributes with which this control binding is working. The indices of these attributes are ordered based on the names provided to this control binding in the constructor.
Constructor Summary |
Type | Constructor |
---|---|
protected |
JUCtrlValueBinding()
|
|
JUCtrlValueBinding(java.lang.Object control,
JUIteratorBinding iterBinding,
java.lang.String[] attrNames)
|
Method Summary |
Type | Method |
---|---|
AttributeDef |
findAttributeDef(java.lang.String name)
|
java.lang.Object |
getAttribute(int index)
Selects the attribute at the given index. |
java.lang.Object |
getAttribute(java.lang.String name)
Selects the attribute with the given name. |
int |
getAttributeCount()
Counts the number of attributes. |
AttributeDef |
getAttributeDef(int index)
|
AttributeDef[] |
getAttributeDefs()
|
java.lang.Object |
getAttributeFromRow(int rowIndexInRange,
int attrIndex)
|
java.lang.Object |
getAttributeFromRow(int rowIndexInRange,
java.lang.String name)
|
java.lang.Object |
getAttributeFromRow(Row row,
AttributeDef def)
|
java.lang.Object |
getAttributeFromRow(Row row,
int attrIndex)
|
java.lang.Object |
getAttributeFromRow(Row row,
java.lang.String name)
|
int |
getAttributeIndexOf(java.lang.String name)
Find the index of the named attribute. |
java.lang.String[] |
getAttributeNames()
|
boolean |
isAttributeUpdateable(int index)
Determines whether this attribute is updateable for that row instance. |
void |
setAttribute(int index,
java.lang.Object value)
Sets the value of an attribute. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Set the value for the named attribute. |
void |
setAttributeInRow(int rowIndexInRange,
int attrIndex,
java.lang.Object value,
boolean handleException)
|
void |
setAttributeInRow(int rowIndexInRange,
java.lang.String name,
java.lang.Object value,
boolean handleException)
|
void |
setAttributeInRow(Row row,
AttributeDef def,
java.lang.Object value)
|
void |
setAttributeInRow(Row row,
AttributeDef def,
java.lang.Object value,
boolean handleException)
|
void |
setAttributeInRow(Row row,
int attrIndex,
java.lang.Object value,
boolean handleException)
|
void |
setAttributeInRow(Row row,
java.lang.String name,
java.lang.Object value,
boolean handleException)
|
void |
stopEditing()
Notified by NavigationBar to stop any edits on the current control. |
abstract void |
updateNavigated(NavigationEvent event)
Update the current row display as the currency has navigated in the iterator with which this control binding is working. |
abstract void |
updateRangeScrolled(ScrollEvent event)
Update the control display based on whether the rows of data has scrolled. |
void |
updateRowDeleted(DeleteEvent event)
Notification that a row was deleted in the associated iterator. |
void |
updateRowInserted(InsertEvent event)
Notification that a new row was inserted in the associated iterator. |
abstract void |
updateValuesFromRow(Row row)
Given a row, update the control with new attribute values from this row based on the attributes with which this binding is associated. |
abstract void |
updateValuesFromRows(Row[] rows,
boolean clear)
Given a set of rows, update the control with new attribute values from the rows based on the attributes with which this binding is associated. |
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 JUCtrlValueBinding()
public JUCtrlValueBinding(java.lang.Object control, JUIteratorBinding iterBinding, java.lang.String[] attrNames)
Method Detail |
public abstract void updateValuesFromRow(Row row)
public abstract void updateValuesFromRows(Row[] rows, boolean clear)
public abstract void updateRangeScrolled(ScrollEvent event)
ScrollEvent
public abstract void updateNavigated(NavigationEvent event)
public void updateRowInserted(InsertEvent event)
public void updateRowDeleted(DeleteEvent event)
public java.lang.String[] getAttributeNames()
public AttributeDef[] getAttributeDefs()
public AttributeDef getAttributeDef(int index)
public AttributeDef findAttributeDef(java.lang.String name)
public java.lang.Object getAttributeFromRow(int rowIndexInRange, int attrIndex)
public java.lang.Object getAttributeFromRow(int rowIndexInRange, java.lang.String name)
public java.lang.Object getAttributeFromRow(Row row, AttributeDef def)
public java.lang.Object getAttributeFromRow(Row row, int attrIndex)
public java.lang.Object getAttributeFromRow(Row row, java.lang.String name)
public void setAttributeInRow(int rowIndexInRange, int attrIndex, java.lang.Object value, boolean handleException)
public void setAttributeInRow(int rowIndexInRange, java.lang.String name, java.lang.Object value, boolean handleException)
public void setAttributeInRow(Row row, AttributeDef def, java.lang.Object value)
public void setAttributeInRow(Row row, AttributeDef def, java.lang.Object value, boolean handleException)
public void setAttributeInRow(Row row, int attrIndex, java.lang.Object value, boolean handleException)
public void setAttributeInRow(Row row, java.lang.String name, java.lang.Object value, boolean handleException)
public java.lang.Object getAttribute(int index)
AttributeList
getAttribute
in interface AttributeList
oracle.jbo.AttributeList
index
- an integer in the range 0
to getAttributeCount() - 1
.index
.public java.lang.Object getAttribute(java.lang.String name)
AttributeList
getAttribute
in interface AttributeList
oracle.jbo.AttributeList
name
- an attribute name.name
.JboException
,
- a runtime exception,
if name
is unknown.public void setAttribute(int index, java.lang.Object value)
AttributeList
setAttribute
in interface AttributeList
oracle.jbo.AttributeList
index
- the attribute's index.value
- the value to be assigned to the attribute.public void setAttribute(java.lang.String name, java.lang.Object value)
AttributeList
setAttribute
in interface AttributeList
oracle.jbo.AttributeList
name
- the attribute's name.value
- the value to be assigned to the attribute.JboException
,
- a runtime exception, i
if name
is unknown.public int getAttributeCount()
AttributeList
getAttributeCount
in interface AttributeList
oracle.jbo.AttributeList
public int getAttributeIndexOf(java.lang.String name)
AttributeList
getAttributeIndexOf
in interface AttributeList
oracle.jbo.AttributeList
name
- the attribute's name.0
to getAttributeCount()
- 1.JboException
,
- a runtime exception,
if name
is unknown.public boolean isAttributeUpdateable(int index)
public void stopEditing()
|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |