Package org.waveprotocol.wave.client.widget.button.text

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


   */
  public static ClickButtonWidget createTextClickButton(String text,
      TextButtonStyle style, String tooltip, ClickButtonListener listener, String debugClassId) {
    ClickButton logic = new ClickButton();
    logic.setClickButtonListener(listener);
    TextButton template = new TextButton(text, style, tooltip);
    if (null != debugClassId) {
//      DebugClassHelper.addDebugClass(template, debugClassId);
    }
    template.setStopPropagation(true);
    template.setUiListener(logic.getUiEventListener());
    logic.setButtonDisplay(template);

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


   */
  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

  @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

  @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

   */
  public static ClickButtonWidget createTextClickButton(String text,
      TextButtonStyle style, String tooltip, ClickButtonListener listener, String debugClassId) {
    ClickButton logic = new ClickButton();
    logic.setClickButtonListener(listener);
    TextButton template = new TextButton(text, style, tooltip);
    if (null != debugClassId) {
//      DebugClassHelper.addDebugClass(template, debugClassId);
    }
    template.setStopPropagation(true);
    template.setUiListener(logic.getUiEventListener());
    logic.setButtonDisplay(template);

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

   */
  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

TOP

Related Classes of org.waveprotocol.wave.client.widget.button.text.TextButton

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.