Package org.sgx.yuigwt.yui.widget.dial

Examples of org.sgx.yuigwt.yui.widget.dial.Dial


public void test(final Node parent) {
YUI.Use(new String[]{"dial", "console"}, new YUICallback() {

  @Override
  public void ready(final YuiContext Y) {
    Dial dial = Y.newDial(DialConfig.create()
      .centerButtonDiameter(2)
      .min(-100)
      .max(100)
      .stepsPerRevolution(10)
    );
    final Console console = Y.newConsole().render().cast();
    dial.on("valueChange", new EventCallback<WidgetEvent>() {
      @Override
      public void call(WidgetEvent e) {
        console.log("valuechange : "+e.newValInt());
      }
    });
    dial.render(parent);
  }
});
}
View Full Code Here

TOP

Related Classes of org.sgx.yuigwt.yui.widget.dial.Dial

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.