|
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.Objectjava.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
public class 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.
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 |
---|
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 |
JUCtrlAttrsBinding()
*** For internal framework use only *** |
|
JUCtrlAttrsBinding(java.lang.Object control,
DCIteratorBinding 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 | |
---|---|
void |
addControlToPanel(java.lang.Object panel,
java.lang.Object layoutObject,
java.lang.Object layoutCons)
*** For internal framework use only *** |
static JUCtrlAttrsBinding |
createAttributeBinding(JUFormBinding formBinding,
java.lang.Object control,
java.lang.String voInstanceName,
java.lang.String voIterName,
java.lang.String voIterBindingName,
java.lang.String attrName)
This method is used by the JDeveloper designtime wizards for binding a text component with an attribute of rows of a ViewObject/RowIterator. |
java.lang.Object |
getValueAt(int attrIndex)
Gets the value from the control for the attribute at the given index. |
protected boolean |
isControlQueriable()
Returns true if this control can participate in find form. |
void |
refreshControl()
*** For internal framework use only *** |
protected void |
setControlEnabled(boolean flag)
|
void |
setDataValueAt(java.lang.Object value,
int attrIndex)
|
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. |
java.lang.String |
toString()
|
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 |
---|
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, isUpdateable, processNewInputValue, setInputValue, validateInputValue |
Methods inherited from interface oracle.adf.model.ControlBinding |
---|
release, setListener |
Methods inherited from interface oracle.binding.ControlBinding |
---|
getName, getPath, release, resolvePath, setListener |
Methods inherited from interface oracle.jbo.StructureDef |
---|
getDefFullName, getDefName, getFullName, getName |
Constructor Detail |
---|
protected JUCtrlAttrsBinding()
public JUCtrlAttrsBinding(java.lang.Object control, DCIteratorBinding iterBinding, java.lang.String[] attrNames)
Method Detail |
---|
public java.lang.Object getValueAt(int attrIndex)
public void setValueAt(java.lang.Object value, int attrIndex)
public void addControlToPanel(java.lang.Object panel, java.lang.Object layoutObject, java.lang.Object layoutCons)
JUControlBinding
addControlToPanel
in class JUControlBinding
public 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
protected void setControlEnabled(boolean flag)
public void updateValuesFromRows(Row[] rows, boolean clear)
updateValuesFromRows
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 DCControlBinding
protected boolean isControlQueriable()
DCControlBinding
isControlQueriable
in class DCControlBinding
public static JUCtrlAttrsBinding createAttributeBinding(JUFormBinding formBinding, java.lang.Object control, java.lang.String voInstanceName, java.lang.String voIterName, java.lang.String voIterBindingName, java.lang.String attrName)
formBinding
- The containing JUPanelBinding in which the given iterator binding
would be found/created.control
- The control instance to bind to a ViewObject's attribute.voInstanceName
- Name of the instance of the ViewObject in a BC4J ApplicationModule.voIterName
- Runtime instance name of the iterator in the ViewObject (optional).voIterBindingName
- Instance name of the iterator binding that uniquely identifies an
iterator binding object used to read/write data in this given JUPanelBinding instance.attrName
- The name of the attribute of this ViewObject rows that contains data
to display/edit in the associated text control.
public java.lang.String toString()
toString
in class DCControlBinding
|
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 |