public class Slider extends Canvas implements HasValueChangedHandlers
The slider will generate events as the user interacts with it and
changes its value. If slider.sliderTarget is specified, moving the slider thumb generates a custom event named
'sliderMove', sent to the sliderTarget. If a sliderMove handler stringMethod is defined on the target, it
will be fired when the slider is moved. The second parameter (available via the variable name eventInfo
if the handler is a string) is a pointer back to the slider.
The slider will also fire a
valueChanged() method whenever its value is changed. This can be observed or overridden on the Slider
instance to perform some action.
config, configOnly, factoryCreated, factoryProperties, id, nativeObject, scClassName| Constructor and Description |
|---|
Slider() |
Slider(com.google.gwt.core.client.JavaScriptObject jsObj) |
Slider(java.lang.String title) |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addValueChangedHandler(ValueChangedHandler handler)
Add a valueChanged handler.
|
static void |
changeAutoChildDefaults(java.lang.String autoChildName,
Canvas defaults)
Changes the defaults for Canvas AutoChildren named
autoChildName. |
static void |
changeAutoChildDefaults(java.lang.String autoChildName,
FormItem defaults)
Changes the defaults for FormItem AutoChildren named
autoChildName. |
protected com.google.gwt.core.client.JavaScriptObject |
create() |
StatefulCanvas |
getActiveTrack()
A styled canvas used to highlight the
active part of the
slider track. |
java.lang.String |
getActiveTrackStyle()
CSS style used to highlight the
active part of the slider
track. |
java.lang.Boolean |
getAnimateThumb()
Should the thumb be animated to its new position when the value is changed programmatically, or by clicking in the
slider track.
|
java.lang.Boolean |
getAnimateThumbInit()
If thumb animation is enabled, should the thumb be animated to its initial value?
|
int |
getAnimateThumbTime()
Duration of thumb animation, in milliseconds.
|
java.lang.Boolean |
getCanFocus()
Indicates whether keyboard manipulation of the slider is allowed.
|
java.lang.Boolean |
getFlipValues()
Specifies whether the value range of the slider should be flipped so that values increase as the thumb is moved down
(for a
vertical slider) or to the left (for a horizontal
slider). |
java.lang.Integer |
getHLabelSpacing()
The space around the labels used to display the
minimum,
maximum and current values of the slider, when vertical is false. |
java.lang.String |
getHThumbStyle()
Optional CSS style for the thumb for a
horizontally oriented
slider. |
java.lang.String |
getHTrackStyle()
Optional CSS style for the track for a
horizontally oriented
slider. |
java.lang.String |
getHValueStyle()
Optional CSS style for the floating
valueLabel, visible when
showValue is true and vertical is false. |
int |
getLabelHeight()
The height of the labels used to display the
minimum, maximum
and current values of the slider. |
int |
getLabelSpacing()
The space around the labels used to display the
minimum,
maximum and current values of the slider. |
int |
getLabelWidth()
The width of the labels used to display the minimum, maximum and current values of the slider.
|
int |
getLength()
Used to set slider height if vertical, slider width if horizontal.
|
com.smartgwt.logicalstructure.core.LogicalStructureObject |
getLogicalStructure()
Getter implementing the
LogicalStructure interface,
which supports Eclipse's logical structure debugging facility. |
float |
getMaxValue()
Deprecated.
|
double |
getMaxValueAsDouble()
The maximum slider value.
|
java.lang.String |
getMaxValueLabel()
The text displayed in the label for the maximum value of the slider.
|
float |
getMinValue()
Deprecated.
|
double |
getMinValueAsDouble()
The minimum slider value.
|
java.lang.String |
getMinValueLabel()
The text displayed in the label for the minimum value of the slider.
|
java.lang.Integer |
getNumValues()
The number of discrete values represented by slider.
|
static Slider |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
java.lang.String |
getRangeFormat()
FormatString for numeric formatting of the range labels. |
Label |
getRangeLabel()
Note : This API is non-functional (always returns null) and exists only to make
you aware that this MultiAutoChild exists.
|
java.lang.String |
getRangeStyle()
CSS style for the
min and max range-labels, when showRange is true. |
int |
getRoundPrecision()
If
roundValues is false, the slider value will be rounded to
this number of decimal places. |
java.lang.Boolean |
getRoundValues()
Specifies whether the slider value should be rounded to the nearest integer.
|
java.lang.Boolean |
getShowActiveTrack()
Whether to show the
activeTrack, which highlights the 'active'
portion of a slider, from its minimum to its current value. |
java.lang.Boolean |
getShowRange()
Indicates whether labels for the
min and max values of the
slider should be displayed. |
java.lang.Boolean |
getShowTitle()
Indicates whether the slider's
title should be displayed. |
java.lang.Boolean |
getShowValue()
Indicates whether a
label for the value of the slider should
be displayed. |
float |
getStepPercent()
Deprecated.
|
double |
getStepPercentAsDouble()
The percentage of the total slider that constitutes one discrete step.
|
java.lang.String |
getThumbSrc()
The base filename for the slider thumb images.
|
int |
getThumbThickWidth()
The dimension of the thumb perpendicular to the slider track.
|
int |
getThumbThinWidth()
The dimension of the thumb parallel to the slider track.
|
java.lang.String |
getTitle()
Optional display title for the slider.
|
int |
getTitleSpacing()
The space between the
title and the track. |
java.lang.String |
getTitleStyle()
CSS style for the
title-text, when showTitle is true. |
int |
getTrackCapSize()
The height of
vertical slider start and end images, or width of
horizontal slider start and end images. |
ImageStyle |
getTrackImageType()
The imageType setting for the slider track.
|
java.lang.String |
getTrackSrc()
The base filename for the slider track images.
|
int |
getTrackWidth()
The thickness of the track.
|
float |
getValue()
Deprecated.
|
double |
getValueAsDouble()
The slider value.
|
java.lang.String |
getValueFormat()
FormatString for numeric formatting of the value and range labels. |
Label |
getValueLabel()
com.smartgwt.client.types.AutoChild displaying the current value as a floating label when showValue is true. |
java.lang.String |
getValueStyle()
CSS style for the floating
valueLabel, visible when showValue is true. |
java.lang.String |
getValueTextStyle()
CSS style for the text in the floating
valueLabel, visible
when showValue is true. |
java.lang.Boolean |
getVertical()
Indicates whether this is a vertical or horizontal slider.
|
java.lang.Integer |
getVLabelSpacing()
The space around the labels used to display the
minimum,
maximum and current values of the slider, when vertical is true. |
java.lang.String |
getVThumbStyle()
Optional CSS style for the thumb for a
vertically oriented
slider. |
java.lang.String |
getVTrackStyle()
Optional CSS style for the track for a
vertically oriented
slider. |
java.lang.String |
getVValueStyle()
Optional CSS style for the floating
valueLabel, visible when
showValue is true and vertical is true. |
Slider |
setActiveTrackStyle(java.lang.String activeTrackStyle)
CSS style used to highlight the
active part of the slider
track. |
Slider |
setAnimateThumb(java.lang.Boolean animateThumb)
Should the thumb be animated to its new position when the value is changed programmatically, or by clicking in the
slider track.
|
Slider |
setAnimateThumbInit(java.lang.Boolean animateThumbInit)
If thumb animation is enabled, should the thumb be animated to its initial value?
|
Slider |
setAnimateThumbTime(int animateThumbTime)
Duration of thumb animation, in milliseconds.
|
Slider |
setCanFocus(java.lang.Boolean canFocus)
Indicates whether keyboard manipulation of the slider is allowed.
|
static void |
setDefaultProperties(Slider sliderProperties)
Class level method to set the default properties of this class.
|
Slider |
setFlipValues(java.lang.Boolean flipValues)
Specifies whether the value range of the slider should be flipped so that values increase as the thumb is moved down
(for a
vertical slider) or to the left (for a horizontal
slider). |
Slider |
setHLabelSpacing(java.lang.Integer hLabelSpacing)
The space around the labels used to display the
minimum,
maximum and current values of the slider, when vertical is false. |
Slider |
setHThumbStyle(java.lang.String hThumbStyle)
Optional CSS style for the thumb for a
horizontally oriented
slider. |
Slider |
setHTrackStyle(java.lang.String hTrackStyle)
Optional CSS style for the track for a
horizontally oriented
slider. |
Slider |
setHValueStyle(java.lang.String hValueStyle)
Optional CSS style for the floating
valueLabel, visible when
showValue is true and vertical is false. |
Slider |
setLabelHeight(int labelHeight)
The height of the labels used to display the
minimum, maximum
and current values of the slider. |
Slider |
setLabelSpacing(int labelSpacing)
The space around the labels used to display the
minimum,
maximum and current values of the slider. |
Slider |
setLabelWidth(int labelWidth)
The width of the labels used to display the minimum, maximum and current values of the slider.
|
Slider |
setLength(int length)
Used to set slider height if vertical, slider width if horizontal.
|
com.smartgwt.logicalstructure.core.LogicalStructureObject |
setLogicalStructure(com.smartgwt.logicalstructure.widgets.SliderLogicalStructure s)
Setter implementing the
LogicalStructure interface,
which supports Eclipse's logical structure debugging facility. |
Slider |
setMaxValue(double maxValue)
The maximum slider value.
|
Slider |
setMaxValue(float maxValue)
Deprecated.
|
Slider |
setMaxValueLabel(java.lang.String maxValueLabel)
The text displayed in the label for the maximum value of the slider.
|
Slider |
setMinValue(double minValue)
The minimum slider value.
|
Slider |
setMinValue(float minValue)
Deprecated.
|
Slider |
setMinValueLabel(java.lang.String minValueLabel)
The text displayed in the label for the minimum value of the slider.
|
Slider |
setNumValues(java.lang.Integer numValues)
The number of discrete values represented by slider.
|
Slider |
setRangeFormat(java.lang.String rangeFormat)
FormatString for numeric formatting of the range labels. |
Slider |
setRangeStyle(java.lang.String rangeStyle)
CSS style for the
min and max range-labels, when showRange is true. |
Slider |
setRoundPrecision(int roundPrecision)
If
roundValues is false, the slider value will be rounded to
this number of decimal places. |
Slider |
setRoundValues(java.lang.Boolean roundValues)
Specifies whether the slider value should be rounded to the nearest integer.
|
Slider |
setShowActiveTrack(java.lang.Boolean showActiveTrack)
Whether to show the
activeTrack, which highlights the 'active'
portion of a slider, from its minimum to its current value. |
Slider |
setShowRange(java.lang.Boolean showRange)
Indicates whether labels for the
min and max values of the
slider should be displayed. |
Slider |
setShowTitle(java.lang.Boolean showTitle)
Indicates whether the slider's
title should be displayed. |
Slider |
setShowValue(java.lang.Boolean showValue)
Indicates whether a
label for the value of the slider should
be displayed. |
Slider |
setStepPercent(double stepPercent)
The percentage of the total slider that constitutes one discrete step.
|
Slider |
setStepPercent(float stepPercent)
Deprecated.
|
Slider |
setThumbSrc(java.lang.String thumbSrc)
The base filename for the slider thumb images.
|
Slider |
setThumbThickWidth(int thumbThickWidth)
The dimension of the thumb perpendicular to the slider track.
|
Slider |
setThumbThinWidth(int thumbThinWidth)
The dimension of the thumb parallel to the slider track.
|
void |
setTitle(java.lang.String title)
Optional display title for the slider.
|
Slider |
setTitleSpacing(int titleSpacing)
The space between the
title and the track. |
Slider |
setTitleStyle(java.lang.String titleStyle)
CSS style for the
title-text, when showTitle is true. |
Slider |
setTrackCapSize(int trackCapSize)
The height of
vertical slider start and end images, or width of
horizontal slider start and end images. |
Slider |
setTrackImageType(ImageStyle trackImageType)
The imageType setting for the slider track.
|
Slider |
setTrackSrc(java.lang.String trackSrc)
The base filename for the slider track images.
|
Slider |
setTrackWidth(int trackWidth)
The thickness of the track.
|
Slider |
setValue(double value)
The slider value.
|
Slider |
setValue(float value)
Deprecated.
|
Slider |
setValueFormat(java.lang.String valueFormat)
FormatString for numeric formatting of the value and range labels. |
Slider |
setValueStyle(java.lang.String valueStyle)
CSS style for the floating
valueLabel, visible when showValue is true. |
Slider |
setValueTextStyle(java.lang.String valueTextStyle)
CSS style for the text in the floating
valueLabel, visible
when showValue is true. |
Slider |
setVertical(java.lang.Boolean vertical)
Indicates whether this is a vertical or horizontal slider.
|
Slider |
setVLabelSpacing(java.lang.Integer vLabelSpacing)
The space around the labels used to display the
minimum,
maximum and current values of the slider, when vertical is true. |
Slider |
setVThumbStyle(java.lang.String vThumbStyle)
Optional CSS style for the thumb for a
vertically oriented
slider. |
Slider |
setVTrackStyle(java.lang.String vTrackStyle)
Optional CSS style for the track for a
vertically oriented
slider. |
Slider |
setVValueStyle(java.lang.String vValueStyle)
Optional CSS style for the floating
valueLabel, visible when
showValue is true and vertical is true. |
java.lang.Boolean |
valueIsChanging()
Call this method in your
Slider.valueChanged() handler
to determine whether the value change is due to an ongoing drag interaction (true) or due to a thumb-release, mouse
click, keypress, or programmatic event (false). |
addChild, addChild, addChild, addChild, addChild, addClearHandler, addClickHandler, addDoubleClickHandler, addDragMoveHandler, addDragRepositionMoveHandler, addDragRepositionStartHandler, addDragRepositionStopHandler, addDragResizeMoveHandler, addDragResizeStartHandler, addDragResizeStopHandler, addDragStartHandler, addDragStopHandler, addDropHandler, addDropMoveHandler, addDropOutHandler, addDropOverHandler, addFocusChangedHandler, addHoverHandler, addHoverHiddenHandler, addKeyDownHandler, addKeyPressHandler, addMouseDownHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseStillDownHandler, addMouseUpHandler, addMouseWheelHandler, addMovedHandler, addParentMovedHandler, addPeer, addPeer, addPeer, addPeer, addResizedHandler, addRightMouseDownHandler, addRuleContextChangedHandler, addScrolledHandler, addShowContextMenuHandler, addSnapAlignCandidate, addStyleName, addVisibilityChangedHandler, adjustForContent, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateHide, animateHide, animateHide, animateHide, animateHide, animateHide, animateHide, animateMove, animateMove, animateMove, animateMove, animateRect, animateRect, animateRect, animateRect, animateResize, animateResize, animateResize, animateResize, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateShow, animateShow, animateShow, animateShow, animateShow, animateShow, animateShow, asSGWTComponent, blur, bringToFront, clear, clearExplicitTabIndex, clickMaskUp, clickMaskUp, contains, contains, containsEvent, containsEventTarget, containsFocus, containsPoint, containsPoint, dataContextChanged, deparent, depeer, disable, enable, encloses, focus, focusAfterGroup, focusAtEnd, focusInNextTabElement, focusInPreviousTabElement, getAbsoluteLeft, getAbsoluteTop, getAccessKey, getAdaptiveHeightPriority, getAdaptiveWidthPriority, getAlwaysManageFocusNavigation, getAlwaysShowScrollbars, getAnimateAcceleration, getAnimateFadeTime, getAnimateHideAcceleration, getAnimateHideEffect, getAnimateHideTime, getAnimateMoveAcceleration, getAnimateMoveTime, getAnimateRectAcceleration, getAnimateRectTime, getAnimateResizeAcceleration, getAnimateResizeLayoutMode, getAnimateResizeTime, getAnimateScrollAcceleration, getAnimateScrollTime, getAnimateShowAcceleration, getAnimateShowEffect, getAnimateShowTime, getAnimateTime, getAppImgDir, getAriaHandleID, getAriaRole, getAriaStateDefaults, getAutoMaskComponents, getAutoParent, getAutoPopulateData, getAutoShowParent, getBackgroundColor, getBackgroundImage, getBackgroundPosition, getBackgroundRepeat, getBorder, getBorderRadius, getBottom, getById, getByJSObject, getByLocalId, getCanAcceptDrop, getCanAdaptHeight, getCanAdaptWidth, getCanDrag, getCanDragReposition, getCanDragResize, getCanDragScroll, getCanDrop, getCanDropBefore, getCanHover, getCanSelectText, getCanvasAutoChild, getCanvasItem, getChildren, getChildrenResizeSnapAlign, getChildrenSnapAlign, getChildrenSnapCenterAlign, getChildrenSnapEdgeAlign, getChildrenSnapResizeToGrid, getChildrenSnapToGrid, getChildTabPosition, getClassName, getComponentMask, getComponentMaskDefaults, getContentElement, getContents, getContextMenu, getCorrectZoomOverflow, getCursor, getDataContext, getDataPath, getDefaultHeight, getDefaultWidth, getDestroyed, getDestroying, getDisabled, getDisabledCursor, getDisableTouchScrollingForDrag, getDoubleClickDelay, getDragAppearance, getDragIntersectStyle, getDragMaskType, getDragMaxHeight, getDragMaxWidth, getDragMinHeight, getDragMinWidth, getDragOpacity, getDragRepositionAppearance, getDragRepositionCursor, getDragResizeAppearance, getDragScrollDelay, getDragStartDistance, getDragTarget, getDragTargetAsString, getDragType, getDropTarget, getDropTargetAsString, getDropTypes, getDropTypesAsString, getDynamicContents, getEdgeBackgroundColor, getEdgeCenterBackgroundColor, getEdgeImage, getEdgeMarginSize, getEdgeOffset, getEdgeOpacity, getEdgeShowCenter, getEdgeSize, getEditNode, getEditProxy, getEditProxyConstructor, getElement, getElement, getEnableWhen, getEndLine, getEventEdge, getEventEdge, getExtraSpace, getFacetId, getFloatingScrollbars, getFormItemAutoChild, getForwardSVGeventsToObject, getFullDataPath, getGroupBorderCSS, getGroupLabelBackgroundColor, getGroupLabelStyleName, getGroupPadding, getGroupTitle, getHeight, getHeightAsString, getHideUsingDisplayNone, getHoverAlign, getHoverAutoDestroy, getHoverAutoFitMaxWidth, getHoverAutoFitMaxWidthAsString, getHoverAutoFitWidth, getHoverComponent, getHoverDelay, getHoverFocusKey, getHoverHeight, getHoverHTML, getHoverMoveWithMouse, getHoverOpacity, getHoverPersist, getHoverScreen, getHoverStyle, getHoverVAlign, getHoverWidth, getHoverWrap, getHSnapPosition, getHSnapPosition, getHtmlElement, getHtmlElementAsString, getHtmlPosition, getImage, getImgURL, getImgURL, getInnerContentHeight, getInnerContentWidth, getInnerHeight, getInnerWidth, getIsGroup, getIsPrinting, getIsRuleScope, getIsSnapAlignCandidate, getKeepInParentRect, getLayoutAlign, getLeaveGroupLabelSpace, getLeavePageSpace, getLeft, getLeftAsString, getLocalId, getLocateByIDOnly, getLocateChildrenBy, getLocateChildrenType, getLocatePeersBy, getLocatePeersType, getLocatorName, getMargin, getMasterCanvas, getMasterElement, getMatchElement, getMatchElementHeight, getMatchElementWidth, getMaxHeight, getMaxWidth, getMaxZoomOverflowError, getMenuConstructor, getMinHeight, getMinNonEdgeSize, getMinWidth, getMomentumScrollMinSpeed, getMouseStillDownDelay, getMouseStillDownInitialDelay, getName, getNativeAutoHideScrollbars, getNextZIndex, getNoDoubleClicks, getNoDropCursor, getOffsetHeight, getOffsetWidth, getOffsetX, getOffsetY, getOpacity, getOuterElement, getOverflow, getPadding, getPageBottom, getPageLeft, getPageRect, getPageRight, getPageTop, getPaletteDefaults, getPanelContainer, getParentCanvas, getParentElement, getPeers, getPercentBox, getPercentSource, getPersistentMatchElement, getPointerSettings, getPointerTarget, getPointerTargetAsString, getPosition, getPrefix, getPrintChildrenAbsolutelyPositioned, getPrintHTML, getPrintHTML, getPrintStyleName, getPrompt, getProportionalResizeModifiers, getProportionalResizing, getReceiveScrollbarEvents, getRect, getRedrawOnResize, getResizeBarTarget, getResizeFrom, getRight, getRuleContext, getRuleContext, getRuleScope, getScrollbarSize, getScrollBottom, getScrollHeight, getScrollLeft, getScrollRight, getScrollTop, getScrollWidth, getShadowColor, getShadowDepth, getShadowHOffset, getShadowImage, getShadowOffset, getShadowSoftness, getShadowSpread, getShadowVOffset, getShouldPrint, getShowCustomScrollbars, getShowDragShadow, getShowEdges, getShowHover, getShowHoverComponents, getShowPointer, getShowResizeBar, getShowShadow, getShowSnapGrid, getShrinkElementOnHide, getSizeMayChangeOnRedraw, getSkinImgDir, getSnapAlignCandidates, getSnapAlignCenterLineStyle, getSnapAlignEdgeLineStyle, getSnapAxis, getSnapEdge, getSnapGridLineProperties, getSnapGridStyle, getSnapHDirection, getSnapHGap, getSnapOffsetLeft, getSnapOffsetTop, getSnapOnDrop, getSnapPosition, getSnapPosition, getSnapResizeToAlign, getSnapResizeToGrid, getSnapTo, getSnapToAlign, getSnapToCenterAlign, getSnapToEdgeAlign, getSnapToGrid, getSnapVDirection, getSnapVGap, getStartLine, getStyleName, getTabIndex, getTestDataContext, getTestInstance, getTooltip, getTop, getTopAsString, getTopElement, getUISummary, getUpdateTabPositionOnDraw, getUpdateTabPositionOnReparent, getUseBackMask, getUseCSSShadow, getUseDragMask, getUseImageForSVG, getUseNativeDrag, getUseOpacityFilter, getUseTouchScrolling, getValuesManager, getValuesManagerAsString, getViewportHeight, getViewportWidth, getVisibility, getVisibleHeight, getVisibleWhen, getVisibleWidth, getVSnapPosition, getVSnapPosition, getWidth, getWidthAsString, getZIndex, getZIndex, handleHover, hide, hideClickMask, hideClickMask, hideComponentMask, hideComponentMask, hideContextMenu, imgHTML, imgHTML, imgHTML, intersects, isDirty, isDisabled, isFocused, isVisible, keyUp, layoutChildren, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, markForDestroy, markForRedraw, markForRedraw, moveAbove, moveBelow, moveBy, moveTo, onAttach, onDetach, onInit, pageScrollDown, pageScrollUp, parentResized, placeNear, placeNear, placeNear, print, print, print, print, printComponents, provideRuleContext, provideRuleContext, redraw, redraw, registerFontScaledPaddingStyles, removeChild, removeChild, removePeer, removePeer, removeRuleContext, removeSnapAlignCandidate, resizeAutoChildAttributes, resizeBy, resizeControls, resizeControlsTo, resizeFonts, resizeFonts, resizeFonts, resizeFontsTo, resizeIcons, resizePadding, resizePadding, resizeTo, resizeTo, revealChild, revealChild, scrollBy, scrollByPercent, scrollTo, scrollTo, scrollTo, scrollToBottom, scrollToLeft, scrollToPercent, scrollToRight, scrollToTop, sendToBack, setAccessKey, setAdaptHeightByCustomizer, setAdaptiveHeightPriority, setAdaptiveWidthPriority, setAdaptWidthByCustomizer, setAlign, setAllowExternalFilters, setAlwaysManageFocusNavigation, setAlwaysShowScrollbars, setAnimateAcceleration, setAnimateFadeTime, setAnimateHideAcceleration, setAnimateHideEffect, setAnimateHideTime, setAnimateMoveAcceleration, setAnimateMoveTime, setAnimateRectAcceleration, setAnimateRectTime, setAnimateResizeAcceleration, setAnimateResizeLayoutMode, setAnimateResizeTime, setAnimateScrollAcceleration, setAnimateScrollTime, setAnimateShowAcceleration, setAnimateShowEffect, setAnimateShowTime, setAnimateTime, setAppImgDir, setAriaRole, setAriaState, setAutoChildConstructor, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildVisibility, setAutoHeight, setAutoMaskComponents, setAutoParent, setAutoPopulateData, setAutoResizeAutoChildAttributes, setAutoResizeIcons, setAutoShowParent, setAutoWidth, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundRepeat, setBorder, setBorderRadius, setBottom, setCanAcceptDrop, setCanAdaptHeight, setCanAdaptWidth, setCanDrag, setCanDragReposition, setCanDragResize, setCanDragScroll, setCanDrop, setCanDropBefore, setCanHover, setCanSelectText, setChildren, setChildrenResizeSnapAlign, setChildrenSnapAlign, setChildrenSnapCenterAlign, setChildrenSnapEdgeAlign, setChildrenSnapResizeToGrid, setChildrenSnapToGrid, setComponentMaskDefaults, setContents, setContextMenu, setCorrectZoomOverflow, setCursor, setDataContext, setDataPath, setDefaultHeight, setDefaultPageSpace, setDefaultProperties, setDefaultShowCustomScrollbars, setDefaultWidth, setDisabled, setDisabledCursor, setDisableTouchScrollingForDrag, setDoubleClickDelay, setDragAppearance, setDragIntersectStyle, setDragMaskType, setDragMaxHeight, setDragMaxWidth, setDragMinHeight, setDragMinWidth, setDragOpacity, setDragRepositionAppearance, setDragRepositionCursor, setDragResizeAppearance, setDragScrollDelay, setDragStartDistance, setDragTarget, setDragTarget, setDragType, setDropTarget, setDropTarget, setDropTypes, setDropTypes, setDynamicContents, setEdgeBackgroundColor, setEdgeCenterBackgroundColor, setEdgeImage, setEdgeMarginSize, setEdgeOffset, setEdgeOpacity, setEdgeShowCenter, setEdgeSize, setEditMode, setEditMode, setEditMode, setEditProxyConstructor, setElement, setEnableWhen, setEndLine, setExtraSpace, setFacetId, setFloatingScrollbars, setForwardSVGeventsToObject, setGroupBorderCSS, setGroupLabelBackgroundColor, setGroupLabelStyleName, setGroupPadding, setGroupTitle, setHeight, setHeight, setHeight, setHeight100, setHideUsingDisplayNone, setHoverAlign, setHoverAutoDestroy, setHoverAutoFitMaxWidth, setHoverAutoFitMaxWidth, setHoverAutoFitWidth, setHoverDelay, setHoverFocusKey, setHoverHeight, setHoverMoveWithMouse, setHoverOpacity, setHoverPersist, setHoverScreen, setHoverStyle, setHoverVAlign, setHoverWidth, setHoverWrap, setHtmlElement, setHtmlElement, setHtmlPosition, setImage, setImage, setInitHandler, setIsGroup, setIsRuleScope, setIsSnapAlignCandidate, setKeepInParentRect, setKeepInParentRect, setKeepInParentRect, setLayoutAlign, setLayoutAlign, setLeaveGroupLabelSpace, setLeavePageSpace, setLeft, setLeft, setLocateByIDOnly, setLocateChildrenBy, setLocateChildrenType, setLocatePeersBy, setLocatePeersType, setLocatorName, setLocatorParent, setLocatorParent, setLogicalStructure, setMargin, setMatchElement, setMatchElementHeight, setMatchElementWidth, setMaxHeight, setMaxWidth, setMaxZoomOverflowError, setMenuConstructor, setMinHeight, setMinNonEdgeSize, setMinWidth, setMomentumScrollMinSpeed, setMouseStillDownDelay, setMouseStillDownInitialDelay, setName, setNativeAutoHideScrollbars, setNeverUseFilters, setNoDoubleClicks, setNoDropCursor, setOpacity, setOverflow, setPadding, setPageLeft, setPageTop, setPanelContainer, setParentCanvas, setParentElement, setPeers, setPercentBox, setPercentSource, setPersistentMatchElement, setPointerSettings, setPointerTarget, setPosition, setPrefix, setPrintChildrenAbsolutelyPositioned, setPrintStyleName, setPrompt, setProportionalResizeModifiers, setProportionalResizing, setReceiveScrollbarEvents, setRect, setRect, setRedrawOnResize, setRelativeTabPosition, setResizeBarTarget, setResizeFrom, setResizeFrom, setRight, setRuleScope, setScrollbarConstructor, setScrollbarSize, setShadowColor, setShadowDepth, setShadowHOffset, setShadowImage, setShadowOffset, setShadowSoftness, setShadowSpread, setShadowVOffset, setShouldPrint, setShowCustomScrollbars, setShowDragShadow, setShowEdges, setShowHover, setShowHoverComponents, setShowPointer, setShowResizeBar, setShowShadow, setShowSnapGrid, setShrinkElementOnHide, setSizeMayChangeOnRedraw, setSkinImgDir, setSmoothFade, setSnapAlignCandidates, setSnapAlignCenterLineStyle, setSnapAlignEdgeLineStyle, setSnapAxis, setSnapEdge, setSnapGridLineProperties, setSnapGridStyle, setSnapHDirection, setSnapHGap, setSnapOffsetLeft, setSnapOffsetTop, setSnapOnDrop, setSnapResizeToAlign, setSnapResizeToGrid, setSnapTo, setSnapToAlign, setSnapToCenterAlign, setSnapToEdgeAlign, setSnapToGrid, setSnapVDirection, setSnapVGap, setStartLine, setStyleName, setTabIndex, setTestDataContext, setTooltip, setTop, setTop, setUpdateTabPositionOnDraw, setUpdateTabPositionOnReparent, setUseBackMask, setUseCSSShadow, setUseDragMask, setUseImageForSVG, setUseNativeDrag, setUseOpacityFilter, setUseTouchScrolling, setValuesManager, setValuesManager, setVisibility, setVisible, setVisibleWhen, setWidth, setWidth, setWidth, setWidth100, setZIndex, shouldDragScroll, show, showClickMask, showComponentMask, showComponentMask, showNextTo, showNextTo, showNextTo, showNextTo, showPrintPreview, showPrintPreview, showPrintPreview, showPrintPreview, showRecursively, updateChildTabPosition, updateChildTabPositions, updateEditNode, updateHover, updateHover, updateShadow, updateTabPositionForDraw, visibleAtPoint, willAcceptDropaddDrawHandler, addDynamicProperty, addDynamicProperty, addDynamicProperty, addDynamicProperty, applyFactoryProperties, clearDynamicProperty, completeCreation, destroy, doAddHandler, doInit, doOnRender, draw, equals, error, errorIfNotCreated, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDateArray, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsFloatArray, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getConfig, getDOM, getHandlerCount, getID, getInnerHTML, getJsObj, getOrCreateJsObj, getRef, getScClassName, hasAutoAssignedID, hasDynamicProperty, hashCode, initNativeObject, internalSetID, internalSetID, isConfigOnly, isCreated, isDrawn, isFactoryCreated, onBind, onDestroy, onDraw, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setConfigOnly, setDefaultProperties, setDragTracker, setFactoryCreated, setID, setJavaScriptObject, setLogicalStructure, setLogicalStructure, setNullProperty, setPosition, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setScClassName, toStringaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getStyleElement, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEventpublic Slider()
public Slider(com.google.gwt.core.client.JavaScriptObject jsObj)
public Slider(java.lang.String title)
public static Slider getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public static void changeAutoChildDefaults(java.lang.String autoChildName,
Canvas defaults)
autoChildName.autoChildName - name of an AutoChild to customize the defaults for.defaults - Canvas defaults to apply. These defaults override any existing properties
without destroying or wiping out non-overridden properties. For usage tips on this
param, see SGWTProperties.AutoChildUsagepublic static void changeAutoChildDefaults(java.lang.String autoChildName,
FormItem defaults)
autoChildName.autoChildName - name of an AutoChild to customize the defaults for.defaults - FormItem defaults to apply. These defaults override any existing properties
without destroying or wiping out non-overridden properties. For usage tips on this
param, see SGWTProperties.AutoChildUsageprotected com.google.gwt.core.client.JavaScriptObject create()
public StatefulCanvas getActiveTrack() throws java.lang.IllegalStateException
active part of the
slider track.
This component is an AutoChild named "activeTrack". For an overview of how to use and
configure AutoChildren, see Using AutoChildren.
java.lang.IllegalStateException - if this widget has not yet been rendered.public Slider setActiveTrackStyle(java.lang.String activeTrackStyle) throws java.lang.IllegalStateException
active part of the slider
track. Will have the suffix "Disabled" added when the slider is disabled.
activeTrackStyle - New activeTrackStyle value. Default value is "sliderTrackActive"Slider instance, for chaining setter callsjava.lang.IllegalStateException - this property cannot be changed after the component has been createdCSSStyleNamepublic java.lang.String getActiveTrackStyle()
active part of the slider
track. Will have the suffix "Disabled" added when the slider is disabled.
CSSStyleNamepublic Slider setAnimateThumb(java.lang.Boolean animateThumb)
animateThumb - New animateThumb value. Default value is trueSlider instance, for chaining setter callspublic java.lang.Boolean getAnimateThumb()
public Slider setAnimateThumbInit(java.lang.Boolean animateThumbInit)
animateThumbInit - New animateThumbInit value. Default value is falseSlider instance, for chaining setter callspublic java.lang.Boolean getAnimateThumbInit()
public Slider setAnimateThumbTime(int animateThumbTime)
animateThumbTime - New animateThumbTime value. Default value is 250Slider instance, for chaining setter callspublic int getAnimateThumbTime()
public Slider setCanFocus(java.lang.Boolean canFocus)
setCanFocus in class CanvascanFocus - New canFocus value. Default value is trueSlider instance, for chaining setter callsFocus overview and related methods,
Focus & Tabbing Examplepublic java.lang.Boolean getCanFocus()
getCanFocus in class CanvasFocus overview and related methods,
Focus & Tabbing Examplepublic Slider setFlipValues(java.lang.Boolean flipValues)
vertical slider) or to the left (for a horizontal
slider).
flipValues property of the sliderflipValues - flip slider values?. Default value is falseSlider instance, for chaining setter callspublic java.lang.Boolean getFlipValues()
vertical slider) or to the left (for a horizontal
slider).public Slider setHLabelSpacing(java.lang.Integer hLabelSpacing)
minimum,
maximum and current values of the slider, when vertical is false. If unset, defaults to labelSpacing.hLabelSpacing - New hLabelSpacing value. Default value is nullSlider instance, for chaining setter callspublic java.lang.Integer getHLabelSpacing()
minimum,
maximum and current values of the slider, when vertical is false. If unset, defaults to labelSpacing.public Slider setHThumbStyle(java.lang.String hThumbStyle) throws java.lang.IllegalStateException
horizontally oriented
slider. Will have the suffix "down" added when the mouse is down on the thumb, and "Disabled" added when the slider is disabled.
hThumbStyle - New hThumbStyle value. Default value is nullSlider instance, for chaining setter callsjava.lang.IllegalStateException - this property cannot be changed after the component has been createdCSSStyleNamepublic java.lang.String getHThumbStyle()
horizontally oriented
slider. Will have the suffix "down" added when the mouse is down on the thumb, and "Disabled" added when the slider is disabled.
CSSStyleNamepublic Slider setHTrackStyle(java.lang.String hTrackStyle) throws java.lang.IllegalStateException
horizontally oriented
slider. Will have the suffix "Disabled" added when the slider is disabled.
hTrackStyle - New hTrackStyle value. Default value is nullSlider instance, for chaining setter callsjava.lang.IllegalStateException - this property cannot be changed after the component has been createdCSSStyleNamepublic java.lang.String getHTrackStyle()
horizontally oriented
slider. Will have the suffix "Disabled" added when the slider is disabled.
CSSStyleNamepublic Slider setHValueStyle(java.lang.String hValueStyle) throws java.lang.IllegalStateException
valueLabel, visible when
showValue is true and vertical is false.hValueStyle - New hValueStyle value. Default value is nullSlider instance, for chaining setter callsjava.lang.IllegalStateException - this property cannot be changed after the component has been createdCSSStyleNamepublic java.lang.String getHValueStyle()
valueLabel, visible when
showValue is true and vertical is false.CSSStyleNamepublic Slider setLabelHeight(int labelHeight)
minimum, maximum
and current values of the slider.
labelHeight property of the sliderlabelHeight - new label height. Default value is 20Slider instance, for chaining setter callspublic int getLabelHeight()
minimum, maximum
and current values of the slider.public Slider setLabelSpacing(int labelSpacing)
minimum,
maximum and current values of the slider.
labelSpacing property of the sliderlabelSpacing - new label spacing. Default value is 5Slider instance, for chaining setter callspublic int getLabelSpacing()
minimum,
maximum and current values of the slider.public Slider setLabelWidth(int labelWidth)
labelWidth property of the sliderlabelWidth - new label width. Default value is 50Slider instance, for chaining setter callspublic int getLabelWidth()
public Slider setLength(int length)
length - New length value. Default value is 200Slider instance, for chaining setter callspublic int getLength()
public Slider setMaxValue(float maxValue)
GwtFloatVsDoublemaximum value of the slidermaxValue - the new maximum value Note:Use Doubles rather Floats when manipulating decimal values. See GwtFloatVsDouble for details. Default value is 100Slider instance, for chaining setter callssetFlipValues(java.lang.Boolean),
Slider Examplepublic float getMaxValue()
GwtFloatVsDoublegetFlipValues(),
Slider Examplepublic Slider setMaxValue(double maxValue)
maximum value of the slidermaxValue - the new maximum value Note:Use Doubles rather Floats when manipulating decimal values. See GwtFloatVsDouble for details. Default value is 100Slider instance, for chaining setter callssetFlipValues(java.lang.Boolean),
Slider Examplepublic double getMaxValueAsDouble()
getFlipValues(),
Slider Examplepublic Slider setMaxValueLabel(java.lang.String maxValueLabel)
maxValueLabel property of the slidermaxValueLabel - new label text. Default value is nullSlider instance, for chaining setter callssetShowRange(java.lang.Boolean),
setMaxValue(float)public java.lang.String getMaxValueLabel()
getShowRange(),
getMaxValue()public Slider setMinValue(float minValue)
GwtFloatVsDoubleminimum value of the sliderminValue - the new minimum value Note:Use Doubles rather Floats when manipulating decimal values. See GwtFloatVsDouble for details. Default value is 1Slider instance, for chaining setter callssetFlipValues(java.lang.Boolean),
Slider Examplepublic float getMinValue()
GwtFloatVsDoublegetFlipValues(),
Slider Examplepublic Slider setMinValue(double minValue)
minimum value of the sliderminValue - the new minimum value Note:Use Doubles rather Floats when manipulating decimal values. See GwtFloatVsDouble for details. Default value is 1Slider instance, for chaining setter callssetFlipValues(java.lang.Boolean),
Slider Examplepublic double getMinValueAsDouble()
getFlipValues(),
Slider Examplepublic Slider setMinValueLabel(java.lang.String minValueLabel)
minValueLabel - New minValueLabel value. Default value is nullSlider instance, for chaining setter callssetShowRange(java.lang.Boolean),
setMinValue(float)public java.lang.String getMinValueLabel()
getShowRange(),
getMinValue()public Slider setNumValues(java.lang.Integer numValues)
minValue and maxValue) will be divided into this many steps. As the thumb is moved along the
track it will only select these values and appear to jump between the steps.
number of values for the slidernumValues - the new number of values Note:Use Doubles rather Floats when manipulating decimal values. See GwtFloatVsDouble for details. Default value is nullSlider instance, for chaining setter callspublic java.lang.Integer getNumValues()
minValue and maxValue) will be divided into this many steps. As the thumb is moved along the
track it will only select these values and appear to jump between the steps.public Slider setRangeFormat(java.lang.String rangeFormat) throws java.lang.IllegalStateException
FormatString for numeric formatting of the range labels. If unset, defaults to valueFormatrangeFormat - New rangeFormat value. Default value is nullSlider instance, for chaining setter callsjava.lang.IllegalStateException - this property cannot be changed after the component has been createdFormatString,
Appearance overview and related methodspublic java.lang.String getRangeFormat()
FormatString for numeric formatting of the range labels. If unset, defaults to valueFormatFormatString,
Appearance overview and related methodspublic Label getRangeLabel()
Using AutoChildren
for details.
Used to create both of the min and max range-labels, via the com.smartgwt.client.types.AutoChild pattern, hence
rangeLabelConstructor, rangeLabelDefaults and rangeLabelProperties are valid.
public Slider setRangeStyle(java.lang.String rangeStyle) throws java.lang.IllegalStateException
min and max range-labels, when showRange is true.rangeStyle - New rangeStyle value. Default value is "sliderRange"Slider instance, for chaining setter callsjava.lang.IllegalStateException - this property cannot be changed after the component has been createdCSSStyleNamepublic java.lang.String getRangeStyle()
min and max range-labels, when showRange is true.CSSStyleNamepublic Slider setRoundPrecision(int roundPrecision)
roundValues is false, the slider value will be rounded to
this number of decimal places. If set to null the value will not be rounded
roundPrecision property of the sliderroundPrecision - new round precision. Default value is 1Slider instance, for chaining setter callspublic int getRoundPrecision()
roundValues is false, the slider value will be rounded to
this number of decimal places. If set to null the value will not be roundedpublic Slider setRoundValues(java.lang.Boolean roundValues)
roundPrecision.
roundValues property of the sliderroundValues - round slider values?. Default value is trueSlider instance, for chaining setter callspublic java.lang.Boolean getRoundValues()
roundPrecision.public Slider setShowActiveTrack(java.lang.Boolean showActiveTrack) throws java.lang.IllegalStateException
activeTrack, which highlights the 'active'
portion of a slider, from its minimum to its current value.showActiveTrack - New showActiveTrack value. Default value is falseSlider instance, for chaining setter callsjava.lang.IllegalStateException - this property cannot be changed after the component has been createdpublic java.lang.Boolean getShowActiveTrack()
activeTrack, which highlights the 'active'
portion of a slider, from its minimum to its current value.public Slider setShowRange(java.lang.Boolean showRange)
min and max values of the
slider should be displayed. The default positions for these labels are below the start/end of a horizontal slider, or
to the right of the start/end of a vertical slider.
showRange property of the slidershowRange - show the slider range?. Default value is trueSlider instance, for chaining setter callssetMinValueLabel(java.lang.String),
setMaxValueLabel(java.lang.String)public java.lang.Boolean getShowRange()
min and max values of the
slider should be displayed. The default positions for these labels are below the start/end of a horizontal slider, or
to the right of the start/end of a vertical slider.getMinValueLabel(),
getMaxValueLabel()public Slider setShowTitle(java.lang.Boolean showTitle)
title should be displayed. The
default position for the title-label is to the left of a horizontal slider, or above a vertical slider.
showTitle property of the slidershowTitle - show the slider title?. Default value is trueSlider instance, for chaining setter callssetTitle(java.lang.String)public java.lang.Boolean getShowTitle()
title should be displayed. The
default position for the title-label is to the left of a horizontal slider, or above a vertical slider.getTitle()public Slider setShowValue(java.lang.Boolean showValue)
label for the value of the slider should
be displayed. The default position for this label is to the right of a vertical slider, or below a horizontal slider.
showValue property of the slidershowValue - show the slider value?. Default value is trueSlider instance, for chaining setter callssetValue(float)public java.lang.Boolean getShowValue()
label for the value of the slider should
be displayed. The default position for this label is to the right of a vertical slider, or below a horizontal slider.getValue()public Slider setStepPercent(float stepPercent)
GwtFloatVsDoublestepPercent property of the sliderstepPercent - new slider step percent. Default value is 5Slider instance, for chaining setter callspublic float getStepPercent()
GwtFloatVsDoublepublic Slider setStepPercent(double stepPercent)
stepPercent property of the sliderstepPercent - new slider step percent. Default value is 5Slider instance, for chaining setter callspublic double getStepPercentAsDouble()
public Slider setThumbSrc(java.lang.String thumbSrc)
{baseName}.{extension}h{baseName}.{extension}:
default enabled appearance. h{baseName}_down.{extension}: appearance when the slider is enabled and
the thumb is clicked. h{baseName}_Disabled.{extension}: appearance when the slider is disabled.
v{baseName}.{extension}: default enabled appearance.
v{baseName}_down.{extension}: appearance when the slider is enabled and the thumb is clicked.
v{baseName}_Disabled.{extension}: appearance when the slider is disabled. thumbSrc property of the sliderthumbSrc - new thumbSrc. Default value is "thumb.gif"Slider instance, for chaining setter callspublic java.lang.String getThumbSrc()
{baseName}.{extension}h{baseName}.{extension}:
default enabled appearance. h{baseName}_down.{extension}: appearance when the slider is enabled and
the thumb is clicked. h{baseName}_Disabled.{extension}: appearance when the slider is disabled.
v{baseName}.{extension}: default enabled appearance.
v{baseName}_down.{extension}: appearance when the slider is enabled and the thumb is clicked.
v{baseName}_Disabled.{extension}: appearance when the slider is disabled. public Slider setThumbThickWidth(int thumbThickWidth)
thumbThickWidth property of the sliderthumbThickWidth - new thumbThickWidth. Default value is 23Slider instance, for chaining setter callspublic int getThumbThickWidth()
public Slider setThumbThinWidth(int thumbThinWidth)
thumbThinWidth property of the sliderthumbThinWidth - new thumbThinWidth. Default value is 17Slider instance, for chaining setter callspublic int getThumbThinWidth()
public void setTitle(java.lang.String title)
title of the slidersetTitle in class Canvastitle - new title for the slider. Default value is "Set Value"setShowTitle(java.lang.Boolean)public java.lang.String getTitle()
getTitle in class CanvasgetShowTitle()public Slider setTitleSpacing(int titleSpacing)
title and the track.titleSpacing - New titleSpacing value. Default value is 5Slider instance, for chaining setter callspublic int getTitleSpacing()
title and the track.public Slider setTitleStyle(java.lang.String titleStyle) throws java.lang.IllegalStateException
title-text, when showTitle is true.titleStyle - New titleStyle value. Default value is "sliderTitle"Slider instance, for chaining setter callsjava.lang.IllegalStateException - this property cannot be changed after the component has been createdCSSStyleNamepublic java.lang.String getTitleStyle()
title-text, when showTitle is true.CSSStyleNamepublic Slider setTrackCapSize(int trackCapSize)
vertical slider start and end images, or width of
horizontal slider start and end images.
trackCapSize property of the slidertrackCapSize - new trackCapSize. Default value is 6Slider instance, for chaining setter callspublic int getTrackCapSize()
vertical slider start and end images, or width of
horizontal slider start and end images.public Slider setTrackImageType(ImageStyle trackImageType)
trackImageType property of the slidertrackImageType - new trackImageType. Default value is "stretch"Slider instance, for chaining setter callsImageStyle,
StretchImg.setImageType(com.smartgwt.client.types.ImageStyle)public ImageStyle getTrackImageType()
ImageStyle,
StretchImg.getImageType()public Slider setTrackSrc(java.lang.String trackSrc)
{baseName}.{extension}h{baseName}_start.{extension}:
start (left edge) of the track for a slider that is enabled. h{baseName}_stretch.{extension}: the
track for an enabled slider; this may be centered, tiled, or stretched.
h{baseName}_end.{extension}: end (right edge) of the track for a slider that is enabled.
h{baseName}_Disabled_start.{extension}: start (left edge) of the track for a slider that is
disabled. h{baseName}_Disabled_stretch.{extension}: the track for a disabled slider; this may be
centered, tiled, or stretched. h{baseName}_Disabled_end.{extension}: end (right edge) of the track for
a slider that is disabled. v{baseName}_start.{extension}: start
(bottom edge) of the track for a slider that is enabled. v{baseName}_stretch.{extension}: the
track for an enabled slider; this may be centered, tiled, or stretched.
v{baseName}_end.{extension}: end (top edge) of the track for a slider that is enabled.
v{baseName}_Disabled_start.{extension}: start (bottom edge) of the track for a slider that is
disabled. v{baseName}_Disabled_stretch.{extension}: the track for a disabled slider; this may be
centered, tiled, or stretched. v{baseName}_end.{extension}: end (top edge) of the track for a slider
that is disabled. trackSrc property of the slidertrackSrc - new trackSrc. Default value is "track.gif"Slider instance, for chaining setter callssetTrackImageType(com.smartgwt.client.types.ImageStyle)public java.lang.String getTrackSrc()
{baseName}.{extension}h{baseName}_start.{extension}:
start (left edge) of the track for a slider that is enabled. h{baseName}_stretch.{extension}: the
track for an enabled slider; this may be centered, tiled, or stretched.
h{baseName}_end.{extension}: end (right edge) of the track for a slider that is enabled.
h{baseName}_Disabled_start.{extension}: start (left edge) of the track for a slider that is
disabled. h{baseName}_Disabled_stretch.{extension}: the track for a disabled slider; this may be
centered, tiled, or stretched. h{baseName}_Disabled_end.{extension}: end (right edge) of the track for
a slider that is disabled. v{baseName}_start.{extension}: start
(bottom edge) of the track for a slider that is enabled. v{baseName}_stretch.{extension}: the
track for an enabled slider; this may be centered, tiled, or stretched.
v{baseName}_end.{extension}: end (top edge) of the track for a slider that is enabled.
v{baseName}_Disabled_start.{extension}: start (bottom edge) of the track for a slider that is
disabled. v{baseName}_Disabled_stretch.{extension}: the track for a disabled slider; this may be
centered, tiled, or stretched. v{baseName}_end.{extension}: end (top edge) of the track for a slider
that is disabled. getTrackImageType()public Slider setTrackWidth(int trackWidth)
vertical
slider, or the height, for a horizontal slider.
trackWidth property of the slidertrackWidth - new trackWidth. Default value is 7Slider instance, for chaining setter callspublic int getTrackWidth()
vertical
slider, or the height, for a horizontal slider.public Slider setValue(float value)
GwtFloatVsDoublevalue - the new value Note:Use Doubles rather Floats when manipulating decimal values. See GwtFloatVsDouble for details. Default value is 1Slider instance, for chaining setter callssetMinValue(float),
setMaxValue(float),
setFlipValues(java.lang.Boolean),
setShowValue(java.lang.Boolean)public float getValue()
GwtFloatVsDoublegetMinValue(),
getMaxValue(),
getFlipValues(),
getShowValue()public Slider setValue(double value)
value - the new value Note:Use Doubles rather Floats when manipulating decimal values. See GwtFloatVsDouble for details. Default value is 1Slider instance, for chaining setter callssetMinValue(float),
setMaxValue(float),
setFlipValues(java.lang.Boolean),
setShowValue(java.lang.Boolean)public double getValueAsDouble()
getMinValue(),
getMaxValue(),
getFlipValues(),
getShowValue()public Slider setValueFormat(java.lang.String valueFormat) throws java.lang.IllegalStateException
FormatString for numeric formatting of the value and range labels.valueFormat - New valueFormat value. Default value is nullSlider instance, for chaining setter callsjava.lang.IllegalStateException - this property cannot be changed after the component has been createdFormatString,
Appearance overview and related methodspublic java.lang.String getValueFormat()
FormatString for numeric formatting of the value and range labels.FormatString,
Appearance overview and related methodspublic Label getValueLabel() throws java.lang.IllegalStateException
com.smartgwt.client.types.AutoChild displaying the current value as a floating label when showValue is true.
This component is an AutoChild named "valueLabel". For an overview of how to use and
configure AutoChildren, see Using AutoChildren.
java.lang.IllegalStateException - if this widget has not yet been rendered.public Slider setValueStyle(java.lang.String valueStyle) throws java.lang.IllegalStateException
valueLabel, visible when showValue is true.valueStyle - New valueStyle value. Default value is "sliderValue"Slider instance, for chaining setter callsjava.lang.IllegalStateException - this property cannot be changed after the component has been createdCSSStyleNamepublic java.lang.String getValueStyle()
valueLabel, visible when showValue is true.CSSStyleNamepublic Slider setValueTextStyle(java.lang.String valueTextStyle) throws java.lang.IllegalStateException
valueLabel, visible
when showValue is true.valueTextStyle - New valueTextStyle value. Default value is "sliderValueText"Slider instance, for chaining setter callsjava.lang.IllegalStateException - this property cannot be changed after the component has been createdCSSStyleNamepublic java.lang.String getValueTextStyle()
valueLabel, visible
when showValue is true.CSSStyleNamepublic Slider setVertical(java.lang.Boolean vertical)
vertical property of the slidervertical - is the slider vertical. Default value is trueSlider instance, for chaining setter callspublic java.lang.Boolean getVertical()
public Slider setVLabelSpacing(java.lang.Integer vLabelSpacing)
minimum,
maximum and current values of the slider, when vertical is true. If unset, defaults to labelSpacing.vLabelSpacing - New vLabelSpacing value. Default value is nullSlider instance, for chaining setter callspublic java.lang.Integer getVLabelSpacing()
minimum,
maximum and current values of the slider, when vertical is true. If unset, defaults to labelSpacing.public Slider setVThumbStyle(java.lang.String vThumbStyle) throws java.lang.IllegalStateException
vertically oriented
slider. See hThumbStyle for state suffixes.vThumbStyle - New vThumbStyle value. Default value is nullSlider instance, for chaining setter callsjava.lang.IllegalStateException - this property cannot be changed after the component has been createdCSSStyleNamepublic java.lang.String getVThumbStyle()
vertically oriented
slider. See hThumbStyle for state suffixes.CSSStyleNamepublic Slider setVTrackStyle(java.lang.String vTrackStyle) throws java.lang.IllegalStateException
vertically oriented
slider. Will have the suffix "Disabled" added when the slider is disabled.
vTrackStyle - New vTrackStyle value. Default value is nullSlider instance, for chaining setter callsjava.lang.IllegalStateException - this property cannot be changed after the component has been createdCSSStyleNamepublic java.lang.String getVTrackStyle()
vertically oriented
slider. Will have the suffix "Disabled" added when the slider is disabled.
CSSStyleNamepublic Slider setVValueStyle(java.lang.String vValueStyle) throws java.lang.IllegalStateException
valueLabel, visible when
showValue is true and vertical is true.vValueStyle - New vValueStyle value. Default value is nullSlider instance, for chaining setter callsjava.lang.IllegalStateException - this property cannot be changed after the component has been createdCSSStyleNamepublic java.lang.String getVValueStyle()
valueLabel, visible when
showValue is true and vertical is true.CSSStyleNamepublic com.google.gwt.event.shared.HandlerRegistration addValueChangedHandler(ValueChangedHandler handler)
This method is called when the slider value changes. This occurs when the setValue() method is called, or when the slider is moved. Add a
notification to be fired whenever the slider value changes.
addValueChangedHandler in interface HasValueChangedHandlershandler - the valueChanged handlerHandlerRegistration used to remove this handlerpublic java.lang.Boolean valueIsChanging()
Slider.valueChanged() handler
to determine whether the value change is due to an ongoing drag interaction (true) or due to a thumb-release, mouse
click, keypress, or programmatic event (false). You may choose to execute temporary or partial updates while the slider
thumb is dragged, and final updates or persistence of the value in response to the other events.public static void setDefaultProperties(Slider sliderProperties)
Note: This method is intended for setting default attributes only and will affect all instances of the underlying class (including those automatically generated in JavaScript). This method should not be used to apply standard EventHandlers or override methods for a class - use a custom subclass instead. Calling this method after instances have been created can result in undefined behavior, since it bypasses any setters and a class instance may have already examined a particular property and not be expecting any changes through this route.
sliderProperties - properties that should be used as new defaults when instances of this class are createdSGWTPropertiespublic com.smartgwt.logicalstructure.core.LogicalStructureObject setLogicalStructure(com.smartgwt.logicalstructure.widgets.SliderLogicalStructure s)
LogicalStructure interface,
which supports Eclipse's logical structure debugging facility.public com.smartgwt.logicalstructure.core.LogicalStructureObject getLogicalStructure()
LogicalStructure interface,
which supports Eclipse's logical structure debugging facility.getLogicalStructure in interface LogicalStructuregetLogicalStructure in class Canvas