Examples of XSwitch


Examples of next.i.view.widgets.XSwitch

  public IsWidget getViewContent() {
    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

Examples of next.i.view.widgets.XSwitch

  public IsWidget getViewContent() {

    CellData data = new CellData();
    data.setWestWidgets(new Image("images/icons/list00.png"));
    data.setTextWidgets(new Label("Ariplane Mode"));
    data.setEastWidgets(new XSwitch(true));
    XTableCell c0 = new XTableCell(data);

    data = new CellData();
    data.setWestWidgets(new Image("images/icons/list01.png"));
    data.setTextWidgets(new Label("WI-FI"));
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.