|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectWidget
org.spiffyui.client.widgets.slider.Slider
org.spiffyui.client.widgets.slider.RangeSlider
public class RangeSlider
RangeSlider is a convenient sub class of Slider for showing ranges.
| Constructor Summary | |
|---|---|
RangeSlider(java.lang.String id,
int min,
int max,
int defaultMin,
int defaultMax)
Constructor for the RangeSlider |
|
| Method Summary | |
|---|---|
static JSONObject |
getOptions(int min,
int max,
int defaultMin,
int defaultMax)
A convenient way to create an options JSONObject for the RangeSlider. |
int |
getValueMax()
Convenience method for when range is true, gets the maximum of the selected range, or in other words, gets the value of the higher anchor |
int |
getValueMin()
Convenience method for when range is true, gets the minimum of the selected range, or in other words, gets the value of the lower anchor |
protected void |
onLoad()
|
void |
setValues(int min,
int max)
Convenience method for when range is true, sets both the min and max anchors |
| Methods inherited from class org.spiffyui.client.widgets.slider.Slider |
|---|
addListener, getBooleanOption, getIntOption, getMaximum, getMinimum, getOptions, getValue, getValueAtIndex, onUnload, removeListener, setBooleanOption, setIntOption, setMaximum, setMinimum, setStringOption, setStringOption, setValue, setValues |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RangeSlider(java.lang.String id,
int min,
int max,
int defaultMin,
int defaultMax)
id - - element IDmin - - the minimum possible value of the slidermax - - the maximum possible value of the sliderdefaultMin - - the default value of the lowest anchordefaultMax - - the default value of the highest anchor| Method Detail |
|---|
public static JSONObject getOptions(int min,
int max,
int defaultMin,
int defaultMax)
min - - default minimum of the slidermax - - default maximum of the sliderdefaultMin - - the default value of the lowest anchordefaultMax - - the default value of the highest anchor
public int getValueMin()
public int getValueMax()
public void setValues(int min,
int max)
min - - the lower anchor's valuemax - - the upper anchor's valueprotected void onLoad()
onLoad in class Slider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||