getValue()
method as well as the event handlers.| Field Summary | |
|---|---|
| static int | Orientation value for a horizontal slider. |
| static int | Orientation value for a vertical slider. |
| Constructor Summary | |
|---|---|
| void | The instance initializer. |
| Method Summary | |
|---|---|
| Number | constrainValue(fpValue : Number) Constrains a possible slider value to a legal value. |
| int | Sets the validation state for this slider and returns the validation state. |
| String | Returns the URL of the image to use for the handle. |
| int | String | Returns the value of the length field, the size of the dimension along this slider axis. |
| int | Returns the orientation of this slider. |
| int | Returns whether the track is painted. |
| int | Returns whether clicking the track moves the handle to that point. |
| Number | getValue() Returns the value of this slider. |
| static String | Deprecated. |
| String | paint() Paints this slider. |
| jsx3.gui.Slider | setHandleImage(strUrl : String) Sets the URL of the image to use for the handle. |
| jsx3.gui.Slider | Sets the length of this slider. |
| jsx3.gui.Slider | setOrientation(intValue : int) Sets the orientation of this slider. |
| jsx3.gui.Slider | setPaintTrack(bValue : int) Sets whether the track is painted. |
| jsx3.gui.Slider | setTrackClickable(bValue : int) Sets whether clicking the track moves the handle to that point. |
| jsx3.gui.Slider | Sets the value of this slider and repositions the handle. |
| Methods Inherited From jsx3.gui.Form |
|---|
| doKeyBinding, doReset, getDisabledBackgroundColor, getDisabledColor, getEnabled, getKeyBinding, getRequired, getValidationState, setDisabledBackgroundColor, setDisabledColor, setEnabled, setKeyBinding, setRequired, setValidationState |
| Methods Inherited From jsx3.gui.Block |
|---|
| getBackground, getBackgroundColor, getBorder, getCSSOverride, getClassName, getColor, getCursor, getDimensions, getDisplay, getFontName, getFontSize, getFontWeight, getHeight, getIndex, getLeft, getMargin, getOverflow, getPadding, getRelativePosition, getTagName, getText, getTextAlign, getTip, getTop, getVisibility, getWidth, getZIndex, hideMask, setBackground, setBackgroundColor, setBorder, setCSSOverride, setClassName, setColor, setCursor, setDimensions, setDisplay, setFontName, setFontSize, setFontWeight, setHeight, setIndex, setLeft, setMargin, setOverflow, setPadding, setRelativePosition, setTagName, setText, setTextAlign, setTip, setTop, setVisibility, setWidth, setZIndex, showMask |
| Methods Inherited From jsx3.gui.Interactive |
|---|
| doEvent, getCanDrag, getCanDrop, getCanMove, getCanSpy, getEvent, getEvents, getMenu, hasEvent, registerHotKey, removeEvent, removeEvents, setCanDrag, setCanDrop, setCanMove, setCanSpy, setEvent, setMenu, setSpyStyles, showSpy |
| Methods Inherited From jsx3.gui.Painted |
|---|
| focus, getAbsolutePosition, getAttribute, getAttributes, getDynamicProperty, getRendered, insertHTML, onAfterPaint, paintChild, paintChildren, recalcBox, removeAttribute, removeAttributes, repaint, setAttribute, setDynamicProperty |
| Methods Inherited From jsx3.util.EventDispatcher |
|---|
| publish, subscribe, unsubscribe, unsubscribeAll |
| Methods Inherited From jsx3.lang.Object |
|---|
| clone, equals, eval, getClass, getInstanceOf, getInstanceOfClass, getInstanceOfPackage, instanceOf, isInstanceOf, isSubclassOf, jsxmix, jsxsuper, jsxsupermix, setInstanceOf |
| Field Detail |
|---|
| Constructor Detail |
|---|
| Method Detail |
|---|
jsx3.gui.Slider to
create a "notched" slider. The following code creates a slider that allows its handle to be in a location
corresponding to a value that is a multiple of 10:
objSlider.constrainValue = function(fpValue) {
return Math.max(0, Math.min(100, jsx3.util.numRound(fpValue, 10)));
}
fpValue that is legal for this slider.
jsx3.gui.Form.STATEVALID.
HORIZONTAL or VERTICAL. jsx3.Boolean.TRUE or jsx3.Boolean.FALSE
jsx3.Boolean.TRUE or jsx3.Boolean.FALSE.
HORIZONTAL or VERTICAL.jsx3.Boolean.TRUE or jsx3.Boolean.FALSE.jsx3.Boolean.TRUE or jsx3.Boolean.FALSE.