|
|||||||||
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(String name)
|
|
SliderItem(String name,
String title)
|
Method Summary | |
---|---|
int |
getDefaultValue()
Default value for this sliderItems is 1. |
float |
getMaxValue()
The maximum slider value. |
float |
getMinValue()
The minimum slider value. |
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. |
Boolean |
getRoundValues()
Specifies whether the slider value should be rounded to the nearest integer. |
Boolean |
getVertical()
Indicates whether this is a vertical or horizontal 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(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(Boolean roundValues)
Specifies whether the slider value should be rounded to the nearest integer. |
void |
setVertical(Boolean vertical)
Indicates whether this is a vertical or horizontal slider. |
Methods inherited from class com.smartgwt.client.widgets.form.fields.CanvasItem |
---|
getCanvas, setCanvas |
Methods inherited from class com.smartgwt.client.core.RefDataClass |
---|
getRef, getRef |
Methods inherited from class com.smartgwt.client.core.DataClass |
---|
doAddHandler, fireEvent, getAttributeAsIntArray, getAttributeAsMap, getAttributeAsObject, getAttributeAsStringArray, getAttributes, getHandlerCount, getJsObj, 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(String name)
public SliderItem(String name, String title)
Method Detail |
---|
public static SliderItem getOrCreateRef(JavaScriptObject jsObj)
public void setVertical(Boolean vertical)
vertical
- vertical Default value is falsepublic Boolean getVertical()
public void setMinValue(float minValue)
'minimum value'
of the slider
minValue
- the new minimum value. Default value is 1public float getMinValue()
public void setMaxValue(float maxValue)
'maximum value'
of the slider
maxValue
- the new maximum value. Default value is 100public float getMaxValue()
public void setNumValues(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.
Sets the 'number of values'
for the slider
numValues
- the new number of values. Default value is nullpublic 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 setRoundValues(Boolean roundValues)
roundPrecision
.
roundValues
- roundValues Default value is truepublic Boolean getRoundValues()
roundPrecision
.
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 setDefaultValue(int defaultValue)
defaultValue
- defaultValue Default value is 1public int getDefaultValue()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |