org.gwtbootstrap3.client.ui.Button.addDomHandler()方法的使用及代码示例

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

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

Button.addDomHandler介绍

暂无

代码示例

代码示例来源:origin: kiegroup/appformer

public void init(ColumnFilterEditor presenter) {
  this.presenter = checkNotNull("presenter",
                 presenter);
  initWidget(uiBinder.createAndBindUi(this));
  filterExpandIcon.addDomHandler(new ClickHandler() {
                    public void onClick(ClickEvent event) {
                      onExpandCollapseDetails();
                    }
                  },
                  ClickEvent.getType());
  filterDeleteIcon.addDomHandler(new ClickHandler() {
                    public void onClick(ClickEvent event) {
                      onDeleteFilter();
                    }
                  },
                  ClickEvent.getType());
}

代码示例来源:origin: org.dashbuilder/dashbuilder-displayer-client

public DataSetFilterEditorView() {
  initWidget(uiBinder.createAndBindUi(this));
  filterDeleteIcon.addDomHandler(new ClickHandler() {
    public void onClick(ClickEvent event) {
      onNewFilterClosed(event);
    }
  }, ClickEvent.getType());
}

代码示例来源:origin: kiegroup/appformer

public DataSetFilterEditorView() {
  initWidget(uiBinder.createAndBindUi(this));
  filterDeleteIcon.addDomHandler(new ClickHandler() {
    public void onClick(ClickEvent event) {
      onNewFilterClosed(event);
    }
  }, ClickEvent.getType());
}

代码示例来源:origin: org.dashbuilder/dashbuilder-displayer-client

public void init(ColumnFilterEditor presenter) {
  this.presenter = checkNotNull("presenter",
                 presenter);
  initWidget(uiBinder.createAndBindUi(this));
  filterExpandIcon.addDomHandler(new ClickHandler() {
                    public void onClick(ClickEvent event) {
                      onExpandCollapseDetails();
                    }
                  },
                  ClickEvent.getType());
  filterDeleteIcon.addDomHandler(new ClickHandler() {
                    public void onClick(ClickEvent event) {
                      onDeleteFilter();
                    }
                  },
                  ClickEvent.getType());
}

代码示例来源:origin: kiegroup/appformer

@Override
public EntitiesExplorerView configure(final String entityType,
                   final EntitiesList.View entitiesListView) {
  this.entitiesListView = entitiesListView;
  this.entityType = entityType;
  initWidget(uiBinder.createAndBindUi(this));
  searchBox.addKeyDownHandler(new KeyDownHandler() {
    @Override
    public void onKeyDown(KeyDownEvent event) {
      if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) {
        doSearch(searchBox.getText());
      }
    }
  });
  searchButton.addClickHandler(e -> doSearch(searchBox.getText()));
  clearSearchButton.addDomHandler(new ClickHandler() {
                    @Override
                    public void onClick(final ClickEvent clickEvent) {
                      doSearch("");
                    }
                  },
                  ClickEvent.getType());
  clearSearch();
  return this;
}

代码示例来源:origin: org.uberfire/uberfire-widgets-security-management

@Override
public EntitiesExplorerView configure(final String entityType,
                   final EntitiesList.View entitiesListView) {
  this.entitiesListView = entitiesListView;
  this.entityType = entityType;
  initWidget(uiBinder.createAndBindUi(this));
  searchBox.addKeyDownHandler(new KeyDownHandler() {
    @Override
    public void onKeyDown(KeyDownEvent event) {
      if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) {
        doSearch(searchBox.getText());
      }
    }
  });
  searchButton.addClickHandler(e -> doSearch(searchBox.getText()));
  clearSearchButton.addDomHandler(new ClickHandler() {
                    @Override
                    public void onClick(final ClickEvent clickEvent) {
                      doSearch("");
                    }
                  },
                  ClickEvent.getType());
  clearSearch();
  return this;
}

代码示例来源:origin: org.uberfire/uberfire-simple-docks-client

void createButton() {
  itemButton.setSize(ButtonSize.SMALL);
  itemButton.setType(ButtonType.LINK);
  configureIcon(itemButton,
         getDock().getImageIcon());
  mouseEventHandler = new MouseEventHandler();
  itemButton.addDomHandler(mouseEventHandler,
               MouseOverEvent.getType());
  itemButton.addStyleName(CSS.CSS().sideDockItem());
  itemButton.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
      if (!isOpened()) {
        openAndExecuteExpandCommand();
      } else {
        closeAndExecuteCommand();
      }
    }
  });
}

代码示例来源:origin: kiegroup/appformer

void createButton() {
  itemButton.setSize(ButtonSize.SMALL);
  itemButton.setType(ButtonType.LINK);
  configureIcon(itemButton,
         getDock().getImageIcon());
  mouseEventHandler = new MouseEventHandler();
  itemButton.addDomHandler(mouseEventHandler,
               MouseOverEvent.getType());
  itemButton.addStyleName(CSS.CSS().sideDockItem());
  itemButton.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
      if (!isOpened()) {
        openAndExecuteExpandCommand();
      } else {
        closeAndExecuteCommand();
      }
    }
  });
}

相关文章