public class JUScrollBarBinding extends JUCtrlScrollBinding implements java.awt.event.AdjustmentListener
mExt, mInited, mMax, mMin, mScrollCurrRow, mUseEstRC, mValATTR_CURRENTROW, ATTR_DEF, ATTR_ERROR, ATTR_ERRORS, ATTR_FULLNAME, ATTR_ITER, ATTR_NAME, DC_BINDING_ERROR, mAttributeListener, mInternalGet_KeyResolved, mPermission, mPermissionInfo, ROW_KEY_STRMAP_NULL_VALUE| Constructor and Description | 
|---|
| JUScrollBarBinding(javax.swing.JScrollBar sb,
                  JUIteratorBinding iterBinding,
                  boolean scrollCurrRow,
                  boolean deferAssignValues,
                  boolean useEstRC)Binds a JScrollBar control to a BC4J ViewObject such that JScrollBar can be used to 
 navigate rows in the ViewObject. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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 *** | 
| void | adjustmentValueChanged(java.awt.event.AdjustmentEvent e)When the current value in the ScrollBar changes, this event handler method updates
 the associated ViewObject's currency. | 
| static javax.swing.BoundedRangeModel | createViewBinding(JUFormBinding formBinding,
                 javax.swing.JScrollBar control,
                 java.lang.String voInstanceName,
                 java.lang.String voIterName,
                 java.lang.String voIterBindingName,
                 boolean scrollCurrentRow,
                 boolean useEstRC)Binds a JScrollBar control to a BC4J ViewObject such that JScrollBar can be used to 
 navigate rows in the ViewObject. | 
| java.lang.Object | getControlModel(java.lang.Object control)Gets the associated View's model object. | 
| int | getExtent() | 
| static javax.swing.BoundedRangeModel | getInstance(JUFormBinding formBinding,
           javax.swing.JScrollBar 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.JScrollBar sb)Registers the BoundedRangeModel that this binding works with. | 
| int | getValue() | 
| boolean | getValueIsAdjusting() | 
| 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. | 
| protected boolean | needsEstimatedRowCount() | 
| 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 values for this ScrollBar. | 
| void | setRangeScrollValues(int val,
                    int ext,
                    int minVal,
                    int maxVal)Sets the current value, extent, minimum, and maximum values for the ScrollBar. | 
| 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 ScrollBar. | 
assignValues, bindRowSetIterator, initFromRSI, initResources, navigated, rangeRefreshed, rangeScrolled, refreshControl, release, resetInputState, rowDeleted, rowInserted, rowUpdatedgetCurrentRow, getFormBinding, getIteratorBinding, reportException, setFormBindingaddToDCExceptions, clearAttrDefs, evaluateBooleanExpression, executeQuery, executeQueryIfNeeded, get, getAllRowsInRange, getApplicationModule, getAttributeListener, getBindingContainer, getControl, getDCIteratorBinding, getDef, getDefFullName, getDefName, getError, getErrors, getFullName, getLayoutObject, getName, getPermission, getPermissionInfo, getPermissionTargetName, getRowAtRangeIndex, getRowIterator, getState, getTransaction, getViewableExpr, getViewObject, hasAttributeListener, hashCode, internalGet, internalGetDataControl, internalGetDataControlReference, internalHasPermission, internalHasPermission, internalSetName, isAssociatedWithDataControl, isControlQueriable, isControlViewable, isReleased, processInputException, release, removeFromDCExceptions, reportException, resetAttributeExceptionInRow, restoreFromState, setBindingContainer, setControl, setDataControlPinned, setDef, setIteratorBinding, setListener, setListener, setName, setViewableExpr, toStringentrySet, equals, internalPut, put, setThrowIfPropertyNotFoundOnGetpublic JUScrollBarBinding(javax.swing.JScrollBar sb,
                  JUIteratorBinding iterBinding,
                  boolean scrollCurrRow,
                  boolean deferAssignValues,
                  boolean useEstRC)
sb - JScrollBar 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 JScrollBar values to when the ViewObject query is executeduseEstRC - When true, uses getEstimatedRowCount() to calculate the max value for the control.public java.lang.Object getControlModel(java.lang.Object control)
getControlModel in class DCControlBindingpublic static javax.swing.BoundedRangeModel createViewBinding(JUFormBinding formBinding, javax.swing.JScrollBar 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 - JScrollBar 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.public static javax.swing.BoundedRangeModel getInstance(JUFormBinding formBinding, javax.swing.JScrollBar control, java.lang.String voInstanceName, java.lang.String voIterName, java.lang.String voIterBindingName, boolean scrollCurrentRow, boolean useEstRC)
protected javax.swing.BoundedRangeModel getModelImpl(javax.swing.JScrollBar sb)
public void setValues(int val,
             int ext,
             int minVal,
             int maxVal)
setValues in class 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 setRangeScrollValue(int val)
setRangeScrollValue in class JUCtrlScrollBindingpublic void setRangeScrollValues(int val,
                        int ext,
                        int minVal,
                        int maxVal)
setRangeScrollValues in class 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 adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
adjustmentValueChanged in interface java.awt.event.AdjustmentListenerpublic 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.BoundedRangeModelpublic 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.BoundedRangeModelpublic void iteratorChanged(java.lang.String rsiName,
                   NavigatableRowIterator rsi)
iteratorChanged in interface JUIteratorChangedListenerrsiName - Name of the JUIteratorBinding for which the RowSetIterator is changed.rsi - The new RowSetIterator (could be null) to which an iterator binding should
 be bound.protected boolean needsEstimatedRowCount()
needsEstimatedRowCount in class JUCtrlScrollBinding