public class JUSliderAttrBinding extends JUCtrlAttrsBinding implements javax.swing.BoundedRangeModel, javax.swing.event.ChangeListener
This binding sets the minimum, maximum, and the extent values of the slider. When the currency changes in the associated rowset, it displays the associated value by adjusting the slider between the minimum and maximum values. Note that the minimum and maximum values should be provided such that all possible values of the associated attribute in a RowSet can be displayed in the slider.
ATTR_ATTRIBUTE, ATTR_ATTRIBUTE_DEF, ATTR_ATTRIBUTE_DEFS, ATTR_ATTRIBUTE_VALUE, ATTR_ATTRIBUTE_VALUES, ATTR_ATTRIBUTES, ATTR_AUTOSUBMIT, ATTR_CATEGORY, ATTR_DISPLAY_HEIGHT, ATTR_DISPLAY_HINT, ATTR_DISPLAY_WIDTH, ATTR_FIELD_ORDER, ATTR_FORMAT, ATTR_FORMATS, ATTR_HINTS, ATTR_INPUT_VALUE, ATTR_LABEL, ATTR_LABELS, ATTR_LABELSET, ATTR_MANDATORY, ATTR_PATH, ATTR_TOOLTIP, ATTR_UPDATEABLE, ATTR_VIEWABLE, DATACHANGE_EVENT_POLICY, EMPTY_STRING, GET_ALLOWS, mAttrs, mHasInputVal, mInputVal, SEP_LIST_DISPLAYATTR_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 | 
|---|
| JUSliderAttrBinding(javax.swing.JSlider control,
                   JUIteratorBinding iterBinding,
                   java.lang.String attrName,
                   int min,
                   int max,
                   int ext)Binds the given slider control to display and update values from the given attribute
 in a BC4J RowSet. | 
| 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 *** | 
| static javax.swing.BoundedRangeModel | createAttributeBinding(JUFormBinding formBinding,
                      javax.swing.JSlider control,
                      java.lang.String voInstanceName,
                      java.lang.String voIterName,
                      java.lang.String voIterBindingName,
                      java.lang.String attrName,
                      int min,
                      int max,
                      int ext)Creates a binding for the JSlider control. | 
| 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.JSlider control,
           java.lang.String voInstanceName,
           java.lang.String voIterName,
           java.lang.String voIterBindingName,
           java.lang.String attrName,
           int min,
           int max,
           int ext)Deprecated. 
 use createAttributeBinding method instead. | 
| int | getMaximum() | 
| int | getMinimum() | 
| protected javax.swing.BoundedRangeModel | getModelImpl(javax.swing.JSlider sb)Registers the BoundedRangeModel that this binding works with. | 
| int | getValue() | 
| java.lang.Object | getValueAt(int attrIndex)Returns the current value indicated by the JSlider control. | 
| boolean | getValueIsAdjusting() | 
| protected boolean | isControlQueriable()Returns true, so that Slider can participate in a query in the Find Mode of the
 containing panel. | 
| void | removeChangeListener(javax.swing.event.ChangeListener x) | 
| void | setDataValueAt(java.lang.Object value,
              int attrIndex)Use this method to update the slider value, as well as the value in the associated BC4J attribute. | 
| 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 | setValue(int newValue) | 
| void | setValueAt(java.lang.Object value,
          int attrIndex)Sets the current value in the JSlider control. | 
| void | setValueIsAdjusting(boolean b) | 
| void | stateChanged(javax.swing.event.ChangeEvent e)Sets the BC4J attribute value based on the change in the JSlider current value. | 
createAttributeBinding, refreshControl, setControlEnabled, toString, updateValuesFromRow, updateValuesFromRowsaddBindingContainerChangeListenerForCtxEvent, addDataChangeListener, clearAttrDefs, clearEventsCache, compareAndSetAttribute, createAndNotifyDCE, createEventProducer, displayInShortForm, ensureVariableManager, eventForMyRow, fetchAttrDefs, findAttributeDef, generateDCE, getAttribute, getAttribute, getAttribute, getAttributeCount, getAttributeDef, getAttributeDef, getAttributeDefs, getAttributeDefsForRow, getAttributeFromRow, getAttributeFromRow, getAttributeFromRow, getAttributeFromRow, getAttributeFromRow, getAttributeIndexOf, getAttributeNames, getAttributes, getAttributes, getAttributeUIHelper, getAttributeValidators, getAttributeValidators, getAttributeValue, getAttributeValue, getAttributeValueFromRow, getAttributeValues, getAttributeValues, getAttrViewExpressions, getBindingHint, getCachedEvents, getCategory, getChangeEventPolicy, getColumnNameForQuery, getControlType, getDataChangeEventPolicy, getDataChangeListener, getDisplayHeight, getDisplayHint, getDisplayWidth, getError, getErrors, getEventProducer, getFieldOrder, getFormat, getFormats, getFormattedAttributeValue, getHint, getHint, getHints, getInputErrorsForRowKey, getInputValue, getInputValue, getInputValueHandler, getInputValueInRow, getInputValueOnError, getIteratorBindingForDCE, getIteratorRenderHint, getLabel, getLabel, getLabels, getLabelSet, getLastEventId, getLocaleContext, getMasterKeyPathForDCE, getMergedAttributeValues, getNullValueString, getPath, getPermissionDef, getPermissionHolder, getPermissionInfo, getSelectionDef, getState, getTooltip, getTooltip, hasEventProducer, hasFormatInformation, hasServerBindingChanged, hasVariables, initResources, internalGet, internalGetDataControlReference, internalGetRow, internalHasPermission, internalHasPermission, isArrayIteratorType, isAttributeMandatory, isAttributeUpdateable, isAttributeUpdateable, isAttributeUpdateable, isAttributeUpdateable, isAutoSubmit, isEventsCachingEnabled, isMandatory, isNewInputValue, isNullInsertKeyPathForDCE, isPushDataChangeEvents, isPushOrPollDataChangeEvents, isUpdateable, isViewable, lookupAttributeDef, notifyDataChangeEvent, notifyDataExceptionEvent, notifyDCE, pinDataControl, processInputException, processNewInputValue, put, release, removeAttrName, removeDataChangeListener, removeFromDCExceptions, resetAttributeDefs, resetInputState, resolvePath, restoreFromState, setArrayIteratorType, setAttribute, setAttribute, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeNames, setAttributes, setAttributeValue, setAttributeValuesInRow, setAttrViewExpressions, setDef, setError, setEventProducer, setEventsCaching, setInputValue, setInputValue, setInputValueHandler, setInputValueInRow, setIteratorBinding, setListener, setNullValueString, startEvents, stopEditing, stopEvents, updateNavigated, updateRangeScrolled, updateRow, updateRowDeleted, updateRowInserted, useRowSpecificHints, validateInputValuegetCurrentRow, getFormBinding, getIteratorBinding, reportException, setFormBindingaddToDCExceptions, evaluateBooleanExpression, executeQuery, executeQueryIfNeeded, get, getAllRowsInRange, getApplicationModule, getAttributeListener, getBindingContainer, getControl, getDCIteratorBinding, getDef, getDefFullName, getDefName, getFullName, getLayoutObject, getName, getPermission, getPermissionTargetName, getRowAtRangeIndex, getRowIterator, getTransaction, getViewableExpr, getViewObject, hasAttributeListener, hashCode, internalGetDataControl, internalSetName, isAssociatedWithDataControl, isControlViewable, isReleased, needsEstimatedRowCount, release, reportException, resetAttributeExceptionInRow, setBindingContainer, setControl, setDataControlPinned, setListener, setName, setViewableExprentrySet, equals, internalPut, setThrowIfPropertyNotFoundOnGetclear, clone, containsKey, containsValue, isEmpty, keySet, putAll, remove, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitgetErrors, getInputValue, getLabel, isUpdateable, processNewInputValue, setInputValue, validateInputValuerelease, setListenergetName, getPath, release, resolvePath, setListenergetDefFullName, getDefName, getFullName, getNamepublic JUSliderAttrBinding(javax.swing.JSlider control,
                   JUIteratorBinding iterBinding,
                   java.lang.String attrName,
                   int min,
                   int max,
                   int ext)
control - JSlider control with which to bind a BC4J attribute.iterBinding - Iterator binding that provides the RowSet with which this binding should work.attrName - The attribute name in the RowSet with which this binding works.min - Minimum value that the JSlider displays (what the starting value should be in
 the JSlider control).max - Maximum value that the JSlider displays (what the end value should be in the control).ext - Determines the Extent value for the JSlider control.protected javax.swing.BoundedRangeModel getModelImpl(javax.swing.JSlider sb)
public void addControlToPanel(java.lang.Object panel,
                     java.lang.Object layoutObject,
                     java.lang.Object layoutCons)
addControlToPanel in class JUCtrlAttrsBindingprotected boolean isControlQueriable()
An application could create a subclass of this binding object and return false from this method to prevent the associated control from participating in find mode. Additionally, a BC4J attribute itself can control whether that attribute can participate in Query or not. That property takes precedence over this method's return, if this method returns true. In other words, if this binding is bound to a CLOB attribute type and the attribute definition for that attribute indicates that it is not queriable, then the default behavior of JUPanelBinding in Find mode will be to disable this binding's control, even though this method returns true.
isControlQueriable in class JUCtrlAttrsBindingpublic java.lang.Object getValueAt(int attrIndex)
getValueAt in class JUCtrlAttrsBindingpublic void setValueAt(java.lang.Object value,
              int attrIndex)
setValueAt in class JUCtrlAttrsBindingpublic void setDataValueAt(java.lang.Object value,
                  int attrIndex)
setDataValueAt in class JUCtrlAttrsBindingpublic void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged in interface javax.swing.event.ChangeListenerpublic 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 java.lang.Object getControlModel(java.lang.Object control)
getControlModel in class DCControlBindingpublic static javax.swing.BoundedRangeModel createAttributeBinding(JUFormBinding formBinding, javax.swing.JSlider control, java.lang.String voInstanceName, java.lang.String voIterName, java.lang.String voIterBindingName, java.lang.String attrName, int min, int max, int ext)
formBinding - The containing JUPanelBinding in which the given iterator binding
 would be found/created.control - JSlider control to bind a BC4J attribute with.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.attrName - The attribute name in the RowSet with which this binding works.min - Minimum value that the JSlider displays (what the starting value should be in
 the JSlider control).max - Maximum value that the JSlider displays (what the end value should be in the control).ext - Determines the Extent value for the JSlider control.public static javax.swing.BoundedRangeModel getInstance(JUFormBinding formBinding, javax.swing.JSlider control, java.lang.String voInstanceName, java.lang.String voIterName, java.lang.String voIterBindingName, java.lang.String attrName, int min, int max, int ext)