|
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
The base class for all binding objects in the JClient framework that bind a Swing control/model to a BC4J attribute(s). This class manages:
This class also implements helper methods to access BC4J objects like the Transaction, the current Application Module, the ViewObject that this control binding is working with, the current RowIterator, the current Row in the iterator that this control binding is associated with. It also provides methods to execute the ViewObject behind this again (optionally).
Constructor Summary |
Type | Constructor |
---|---|
protected |
JUControlBinding()
|
|
JUControlBinding(java.lang.Object control,
JUIteratorBinding iterBinding)
Constructor used in the framework to pass in the Swing control and the Iterator Binding with which this binding object works to get it's data. |
Method Summary |
Type | Method |
---|---|
abstract void |
addControlToPanel(java.lang.Object panel,
java.lang.Object layoutObject,
java.lang.Object layoutCons)
*** For internal framework use only *** |
void |
executeQuery()
Calls JUIteratorBinding.executeQuery which in turn executes the query to repopulate the rows for the RowSet with which this control is working. |
void |
executeQueryIfNeeded()
Calls JUIteratorBinding.executeQueryIfNeeded which in turn executes the query to repopulate the rows for the RowSet with which this control is working, if it is not already executed. |
Row[] |
getAllRowsInRange()
Returns the rows in current range in the RowIterator with which this control binding is working. |
ApplicationModule |
getApplicationModule()
Returns the Application Module to which this control's ViewObject belongs. |
java.lang.Object |
getControl()
Gets the associated Swing control. |
Row |
getCurrentRow()
Returns the current row for which this control is displaying data. |
JUControlDef |
getDef()
*** For internal framework use only *** |
JUFormBinding |
getFormBinding()
Returns the form binding object that this control binding is part of. |
JUIteratorBinding |
getIteratorBinding()
Returns the iterator binding with which this control binding is associated to get it's data. |
java.lang.Object |
getLayoutObject()
*** For internal framework use only *** |
java.lang.String |
getName()
*** For internal framework use only *** |
Row |
getRowAtRangeIndex(int rangeIndex)
Returns the row of given range index. |
RowIterator |
getRowIterator()
Returns the current RowIterator with which this control binding is working. |
Transaction |
getTransaction()
Returns the Transaction object for the current BC4J session. |
ViewObject |
getViewObject()
Returns the ViewObject for which this control is displaying data. |
protected boolean |
isControlQueriable()
*** For internal framework use only *** |
void |
reportException(java.lang.Exception ex)
Report the given exception via the containing FormBinding object. |
void |
setFormBinding(JUFormBinding formBnd)
*** For internal framework use only *** |
void |
setName(java.lang.String name)
*** For internal framework use only *** |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected JUControlBinding()
public JUControlBinding(java.lang.Object control, JUIteratorBinding iterBinding)
Method Detail |
public abstract void addControlToPanel(java.lang.Object panel, java.lang.Object layoutObject, java.lang.Object layoutCons)
public final java.lang.String getName()
public void setName(java.lang.String name)
public void reportException(java.lang.Exception ex)
public final JUFormBinding getFormBinding()
public void setFormBinding(JUFormBinding formBnd)
public final JUControlDef getDef()
public final JUIteratorBinding getIteratorBinding()
public Transaction getTransaction()
public ApplicationModule getApplicationModule()
public ViewObject getViewObject()
public RowIterator getRowIterator()
public void executeQuery()
public void executeQueryIfNeeded()
public Row getCurrentRow()
public Row getRowAtRangeIndex(int rangeIndex)
rangeIndex
- range index of the row.public Row[] getAllRowsInRange()
public java.lang.Object getControl()
public java.lang.Object getLayoutObject()
protected boolean isControlQueriable()
Returns true if this control can participate in find form. Note that some controls like ProgressBar cannot participate in a find form as they do no accept user inputs. By default this method returns false and it's up to the individual control bindings to determine whether they can participate in a find mode.
|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |