com.google.gwt.user.client.ui.Button.addClickListener()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(74)

本文整理了Java中com.google.gwt.user.client.ui.Button.addClickListener()方法的一些代码示例,展示了Button.addClickListener()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.addClickListener()方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Button
类名称:Button
方法名:addClickListener

Button.addClickListener介绍

暂无

代码示例

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Creates a button with the given HTML caption and click listener.
 *
 * @param html the HTML caption
 * @param listener the click listener
 * @deprecated Use {@link Button#Button(String, ClickHandler)} instead
 */
@Deprecated
public Button(@IsSafeHtml String html, ClickListener listener) {
 this(html);
 addClickListener(listener);
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Creates a button with the given HTML caption and click listener.
 * 
 * @param html the HTML caption
 * @param listener the click listener
 * @deprecated Use {@link Button#Button(String, ClickHandler)} instead
 */
@Deprecated
public Button(String html, ClickListener listener) {
 this(html);
 addClickListener(listener);
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Creates a button with the given HTML caption and click listener.
 * 
 * @param html the HTML caption
 * @param listener the click listener
 * @deprecated Use {@link Button#Button(String, ClickHandler)} instead
 */
@Deprecated
public Button(String html, ClickListener listener) {
 this(html);
 addClickListener(listener);
}

代码示例来源:origin: org.xwiki.platform/xwiki-platform-gwt-api

cancel.addClickListener(cancelListener);
cancel.addStyleName(getCSSName(previousName));
cancel.addStyleName(app.getCSSPrefix() + "-" + previousName);
cancel.addClickListener(cancelListener);
cancel.addStyleName(getCSSName(cancelName));
cancel.addStyleName(app.getCSSPrefix() + "-" + cancelName);
button.addClickListener(buttonListener);
button.addStyleName(getCSSName(nextName));
button.addStyleName(app.getCSSPrefix() + "-" + nextName);

代码示例来源:origin: org.xwiki.platform/xwiki-platform-gwt-api

public ModalMessageDialog(XWikiGWTApp app, String title, String msg, String styleName){
    super(false, true);
    this.app = app;
    this.addStyleName("dialog-message");
    this.setText(title);
    if (styleName!=null) {
      ScrollPanel scroll = new ScrollPanel();
      scroll.add(new Label(msg));
      scroll.addStyleName(styleName);
      this.add(scroll);
    } else {
      this.add(new Label(msg));
    }
    Button closeButton = new Button(this.app.getTranslation("Ok"));
    closeButton.addClickListener(new ClickListener(){
      @Override
    public void onClick(Widget arg0)
      {
        ModalMessageDialog.this.hide();
      }
    });
    this.add(closeButton);
    this.show();
  }
}

代码示例来源:origin: pentaho/data-access

panel.add( uploadSubmitButton );
uploadSubmitButton.addClickListener( new ClickListener() {
 public void onClick( Widget sender ) {
  uploadForm.submit();

相关文章