Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.CheckBox.addClickHandler()


      cb.setFormValue(tagDetails.getId()); //store the id in the checkbox value
      checkboxes.add(cb); // keep track for selecting all|none to delete
      cb.setStyleName(style.checkbox());
     
      // if a checkbox is checked, deselect the master checkbox
      cb.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
          resetRightPane();
          uncheckMasterCheckBox();
          reportSelectedTagDetails();
View Full Code Here


          cb.setFormValue(zoneDetails.getId()); //store the id in the checkbox value
          checkboxes.add(cb); // keep track for selecting all|none to delete
          cb.setStyleName(style.checkbox());

          // if a checkbox is checked, deselect the master checkbox
          cb.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
              uncheckMasterCheckBox();
            }
          });
View Full Code Here

        cb.setFormValue(tagDetails.getId()); //store the id in the checkbox value
        checkboxes.add(cb); // keep track for selecting all|none to delete
        cb.setStyleName(style.checkbox());
       
        // if a checkbox is checked, deselect the master checkbox
        cb.addClickHandler(new ClickHandler() {
          @Override
          public void onClick(ClickEvent event) {
            uncheckMasterCheckBox();
          }
        });
View Full Code Here

          cb.setFormValue(gpsTrace.getId()); //store the id in the checkbox value
          checkboxes.add(cb); // keep track for selecting all|none to delete
          cb.setStyleName(style.checkbox());

          // if a checkbox is checked, deselect the master checkbox
          cb.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
              uncheckMasterCheckBox();
            }
          });
View Full Code Here

    int index = 0;
    for (String dish : dishes) {
      CheckBox cb = new CheckBox();
      final String dishCopy = dish;
      cb.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
          Window.alert("Your order of " + dishCopy + " will be right up.");
        }
      });
      ft.setWidget(index, 0, cb);
View Full Code Here

    for(int i = 0; i < table.getColumnLayout().getTotalColumnCount(); ++i) {
      final CheckBox checkbox = new CheckBox(String.valueOf(i));
      checkbox.setValue(true);
      hpanel.add(checkbox);
      final int ii = i;
      checkbox.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
          table.show(ii, checkbox.getValue());
          table.update();
        }
      });
View Full Code Here

        } else if(widget instanceof TextBox) {
          row.setValue(8, ((TextBox)widget).getText());
        }
      }
    });
    checkAll.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        for(int i = 0; i < rows.length; ++i) rows[i].setValue(0, new Boolean(checkAll.getValue()));
        table.update();
      }
    });
View Full Code Here

  protected void addNotifyButton(final AccountProjectWatch.NotifyType type,
      final AccountProjectWatchInfo info, final int row, final int col) {
    final CheckBox cbox = new CheckBox();

    cbox.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(final ClickEvent event) {
        final boolean oldVal = info.getWatch().isNotify(type);
        info.getWatch().setNotify(type, cbox.getValue());
        cbox.setEnabled(false);
View Full Code Here

            VerticalPanel errorDetails = new VerticalPanel();
            errorDetails.add(new Label("" + Util.getSimpleName(paintable)
                    + " inside " + Util.getSimpleName(layout)));
            final CheckBox emphasisInUi = new CheckBox(
                    "Emphasize components parent in UI (the actual component is not visible)");
            emphasisInUi.addClickHandler(new ClickHandler() {
                public void onClick(ClickEvent event) {
                    if (paintable != null) {
                        Element element2 = ((Widget) layout).getElement();
                        Widget.setStyleName(element2, "invalidlayout",
                                emphasisInUi.getValue());
View Full Code Here

        if (valueMap.containsKey("widthMsg")) {
            errorDetails.add(new Label("Width problem: "
                    + valueMap.getString("widthMsg")));
        }
        final CheckBox emphasisInUi = new CheckBox("Emphasize component in UI");
        emphasisInUi.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                if (paintable != null) {
                    Element element2 = ((Widget) paintable).getElement();
                    Widget.setStyleName(element2, "invalidlayout",
                            emphasisInUi.getValue());
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.