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

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

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

Button.setDataTargetWidget介绍

暂无

代码示例

代码示例来源:origin: org.gwtbootstrap3/gwtbootstrap3

@Override
public void setDataTargetWidget(final Widget widget) {
  button.setDataTargetWidget(widget);
}

代码示例来源:origin: gwtbootstrap3/gwtbootstrap3

@Override
public void setDataTargetWidget(final Widget widget) {
  button.setDataTargetWidget(widget);
}

代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-patternfly

protected void setupToggle() {
  final Button btnToggle = GWT.create(Button.class);
  btnToggle.removeStyleName("btn-default");
  btnToggle.addStyleName(Styles.NAVBAR_TOGGLE);
  btnToggle.setDataToggle(Toggle.COLLAPSE);
  btnToggle.setDataTargetWidget(navbarCollapse);
  btnToggle.add(createToggleBar());
  btnToggle.add(createToggleBar());
  btnToggle.add(createToggleBar());
  navbarHeader.add(btnToggle);
}

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

protected void setupToggle() {
  final Button btnToggle = GWT.create(Button.class);
  btnToggle.removeStyleName("btn-default");
  btnToggle.addStyleName(Styles.NAVBAR_TOGGLE);
  btnToggle.setDataToggle(Toggle.COLLAPSE);
  btnToggle.setDataTargetWidget(navbarCollapse);
  btnToggle.add(createToggleBar());
  btnToggle.add(createToggleBar());
  btnToggle.add(createToggleBar());
  navbarHeader.add(btnToggle);
}

代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-patternfly

/**
 * Checks whether or not caret should be added/removed
 */
protected void addCaretToText() {
  if (hideOnSingleElement && dropDownMenu.getWidgetCount() == 1) {
    button.setToggleCaret(false);
    button.setDataToggle(null);
    this.removeStyleName("open");
    toggleStyles(true);
  } else if ((dropDownMenu.getWidgetCount() > 1 || hideOnSingleElement == false && dropDownMenu.getWidgetCount() == 1)) {
    button.setToggleCaret(true);
    button.setDataToggle(Toggle.DROPDOWN);
    button.setDataTargetWidget(this);
    toggleStyles(false);
  }
}

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

/**
 * Checks whether or not caret should be added/removed
 */
protected void addCaretToText() {
  if (hideOnSingleElement && dropDownMenu.getWidgetCount() == 1) {
    button.setToggleCaret(false);
    button.setDataToggle(null);
    this.removeStyleName("open");
    toggleStyles(true);
  } else if ((dropDownMenu.getWidgetCount() > 1 || hideOnSingleElement == false && dropDownMenu.getWidgetCount() == 1)) {
    button.setToggleCaret(true);
    button.setDataToggle(Toggle.DROPDOWN);
    button.setDataTargetWidget(this);
    toggleStyles(false);
  }
}

相关文章