Package org.sgx.yuigwt.yui.widget.slider

Examples of org.sgx.yuigwt.yui.widget.slider.Slider


YUI.Use(new String[]{"stylesheet", "slider"}, new YUICallback() {
  @Override
  public void ready(final YuiContext Y) { 
   
    final StyleSheet ss1 = Y.newStyleSheet();
    Slider sl1 = Y.newSlider(SliderConfig.create().min(8).max(34).value(11));
    sl1.render(parent);
    sl1.on(Slider.EVENT_THUMBMOVE, new EventCallback() {
     
      @Override
      public void call(EventFacade e_) {
        SliderEvent e = (SliderEvent)e_;
        String fsize = (e.offset()+8)+"px";
View Full Code Here


      Widget slider1 = Y.newSlider().render(n1);
//      slider1.on(TYPE, c)
     
      parent.append("<p>Now a vertical, custom slider...");
      Node n2 = parent.appendChild("<span>unknownsoldierflag123</span>").cast();
      final Slider sl2 = Y.newSlider(SliderConfig.create().axis("y").min(1).max(5).value(3).length(200)).render(n2).cast();
      sl2.on(Slider.EVENT_SLIDEEND, new EventCallback<SliderEvent>() {

        @Override
        public void call(SliderEvent e) {
          Window.alert("slider value change detected: "+sl2.getInt("value"));
        }
      });
    }
  });
}
View Full Code Here

    YUI.Use(new String[] { "button", "cssgrids", "slider" }, new YUICallback() {
      @Override
      public void ready(final YuiContext Y) {
        Button button1 = Y.newButton(ButtonConfig.create().label("Button1"));
        YButton button2 = new YButton(Y, "button2");
        Slider slider1 = Y.newSlider(SliderConfig.create().axis("x").min(1).max(5).value(3).length(200)).cast();

        GridPanel panel1 = new GridPanel(Y);

        panel1.addChild("u-1-5", button1);
        panel1.addChild("u-1-5", button2);
View Full Code Here

TOP

Related Classes of org.sgx.yuigwt.yui.widget.slider.Slider

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.