Package org.spiffyui.client.widgets.slider

Examples of org.spiffyui.client.widgets.slider.RangeSlider


        ok(10 == s.getValue(), "The value of the slider should be 10 and it was " + s.getValue());

        /*
         * Range Slider
         */
        RangeSlider rs = new RangeSlider(HTMLPanel.createUniqueId(), 10, 100, 20, 90);
        g_panel.add(rs, WIDGETS_ID);
        ok(20 == rs.getValueMin(), "The minimum value for the slider should be 20 and it was " + rs.getValueMin());
        ok(90 == rs.getValueMax(), "The maximum value for the slider should be 90 and it was " + rs.getValueMax());

        rs.setMinimum(30);
        rs.setMaximum(80);

        ok(30 == rs.getValueMin(), "The new minimum value for the slider should be 30 and it was " + rs.getValueMin());
        ok(80 == rs.getValueMax(), "The new maximum value for the slider should be 80 and it was " + rs.getValueMax());

        rs.setMinimum(90);
        ok(90 == rs.getValueMin(), "The new minimum value for the slider should be 90 and it was " + rs.getValueMin());
    }
View Full Code Here


    private void addSlider()
    {
        /*
         * Add a range slider
         */
        addToSlidingGrid(new RangeSlider("rangeslider", 0, 500, 200, 300), "WidgetsRangeSlider", Index.getStrings().slider(),
                         STRINGS.Slider_html(), WIDE);
    }
View Full Code Here

TOP

Related Classes of org.spiffyui.client.widgets.slider.RangeSlider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.