|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.core.RefDataClass
com.smartgwt.client.widgets.form.fields.FormItem
com.smartgwt.client.widgets.form.fields.CanvasItem
com.smartgwt.client.widgets.form.fields.SliderItem
public class SliderItem
FormItem that uses a Slider
component to present an interface for picking from
either a continuous range or a range with a small number of discrete values.
Field Summary |
---|
Fields inherited from class com.smartgwt.client.core.JsObject |
---|
jsObj |
Constructor Summary | |
---|---|
SliderItem()
|
|
SliderItem(JavaScriptObject jsObj)
|
|
SliderItem(java.lang.String name)
|
|
SliderItem(java.lang.String name,
java.lang.String title)
|
Method Summary | |
---|---|
java.lang.Boolean |
getChangeOnDrag()
Should this sliderItem update its value and fire change handlers while the user is actively dragging the slider. |
int |
getDefaultValue()
Default value for this sliderItems is 1. |
float |
getMaxValue()
The maximum slider value. |
float |
getMinValue()
The minimum slider value. |
java.lang.Integer |
getNumValues()
The number of discrete values represented by slider. |
static SliderItem |
getOrCreateRef(JavaScriptObject jsObj)
|
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.Float |
getValueAsFloat()
Return the value tracked by this form item. |
java.lang.Boolean |
getVertical()
Indicates whether this is a vertical or horizontal slider. |
void |
setChangeOnDrag(java.lang.Boolean changeOnDrag)
Should this sliderItem update its value and fire change handlers while the user is actively dragging the slider. |
void |
setDefaultValue(int defaultValue)
Default value for this sliderItems is 1. |
void |
setMaxValue(float maxValue)
The maximum slider value. |
void |
setMinValue(float minValue)
The minimum slider value. |
void |
setNumValues(java.lang.Integer numValues)
The number of discrete values represented by slider. |
void |
setRoundPrecision(int roundPrecision)
If roundValues is false, the slider value will be rounded to
this number of decimal places. |
void |
setRoundValues(java.lang.Boolean roundValues)
Specifies whether the slider value should be rounded to the nearest integer. |
void |
setVertical(java.lang.Boolean vertical)
Indicates whether this is a vertical or horizontal slider. |
Methods inherited from class com.smartgwt.client.widgets.form.fields.CanvasItem |
---|
addShowValueHandler, canEditCriterion, createCanvas, getCanvas, getCriterion, getEditCriteriaInInnerForm, getOverflow, getShouldSaveValue, hasAdvancedCriteria, setCanvas, setCriterion, setEditCriteriaInInnerForm, setOverflow, setShouldSaveValue, setupCanvasConstructor, storeValue, storeValue, storeValue |
Methods inherited from class com.smartgwt.client.core.RefDataClass |
---|
getRef, getRef |
Methods inherited from class com.smartgwt.client.core.DataClass |
---|
doAddHandler, fireEvent, getAttributeAsDoubleArray, getAttributeAsIntArray, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsStringArray, getAttributes, getHandlerCount, getJsObj, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute |
Methods inherited from class com.smartgwt.client.core.JsObject |
---|
setJsObj |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Constructor Detail |
---|
public SliderItem()
public SliderItem(JavaScriptObject jsObj)
public SliderItem(java.lang.String name)
public SliderItem(java.lang.String name, java.lang.String title)
Method Detail |
---|
public static SliderItem getOrCreateRef(JavaScriptObject jsObj)
public void setChangeOnDrag(java.lang.Boolean changeOnDrag)
false
will suppress any change notifications from the user dragging the slider
thumb until the user releases the mouse at the final position. This can be useful to avoid repeatedly firing expensive
operations such as server fetches while the user drags through a range of values.
changeOnDrag
- changeOnDrag Default value is truepublic java.lang.Boolean getChangeOnDrag()
false
will suppress any change notifications from the user dragging the slider
thumb until the user releases the mouse at the final position. This can be useful to avoid repeatedly firing expensive
operations such as server fetches while the user drags through a range of values.
public void setDefaultValue(int defaultValue)
defaultValue
- defaultValue Default value is 1public int getDefaultValue()
public void setMaxValue(float maxValue)
maximum value
of the slider
maxValue
- the new maximum value. Default value is 100Slider.setFlipValues(java.lang.Boolean)
,
Number - Slider Examplepublic float getMaxValue()
Slider.getFlipValues()
,
Number - Slider Examplepublic void setMinValue(float minValue)
minimum value
of the slider
minValue
- the new minimum value. Default value is 1Slider.setFlipValues(java.lang.Boolean)
,
Number - Slider Examplepublic float getMinValue()
Slider.getFlipValues()
,
Number - Slider Examplepublic void 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 slider
numValues
- the new number of values. Default value is nullpublic 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 void 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
- roundPrecision Default value is 1public 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 rounded
public void setRoundValues(java.lang.Boolean roundValues)
roundPrecision
.
roundValues
- roundValues Default value is truepublic java.lang.Boolean getRoundValues()
roundPrecision
.
public void setVertical(java.lang.Boolean vertical)
vertical
- vertical Default value is falsepublic java.lang.Boolean getVertical()
public java.lang.Float getValueAsFloat()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |