/** * Default value for this sliderItems is 1. * * @param defaultValue defaultValue Default value is 1 */ public void setDefaultValue(int defaultValue) { setAttribute("defaultValue", defaultValue); }
/** * The number of discrete values represented by slider. If specified, the range of valid values (between * <code>minValue</code> and <code>maxValue</code>) 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 {@link com.smartgwt.client.widgets.Slider#getNumValues number of values} for the slider * * @param numValues the new number of values. Default value is null * @see <a href="http://www.smartclient.com/smartgwt/showcase/#form_controls_various" target="examples">Number - Slider Example</a> */ public void setNumValues(Integer numValues) { setAttribute("numValues", numValues); }
/** * Should this sliderItem update its value and fire change handlers while the user is actively dragging the slider. Setting * this attribute value to <code>false</code> 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. * * @param changeOnDrag changeOnDrag Default value is true */ public void setChangeOnDrag(Boolean changeOnDrag) { setAttribute("changeOnDrag", changeOnDrag); }
/** * The maximum slider value. The slider value is equal to maxValue when the thumb is at the top or right of the slider * (unless flipValues is true, in which case the maximum value is at the bottom/left of the slider) * Sets the {@link com.smartgwt.client.widgets.Slider#getMaxValue maximum value} of the slider * * @param maxValue the new maximum value. Default value is 100 * @see com.smartgwt.client.widgets.Slider#setFlipValues * @see <a href="http://www.smartclient.com/smartgwt/showcase/#form_controls_various" target="examples">Number - Slider Example</a> */ public void setMaxValue(float maxValue) { setAttribute("maxValue", maxValue); }
/** * The minimum slider value. The slider value is equal to minValue when the thumb is at the bottom or left of the slider * (unless flipValues is true, in which case the minimum value is at the top/right of the slider) * Sets the {@link com.smartgwt.client.widgets.Slider#getMinValue minimum value} of the slider * * @param minValue the new minimum value. Default value is 1 * @see com.smartgwt.client.widgets.Slider#setFlipValues * @see <a href="http://www.smartclient.com/smartgwt/showcase/#form_controls_various" target="examples">Number - Slider Example</a> */ public void setMinValue(float minValue) { setAttribute("minValue", minValue); }
/** * Indicates whether this is a vertical or horizontal slider. * * @param vertical vertical Default value is false * @see <a href="http://www.smartclient.com/smartgwt/showcase/#controls_category_slider" target="examples">Slider Example</a> */ public void setVertical(Boolean vertical) { setAttribute("vertical", vertical); }
/** * If {@link com.smartgwt.client.widgets.Slider#getRoundValues 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 * * @param roundPrecision roundPrecision Default value is 1 * @see <a href="http://www.smartclient.com/smartgwt/showcase/#form_controls_various" target="examples">Number - Slider Example</a> */ public void setRoundPrecision(int roundPrecision) { setAttribute("roundPrecision", roundPrecision); }
/** * Specifies whether the slider value should be rounded to the nearest integer. If set to false, values will be rounded to * a fixed number of decimal places controlled by {@link * com.smartgwt.client.widgets.form.fields.SliderItem#getRoundPrecision roundPrecision}. * * @param roundValues roundValues Default value is true * @see <a href="http://www.smartclient.com/smartgwt/showcase/#form_controls_various" target="examples">Number - Slider Example</a> */ public void setRoundValues(Boolean roundValues) { setAttribute("roundValues", roundValues); }
public SliderItem(){ setAttribute("editorType", "SliderItem"); }
public SliderItem(String name) { setName(name); setAttribute("editorType", "SliderItem"); }
public SliderItem(String name, String title) { setName(name); setTitle(title); setAttribute("editorType", "SliderItem"); }