public class Slider extends Field<Integer>
Field.FieldStyles
forceInvalidText, hasFocus, name, originalValue, parseError, preventMark, validationTask
valueUpdater
adjustSize, allowTextSelection, cacheSizes, disableContextMenu, disabled, disabledStyle, ensureVisibilityOnSizing, height, hidden, lastSize, layer, left, mask, maskMessage, monitorWindowResize, pageX, pageY, resizeHandler, shim, tabIndex, toolTip, toolTipConfig, top, width, windowResizeDelay, windowResizeTask
Constructor and Description |
---|
Slider()
Creates a slider with the default slider cell.
|
Slider(boolean vertical)
Creates a slider with the specified orientation.
|
Slider(SliderCell cell)
Creates a slider with the specified slider cell.
|
Modifier and Type | Method and Description |
---|---|
SliderCell |
getCell()
Get the
Cell wrapped by this widget. |
int |
getIncrement()
Returns the increment.
|
int |
getMaxValue()
Returns the max value (defaults to 100).
|
String |
getMessage()
Returns the tool tip message.
|
int |
getMinValue()
Returns the minimum value (defaults to 0).
|
boolean |
isShowMessage()
Returns true if the tool tip message is shown
|
void |
setIncrement(int increment)
How many units to change the slider when adjusting by drag and drop.
|
void |
setMaxValue(int maxValue)
Sets the max value (defaults to 100).
|
void |
setMessage(String message)
Sets the tool tip message (defaults to '{0}').
|
void |
setMinValue(int minValue)
Sets the minimum value (defaults to 0).
|
void |
setShowMessage(boolean showMessage)
Sets if the tool tip message should be displayed (defaults to true,
pre-render).
|
void |
setToolTipConfig(ToolTipConfig toolTipConfig)
Set the tooltip config.
|
addInvalidHandler, addValidator, addValidHandler, addValueChangeHandler, clear, clearInvalid, doAutoValidate, finishEditing, flush, forceInvalid, getErrors, getErrorSupport, getName, getOriginalValue, getValidateOnBlur, getValidationDelay, getValidators, isAutoValidate, isEditing, isValid, isValid, markInvalid, markInvalid, onBlur, onBrowserEvent, onDetach, onDisable, onEnable, onFocus, onKeyDown, onKeyPress, onKeyUp, onLogicalBlur, onLogicalFocus, onNavigationKey, onPropertyChange, onRedraw, removeValidator, reset, setAutoValidate, setDelegate, setErrors, setErrorSupport, setName, setOriginalValue, setReadOnly, setValidateOnBlur, setValidationDelay, setValue, showErrors, validate, validate, validateValue
createContext, getElement, getFocusEl, getKey, getKeyProvider, getValue, onResize, redraw, redraw, setKeyProvider, setValue, setValue
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addGestureRecognizer, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleDependentName, addStyleOnOver, adjustPosition, adjustSize, applyState, assertAfterRender, assertPreRender, blur, clearSizeCache, disable, disableContextMenu, disableEvents, enable, enableEvents, fireCancellableEvent, fireEvent, focus, getData, getFocusSupport, getGestureRecognizer, getGestureRecognizerCount, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getPositionEl, getShadow, getShadowPosition, getStateId, getTabIndex, getToolTip, hide, hideShadow, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isMonitorWindowResize, isRendered, isStateful, isVisible, isVisible, mask, mask, notifyHide, notifyShow, onAfterFirstAttach, onAttach, onHide, onHideContextMenu, onLoad, onPosition, onRightClick, onShow, onShowContextMenu, onTouch, onUnload, onWindowResize, removeStyleDependentName, removeStyleOnOver, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setId, setItemId, setMonitorWindowResize, setPagePosition, setPixelSize, setPosition, setShadow, setShadowPosition, setSize, setStateful, setStateId, setStyleDependentName, setTabIndex, setToolTip, setVisible, setWidth, setWidth, show, sync, syncSize, unmask
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addBlurHandler
public Slider()
public Slider(boolean vertical)
vertical
- true to create a vertical sliderpublic Slider(SliderCell cell)
cell
- the cell for this sliderpublic SliderCell getCell()
CellComponent
Cell
wrapped by this widget.public int getIncrement()
public int getMaxValue()
public String getMessage()
public int getMinValue()
public boolean isShowMessage()
public void setIncrement(int increment)
increment
- the incrementpublic void setMaxValue(int maxValue)
maxValue
- the max valuepublic void setMessage(String message)
message
- the tool tip messagepublic void setMinValue(int minValue)
minValue
- the minimum valuepublic void setShowMessage(boolean showMessage)
showMessage
- true to show tool tip messagepublic void setToolTipConfig(ToolTipConfig toolTipConfig)
SliderCell.setShowMessage(boolean)
has to be on to use this.setToolTipConfig
in class Component
toolTipConfig
- is the tooltip configuration.Copyright © 2018. All rights reserved.