|
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
|
+--oracle.jbo.uicli.jui.JUBoundedRangeBinding
|
+--oracle.jbo.uicli.jui.JUProgressBarBinding
Implements binding a JProgressBar control with a BC4J RowSetIterator/ViewObject. Use this binding to use JProgressBar to navigate the current row in a RowSetIterator/ViewObject.
| Fields inherited from class oracle.jbo.uicli.binding.JUCtrlScrollBinding |
mExt, mMax, mMin,
mScrollCurrRow, mUseEstRC, mVal |
| Constructor Summary |
JUProgressBarBinding(javax.swing.JProgressBar sb,
JUIteratorBinding iterBinding,
boolean scrollCurrRow,
boolean deferAssignValues,
boolean useEstRC)
Binds a JProgressBar control to a BC4J ViewObject such that JProgressBar can be used to navigate rows in the ViewObject. |
| Method Summary |
| Type | Method |
|---|---|
void |
addChangeListener(javax.swing.event.ChangeListener x)
|
void |
addControlToPanel(java.lang.Object panel,
java.lang.Object layoutObject,
java.lang.Object layoutCons)
*** For internal framework use only *** |
static javax.swing.BoundedRangeModel |
createViewBinding(JUPanelBinding formBinding,
javax.swing.JProgressBar control,
java.lang.String voInstanceName,
java.lang.String voIterName,
java.lang.String voIterBindingName,
boolean scrollCurrentRow,
boolean useEstRC)
Binds a JProgressBar control to a BC4J ViewObject such that JProgressBar can be used to navigate rows in the ViewObject. |
int |
getExtent()
|
static javax.swing.BoundedRangeModel |
getInstance(JUPanelBinding formBinding,
javax.swing.JProgressBar control,
java.lang.String voInstanceName,
java.lang.String voIterName,
java.lang.String voIterBindingName,
boolean scrollCurrentRow,
boolean useEstRC)
Deprecated. since 9.0.2 use createViewBinding method instead. |
int |
getMaximum()
|
int |
getMinimum()
|
protected javax.swing.BoundedRangeModel |
getModelImpl(javax.swing.JProgressBar sb)
Registers the BoundedRangeModel that this binding works with. |
int |
getValue()
|
boolean |
getValueIsAdjusting()
|
protected void |
initFromRSI()
Sets the control values from the RowSetIterator that it is bound to. |
void |
iteratorChanged(java.lang.String rsiName,
NavigatableRowIterator rsi)
When the RowSetIterator that this control was working with via it's associated IteratorBinding is changed, this method resets the current values and range that this control is working with to reflect the values from the new iterator. |
void |
removeChangeListener(javax.swing.event.ChangeListener x)
|
void |
setExtent(int newExtent)
|
void |
setMaximum(int newMaximum)
|
void |
setMinimum(int newMinimum)
|
void |
setRangeProperties(int value,
int extent,
int min,
int max,
boolean adjusting)
|
void |
setRangeScrollValue(int val)
Sets the current value in the ProgressBar to the given value 'val'. |
void |
setRangeScrollValues(int val,
int ext,
int minVal,
int maxVal)
Sets the current values for this ProgressBar. |
void |
setValue(int newValue)
|
void |
setValueIsAdjusting(boolean b)
|
void |
setValues(int val,
int ext,
int minVal,
int maxVal)
Sets the current value, extent, minimum and maximum values for the ProgressBar. |
void |
stateChanged(javax.swing.event.ChangeEvent e)
On change of current value in the ProgressBar, this event handler method updates the associated ViewObject's currency. |
| Methods inherited from class oracle.jbo.uicli.binding.JUCtrlScrollBinding |
assignValues, bindRowSetIterator,
navigated, rangeRefreshed,
rangeScrolled, rowDeleted, rowInserted,
rowUpdated |
| 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 |
public JUProgressBarBinding(javax.swing.JProgressBar sb,
JUIteratorBinding iterBinding,
boolean scrollCurrRow,
boolean deferAssignValues,
boolean useEstRC)
formBinding - The containing JUPanelBinding in which the given iterator binding
would be found/created.sb - JProgressBar control to bind a BC4J ViewObject with.iterBinding - An iterator Binding that this control is associated with.scrollCurrentRow - when true, scrolls the current row
into the current range of the ViewObject.deferAssignValues - when true, defers the assignement of JProgressBar values till the ViewObject query is executeduseEstRC - when true, uses getEstimatedRowCount() to calculate the max
value for the control.| Method Detail |
public static javax.swing.BoundedRangeModel createViewBinding(JUPanelBinding formBinding,
javax.swing.JProgressBar control,
java.lang.String voInstanceName,
java.lang.String voIterName,
java.lang.String voIterBindingName,
boolean scrollCurrentRow,
boolean useEstRC)
formBinding - The containing JUPanelBinding in which the given iterator binding
would be found/created.control - JProgressBar control to bind a BC4J ViewObject with.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 bindingscrollCurrentRow - when true, scrolls the current row into the current range of
the ViewObject.useEstRC - when true, uses getEstimatedRowCount() to calculate the max value for the control.
public static javax.swing.BoundedRangeModel getInstance(JUPanelBinding formBinding,
javax.swing.JProgressBar control,
java.lang.String voInstanceName,
java.lang.String voIterName,
java.lang.String voIterBindingName,
boolean scrollCurrentRow,
boolean useEstRC)
protected javax.swing.BoundedRangeModel getModelImpl(javax.swing.JProgressBar sb)
public void setValues(int val,
int ext,
int minVal,
int maxVal)
setValues in class JUCtrlScrollBindingoracle.jbo.uicli.binding.JUCtrlScrollBindingval - 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()
initFromRSI in class JUCtrlScrollBindingpublic void setRangeScrollValue(int val)
setRangeScrollValue in class JUCtrlScrollBinding
public void setRangeScrollValues(int val,
int ext,
int minVal,
int maxVal)
setRangeScrollValues in class JUCtrlScrollBindingoracle.jbo.uicli.binding.JUCtrlScrollBindingval - 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.public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged in interface javax.swing.event.ChangeListener
public void addControlToPanel(java.lang.Object panel,
java.lang.Object layoutObject,
java.lang.Object layoutCons)
addControlToPanel in class JUControlBindingpublic int getMinimum()
getMinimum in interface javax.swing.BoundedRangeModelpublic void setMinimum(int newMinimum)
setMinimum in interface javax.swing.BoundedRangeModelpublic int getMaximum()
getMaximum in interface javax.swing.BoundedRangeModelpublic void setMaximum(int newMaximum)
setMaximum in interface javax.swing.BoundedRangeModelpublic int getValue()
getValue in interface javax.swing.BoundedRangeModelpublic void setValue(int newValue)
setValue in interface javax.swing.BoundedRangeModelpublic void setValueIsAdjusting(boolean b)
setValueIsAdjusting in interface javax.swing.BoundedRangeModelpublic boolean getValueIsAdjusting()
getValueIsAdjusting in interface javax.swing.BoundedRangeModelpublic int getExtent()
getExtent in interface javax.swing.BoundedRangeModelpublic void setExtent(int newExtent)
setExtent in interface javax.swing.BoundedRangeModel
public void setRangeProperties(int value,
int extent,
int min,
int max,
boolean adjusting)
setRangeProperties in interface javax.swing.BoundedRangeModelpublic void addChangeListener(javax.swing.event.ChangeListener x)
addChangeListener in interface javax.swing.BoundedRangeModelpublic void removeChangeListener(javax.swing.event.ChangeListener x)
removeChangeListener in interface javax.swing.BoundedRangeModel
public void iteratorChanged(java.lang.String rsiName,
NavigatableRowIterator rsi)
iteratorChanged in interface JUIteratorChangedListeneroracle.jbo.uicli.jui.JUIteratorChangedListeneriterName - Name of the JUIteratorBinding for which the RowSetIterator is changed.rsi - The new RowSetIterator (could be null) that an iterator binding should
be bound to.
|
Business Components | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||