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.

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.

initFromRSI()
Sets the control values from the RowSetIterator to which it is bound.

void

iteratorChanged(java.lang.String rsiName, NavigatableRowIterator rsi)
When the RowSetIterator that this control was working with via its 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.

JUProgressBarBinding

Binds a JProgressBar control to a BC4J ViewObject such that JProgressBar can be used to navigate rows in the ViewObject. Optionally an application can control the scrolling of current row into the current range of rows and use estimated row count APIs to calculate the maximum row count for the display.

Parameters:

sb - JProgressBar control with which to bind a BC4J ViewObject.

iterBinding - An iterator Binding with which this control is associated.

scrollCurrRow - 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 executed

useEstRC - When true, uses getEstimatedRowCount() to calculate the max value for the control.

Binds a JProgressBar control to a BC4J ViewObject such that JProgressBar can be used to navigate rows in the ViewObject. Optionally an application can control the scrolling of the current row into the current range of rows and use estimated row count APIs to calculate the maximum row count for the display.

Parameters:

formBinding - The containing JUPanelBinding in which the given iterator binding would be found/created.

control - JProgressBar control with which to bind a BC4J ViewObject.

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.

scrollCurrentRow - 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.

getModelImpl

Registers the BoundedRangeModel that this binding works with. If the ProgressBar has a model, this method registers that with this binding and returns the model. If the control or model is null, then this method creates a DefaultBoundedRangeModel and returns that.

setValues

public void setValues(int val,
int ext,
int minVal,
int maxVal)

Sets the current value, extent, minimum, and maximum values for the ProgressBar.

iteratorChanged

When the RowSetIterator that this control was working with via its 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.