|
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 | +--oracle.jbo.uicli.jui.JUDefaultControlBinding
Implements a generic binding for custom or any Swing control to bind to a BC4J attribute. JClient custom controls like JUImageControl use this binding. Applications that develop custom or use controls other than the ones for which JClient binding is provided, may use this binding to get BC4J data via the JClient framework and work with it in the control. Using this binding lets the panel, panelBinding, Status Bar, Navigation Bar etc. be aware of data being showed/edited in the custom control and update their status/display accordingly.
JUImageControl
Constructor Summary |
Type | Constructor |
---|---|
protected |
JUDefaultControlBinding()
Default constructor for subclassing. |
|
JUDefaultControlBinding(JUDefaultControlInterface control,
JUIteratorBinding iterBinding,
java.lang.String attrName)
This constructor should be used in controls/subclasses to pass the binding information. |
Method Summary |
Type | Method |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Updates the BC4J attribute with the current data value in this binding. |
void |
addControlToPanel(java.lang.Object panel,
java.lang.Object layoutObject,
java.lang.Object layoutCons)
*** For internal framework use only *** |
static JUDefaultControlBinding |
createAttributeBinding(JUFormBinding formBinding,
JUDefaultControlInterface control,
java.lang.String voInstanceName,
java.lang.String voIterName,
java.lang.String voIterBindingName,
java.lang.String attrName)
Creates an instance of this binding as per the given binding information. |
static JUDefaultControlBinding |
getInstance(JUFormBinding formBinding,
JUDefaultControlInterface control,
java.lang.String voInstanceName,
java.lang.String voIterName,
java.lang.String voIterBindingName,
java.lang.String attrName)
Deprecated. since 9.0.2 use createAttributeBinding() instead. |
java.lang.Object |
getValueAt(int attrIndex)
Returns the data that the bound control is displaying. |
void |
setDataValueAt(java.lang.Object value,
int attrIndex)
This method updates the value this binding holds as well as updates the BC4J attribute (hence marking the ensuing transaction dirty). |
void |
setValueAt(java.lang.Object value,
int attrIndex)
Updates the data that this binding holds. |
Methods inherited from class oracle.jbo.uicli.binding.JUCtrlAttrsBinding |
updateNavigated, updateRangeScrolled,
updateValuesFromRow, updateValuesFromRows |
Methods inherited from class oracle.jbo.uicli.binding.JUControlBinding |
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 JUDefaultControlBinding()
public JUDefaultControlBinding(JUDefaultControlInterface control, JUIteratorBinding iterBinding, java.lang.String attrName)
control
- Control which should be bound to an attribute of a BC4J row.iterBinding
- JUIteratorBinding object that contains a reference to the RowIterator that contains Rows to displayattrName
- Name of the attribute in the BC4J Row object to display.Method Detail |
public void addControlToPanel(java.lang.Object panel, java.lang.Object layoutObject, java.lang.Object layoutCons)
addControlToPanel
in class JUControlBinding
public java.lang.Object getValueAt(int attrIndex)
getValueAt
in class JUCtrlAttrsBinding
public void setValueAt(java.lang.Object value, int attrIndex)
setValueAt
in class JUCtrlAttrsBinding
public void setDataValueAt(java.lang.Object value, int attrIndex)
setDataValueAt
in class JUCtrlAttrsBinding
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public static JUDefaultControlBinding createAttributeBinding(JUFormBinding formBinding, JUDefaultControlInterface 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 ApplicationModulevoIterName
- Runtime instance name
of the iterator in the ViewObject (optional)voIterBindingName
- Instance name of the iterator binding that uniquely identifies an
iterator binding object in this given JUPanelBinding instance.attrName
- The name of the attribute of this ViewObject rows that contains data
to display/edit in the associated control.public static JUDefaultControlBinding getInstance(JUFormBinding formBinding, JUDefaultControlInterface control, java.lang.String voInstanceName, java.lang.String voIterName, java.lang.String voIterBindingName, java.lang.String attrName)
|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |