Examples of TextButton


Examples of org.waveprotocol.wave.client.widget.button.text.TextButton

   */
  public static ToggleButtonWidget createTextToggleButton(String text,
      TextButtonStyle style, String tooltip, ToggleButtonListener listener) {
    ToggleButton logic = new ToggleButton();
    logic.setToggleButtonListener(listener);
    TextButton template = new TextButton(text, style, tooltip);
    template.setStopPropagation(true);
    template.setUiListener(logic.getUiEventListener());
    logic.setButtonDisplay(template);

    return new ToggleButtonWidget(logic.getController(), template);
  }
View Full Code Here

Examples of org.waveprotocol.wave.client.widget.button.text.TextButton

  @Override
  protected Widget createGwtWidget(Renderable element) {
    ClickButton buttonLogic = new ClickButton();
    element.setProperty(Button.BUTTON_LOGIC_PROP, buttonLogic);

    TextButton template = new TextButton("", TextButtonStyle.REGULAR_BUTTON, "");
    template.setUiListener(buttonLogic.getUiEventListener());
    buttonLogic.setButtonDisplay(template);
    // Apply some extra css to make it render correctly in the editor.
    template.addStyleName(css.button());
    return template;
  }
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.