|
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.JUCtrlScrollBinding
Implements binding of controls like Scrollbar, Slider, etc to a ViewObject. This class listens to the RowSet events from the associated BC4J RowSet and resets/updates the control/model with appropriate currency and range.
Field Summary |
Type | Field |
---|---|
protected int |
mExt
|
protected int |
mMax
|
protected int |
mMin
|
protected boolean |
mScrollCurrRow
|
protected boolean |
mUseEstRC
|
protected int |
mVal
|
Constructor Summary |
JUCtrlScrollBinding(java.lang.Object control,
JUIteratorBinding iterBinding,
boolean scrollCurrRow,
boolean deferAssignValues,
boolean useEstRC)
Creates an instance of this class bound to the given control and iterator Binding object. |
Method Summary |
Type | Method |
---|---|
protected void |
assignValues()
Initializes the binding member variables from the current settings in the associated RowSetIterator. |
protected void |
bindRowSetIterator(RowSetIterator rsi)
Associates the given RowSet iterator with this Binding object. |
protected void |
initFromRSI()
Uses the current RowSetIterator to calculate the current values from the associated RowSetIterator. |
void |
navigated(NavigationEvent event)
Invoked when the current-row designation changes. |
void |
rangeRefreshed(RangeRefreshEvent event)
Invoked when the range changes. |
void |
rangeScrolled(ScrollEvent event)
Invoked when the range is scrolled. |
void |
rowDeleted(DeleteEvent event)
Invoked when a row has been deleted. |
void |
rowInserted(InsertEvent event)
Invoked when a row has been inserted. |
void |
rowUpdated(UpdateEvent event)
Invoked when an attribute of the row has been changed. |
void |
setRangeScrollValue(int newVal)
Sets the currency to the given row index in the current range of rows that the associated iterator is working with. |
protected abstract void |
setRangeScrollValues(int val,
int ext,
int minVal,
int maxVal)
Sets the current iterator state by setting the given set of values on the iterator. |
protected abstract void |
setValues(int val,
int ext,
int minVal,
int maxVal)
Reflects the current iterator state by setting the given set of values on the associated control. |
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 |
Field Detail |
protected int mMin
protected int mMax
protected int mVal
protected int mExt
protected boolean mScrollCurrRow
protected boolean mUseEstRC
Constructor Detail |
public JUCtrlScrollBinding(java.lang.Object control, JUIteratorBinding iterBinding, boolean scrollCurrRow, boolean deferAssignValues, boolean useEstRC)
scrollCurrRow
- Not used.deferAssignValues
- If true, indicates that the iterator's current settings
should be immediately applied to the bound control.useEstRC
- If true, indicates that the binding should use getEstimatedRowCount()
on the associated iterator to figure out the maximum number of rows in the associated
iterator. Otherwise, in-memory row count of the iterator is used.Method Detail |
protected abstract void setValues(int val, int ext, int minVal, int maxVal)
val
- The current value which indicates the row index of the current row in the
current range.ext
- The extent value which is used by a control to scroll that many rows
up or down.minVal
- The minimum value that this control allows.maxVal
- The maximum value that this control allows.protected abstract void setRangeScrollValues(int val, int ext, int minVal, int maxVal)
val
- The current value which indicates the row index of the current row in the
current range.ext
- The extent value which is used by a control to scroll that many rows
up or down.minVal
- The minimum value that this control allows.maxVal
- The maximum value that this control allows.protected void initFromRSI()
protected void assignValues()
public void setRangeScrollValue(int newVal)
public void rangeRefreshed(RangeRefreshEvent event)
RowSetListener
rangeRefreshed
in interface RowSetListener
oracle.jbo.RowSetListener
event
- a description of the new ranges.public void rangeScrolled(ScrollEvent event)
RowSetListener
rangeScrolled
in interface RowSetListener
oracle.jbo.RowSetListener
event
- a description of the new range.public void rowInserted(InsertEvent event)
RowSetListener
rowInserted
in interface RowSetListener
oracle.jbo.RowSetListener
event
- a description of the new Row object.public void rowDeleted(DeleteEvent event)
RowSetListener
rowDeleted
in interface RowSetListener
oracle.jbo.RowSetListener
event
- a description of the deleted Row object.public void rowUpdated(UpdateEvent event)
RowSetListener
rowUpdated
in interface RowSetListener
oracle.jbo.RowSetListener
event
- a description of the modified Row object.public void navigated(NavigationEvent event)
RowSetListener
navigated
in interface RowSetListener
oracle.jbo.RowSetListener
event
- a description of the new and previous current rows.protected void bindRowSetIterator(RowSetIterator rsi)
|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |