|
|||||||||
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(com.google.gwt.core.client.JavaScriptObject jsObj)
|
|
SliderItem(java.lang.String name)
|
|
SliderItem(java.lang.String name,
java.lang.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. |
java.lang.Integer |
getNumValues()
The number of discrete values represented by slider. |
static SliderItem |
getOrCreateRef(com.google.gwt.core.client.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.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(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 |
---|
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 |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Constructor Detail |
---|
public SliderItem()
public SliderItem(com.google.gwt.core.client.JavaScriptObject jsObj)
public SliderItem(java.lang.String name)
public SliderItem(java.lang.String name, java.lang.String title)
Method Detail |
---|
public static SliderItem getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public void setVertical(java.lang.Boolean vertical)
vertical
- vertical Default value is falsepublic java.lang.Boolean getVertical()
public void setMinValue(float minValue)
minValue
- minValue Default value is 1public float getMinValue()
public void setMaxValue(float maxValue)
maxValue
- maxValue Default value is 100public float getMaxValue()
public 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.
numValues
- numValues 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 setRoundValues(java.lang.Boolean roundValues)
roundPrecision
.
roundValues
- roundValues Default value is truepublic java.lang.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 |