Examples of XCheckBox


Examples of net.xoetrope.html.XCheckbox

        radio.addEvent( radio.getHTMLElement().getId(), "alert", "ClICk");
    }
       
    public void addCheck() {
        XPanel panel = (XPanel)findComponent( obj, "panel" );
        XCheckbox check = new XCheckbox( "check" );
        XLabel check_txt = new XLabel( "New Check Box", "check_txt" );
        panel.add( check.getHTMLElement() );
        panel.add( check_txt.getHTMLElement() );
    }
View Full Code Here

Examples of next.i.view.widgets.XCheckbox

  public IsWidget getViewContent() {

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

    XCheckbox check0 = new XCheckbox("Red", "Red");
    XCheckbox check1 = new XCheckbox("Green", "Green");
    XCheckbox check2 = new XCheckbox("Blue", "Blue");

    final XCheckboxGroup groupVertical = new XCheckboxGroup(true);
    groupVertical.add(check0, check1, check2);

    XCheckbox checkA = new XCheckbox("Red", "Red");
    XCheckbox checkB = new XCheckbox("Green", "Green");
    XCheckbox checkC = new XCheckbox("Blue", "Blue");
    final XCheckboxGroup groupHorizontal = new XCheckboxGroup(false);
    groupHorizontal.add(checkA, checkB, checkC);

    final XLabel label1 = new XLabel("Favorite color", XLabelType.Header);
    final XLabel label2 = new XLabel("Favorite color", XLabelType.Header);

    panel.addWidgets(label2, groupHorizontal, label1, groupVertical, new HTML(" "));

    check0.setValue(true);
    check1.setValue(true);
    checkA.setValue(true);
    checkC.setValue(true);
   
    groupVertical.addSelectionChangedHandler(new SelectionChangedHandler() {
      public void onSelectionChanged(SelectionChangedEvent e) {
        String s = "Favorite color: ";
        for (XCheckbox c : groupVertical.getCheckedWidgets()) {
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.