/** * Specifies whether the value range of the slider should be flipped so that values increase as the thumb is moved down * (for a vertical slider) or to the left (for a horizontal slider). * Sets the {@link com.smartgwt.client.widgets.Slider#getFlipValues flipValues} property of the slider * * @param flipValues flip slider values?. Default value is false */ public void setFlipValues(Boolean flipValues) { setAttribute("flipValues", flipValues, true); }
/** * The height of the labels used to display the minimum, maximum and current values of the slider. * Sets the {@link com.smartgwt.client.widgets.Slider#getLabelHeight labelHeight} property of the slider * * @param labelHeight new label height. Default value is 20 */ public void setLabelHeight(int labelHeight) { setAttribute("labelHeight", labelHeight, true); }
/** * The thickness of the track. This is the width, for a vertical slider, or the height, for a horizontal slider. * Sets the {@link com.smartgwt.client.widgets.Slider#getTrackWidth trackWidth} property of the slider * * @param trackWidth new trackWidth. Default value is 7 */ public void setTrackWidth(int trackWidth) { setAttribute("trackWidth", trackWidth, true); }
/** * Indicates whether keyboard manipulation of the slider is allowed. * * @param canFocus canFocus Default value is true */ public void setCanFocus(Boolean canFocus) { setAttribute("canFocus", canFocus, true); }
/** * The space around the labels used to display the minimum, maximum and current values of the slider. * Sets the {@link com.smartgwt.client.widgets.Slider#getLabelSpacing labelSpacing} property of the slider * * @param labelSpacing new label spacing. Default value is 5 */ public void setLabelSpacing(int labelSpacing) { setAttribute("labelSpacing", labelSpacing, true); }
/** * 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 * Sets the {@link com.smartgwt.client.widgets.Slider#getRoundPrecision roundPrecision} property of the slider * * @param roundPrecision new round precision. Default value is 1 */ public void setRoundPrecision(int roundPrecision) { setAttribute("roundPrecision", roundPrecision, true); }
/** * Indicates whether the slider's title should be displayed. The default position for this label is to the left of a * horizontal slider, or above a vertical slider. * Sets the {@link com.smartgwt.client.widgets.Slider#getShowTitle showTitle} property of the slider * * @param showTitle show the slider title?. Default value is true * @see com.smartgwt.client.widgets.Slider#setTitle */ public void setShowTitle(Boolean showTitle) { setAttribute("showTitle", showTitle, true); }
/** * The percentage of the total slider that constitutes one discrete step. The slider will move one step when the * appropriate arrow key is pressed. * Sets the {@link com.smartgwt.client.widgets.Slider#getStepPercent stepPercent} property of the slider * * @param stepPercent new slider step percent. Default value is 5 */ public void setStepPercent(float stepPercent) { setAttribute("stepPercent", stepPercent, true); }
/** * The dimension of the thumb perpendicular to the slider track. * Sets the {@link com.smartgwt.client.widgets.Slider#getThumbThickWidth thumbThickWidth} property of the slider * * @param thumbThickWidth new thumbThickWidth. Default value is 23 */ public void setThumbThickWidth(int thumbThickWidth) { setAttribute("thumbThickWidth", thumbThickWidth, true); }
/** * Used to set slider height if vertical, slider width if horizontal. Applied to the slider track, not necessarily the * entire widget. Overridden by an explicit width/height specification for the widget. * * @param length length Default value is 200 */ public void setLength(int length) { setAttribute("length", length, true); }
/** * 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/#controls_category_slider" target="examples">Slider Example</a> */ public void setMaxValue(float maxValue) { setAttribute("maxValue", maxValue, true); }
/** * The height of vertical slider start and end images, or width of horizontal slider start and end images. * Sets the {@link com.smartgwt.client.widgets.Slider#getTrackCapSize trackCapSize} property of the slider * * @param trackCapSize new trackCapSize. Default value is 6 */ public void setTrackCapSize(int trackCapSize) { setAttribute("trackCapSize", trackCapSize, true); }
/** * Duration of thumb animation, in milliseconds. * * @param animateThumbTime animateThumbTime Default value is 250 */ public void setAnimateThumbTime(int animateThumbTime) { setAttribute("animateThumbTime", animateThumbTime, true); }
/** * The width of the labels used to display the minimum, maximum and current values of the slider. * Sets the {@link com.smartgwt.client.widgets.Slider#getLabelWidth labelWidth} property of the slider * * @param labelWidth new label width. Default value is 50 */ public void setLabelWidth(int labelWidth) { setAttribute("labelWidth", labelWidth, true); }
/** * The text displayed in the label for the maximum value of the slider. If left as null, then slider.maxValue will be * displayed. * Sets the {@link com.smartgwt.client.widgets.Slider#getMaxValueLabel maxValueLabel} property of the slider * * @param maxValueLabel new label text. Default value is null * @see com.smartgwt.client.widgets.Slider#setShowRange * @see com.smartgwt.client.widgets.Slider#setMaxValue */ public void setMaxValueLabel(String maxValueLabel) { setAttribute("maxValueLabel", maxValueLabel, true); }
/** * 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/#controls_category_slider" target="examples">Slider Example</a> */ public void setNumValues(Integer numValues) { setAttribute("numValues", numValues, true); }
/** * 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.Slider#getRoundPrecision * roundPrecision}. * * @param roundValues roundValues Default value is true */ public void setRoundValues(Boolean roundValues) { setAttribute("roundValues", roundValues, true); }
/** * Indicates whether labels for the min and max values of the slider should be displayed. The default positions for these * labels are below the start/end of a horizontal slider, or to the right of the start/end of a vertical slider. * Sets the {@link com.smartgwt.client.widgets.Slider#getShowRange showRange} property of the slider * * @param showRange show the slider range?. Default value is true * @see com.smartgwt.client.widgets.Slider#setMinValueLabel * @see com.smartgwt.client.widgets.Slider#setMaxValueLabel */ public void setShowRange(Boolean showRange) { setAttribute("showRange", showRange, true); }
/** * The dimension of the thumb parallel to the slider track. * Sets the {@link com.smartgwt.client.widgets.Slider#getThumbThinWidth thumbThinWidth} property of the slider * * @param thumbThinWidth new thumbThinWidth. Default value is 17 */ public void setThumbThinWidth(int thumbThinWidth) { setAttribute("thumbThinWidth", thumbThinWidth, true); }
/** * The text displayed in the label for the minimum value of the slider. If left as null, then slider.minValue will be * displayed. * * @param minValueLabel minValueLabel Default value is null * @see com.smartgwt.client.widgets.Slider#setShowRange * @see com.smartgwt.client.widgets.Slider#setMinValue */ public void setMinValueLabel(String minValueLabel) { setAttribute("minValueLabel", minValueLabel, true); }