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

Examples of com.google.gwt.user.client.ui.ToggleButton


  }

  private ToggleButtonBean targetBean;

  public ToggleButtonBindings(Action source) {
    this(source, new ToggleButton());

    // Action.NAME
    addBinding(Action.NAME, BeanProperty.<Action, String> create(Action.NAME),
        BeanProperty.<ToggleButtonBean, String> create("text"));
  }
View Full Code Here


        pb.setTabIndex(-1);
        return pb;
    }

    private ToggleButton createToggleButton(ImageResource img, String tip) {
        final ToggleButton tb = new ToggleButton(new Image(img));
        tb.addClickHandler(handler);
        tb.setTitle(tip);
        tb.setTabIndex(-1);
        return tb;
    }
View Full Code Here

    timePanel.add(hoursBox);
    timePanel.add(separator);
    timePanel.add(minutesBox);

    ampmButton = new ToggleButton(getStyleTimePickerAM(), getStyleTimePickerPM());
    if (useAMPM) {
      timePanel.add(ampmButton);
      ampmButton.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
View Full Code Here

        pb.setTitle(tip);
        return pb;
    }

    private ToggleButton createToggleButton(ImageResource img, String tip) {
        ToggleButton tb = new ToggleButton(new Image(img));
        tb.addClickHandler(handler);
        tb.setTitle(tip);
        return tb;
    }
View Full Code Here

   
    _view = panel;
  }

  private ToggleButton createButton(final ESearchType type, String label) {
    ToggleButton button = new ToggleButton(label);
    button.addStyleName(_css.SearchTypeButton());
    button.setDown(false);
    button.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent arg0) {
        setEnabledButton(type);
      }
    });
View Full Code Here

  }

  private void setEnabledButton(ESearchType type) {
    for (Map.Entry<ESearchType, ToggleButton> entry : _buttonsByType.entrySet()) {
      ESearchType searchType = entry.getKey();
      ToggleButton button = entry.getValue();
      button.setDown(searchType.equals(type));
    }
    _currentType = type;
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.ToggleButton

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.