Package next.i.view.widgets

Examples of next.i.view.widgets.XSwitch.addValueChangeHandler()


    XFlexTable panel = new XFlexTable();
    panel.setCellSpacing(40);

    final HTML label = new HTML("Switch is OFF");
    XSwitch switchBtn = new XSwitch(true);
    switchBtn.addValueChangeHandler(new ValueChangeHandler<Boolean>() {     
      @Override
      public void onValueChange(ValueChangeEvent<Boolean> e) {
        label.setHTML("Switch is " + (e.getValue()? "ON&nbsp;&nbsp;" : "OFF"));
      }
    });
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.