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

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

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

Button.addClickHandler介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

private void f(Button b, final int a) {
  final int[] res = new int[1];
  b.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
      res[0] = a*5;
    }
  });

  // But at this point handler is most likely not executed yet!
  // How should we now res[0] is ready?
}

代码示例来源:origin: stackoverflow.com

Button b1 = new Button("b1");
b1.addClickHandler(new ClickHandler) {
  // call RPC and 
  // session = this.getThreadLocalRequest().getSession();
 // session.setAtribute("b", "1");
}

Button b2 = new Button("b2");
b1.addClickHandler(new ClickHandler) {
  // call RPC and 
  // session = this.getThreadLocalRequest().getSession();
 // session.invalidate(); // kill session
}

代码示例来源:origin: stackoverflow.com

btn.addClickHandler(new ClickHandler() {

代码示例来源:origin: org.drools/drools-wb-dtable-xls-editor-client

public void setPath(final Path path) {
  downloadButton.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(final ClickEvent event) {
      Window.open(getDownloadUrl(path),
            "downloading",
            "resizable=no,scrollbars=yes,status=no");
    }
  });
}

代码示例来源:origin: org.jbpm/jbpm-console-ng-process-runtime-client

private void setOrder( Button button,
            String description,
            final LogOrder logOrder ) {
  button.setText( description );
  button.addClickHandler( new ClickHandler() {
    @Override
    public void onClick( ClickEvent event ) {
      setActiveLogOrderButton( logOrder );
      getInstanceData();
    }
  } );
}

代码示例来源:origin: org.optaplanner/optaplanner-wb-solver-editor-client

@Inject
public TerminationTreeItemContentViewImpl(final Button removeTerminationButton,
                     final DropDownMenu dropdownMenuList,
                     final TranslationService translationService) {
  this.removeTerminationButton = removeTerminationButton;
  this.dropdownMenuList = dropdownMenuList;
  this.translationService = translationService;
  removeTerminationButton.addClickHandler(h -> {
    presenter.removeTreeItem();
  });
  initDropDownList();
}

代码示例来源:origin: org.uberfire/uberfire-commons-editor-client

public VersionMenuDropDownButtonViewImpl() {
  initWidget(uiBinder.createAndBindUi(this));
  button.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
    }
  });
}

代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-project-editor-client

public DependencyListWidget() {
  initWidget( uiBinder.createAndBindUi( this ) );
  search.addClickHandler( new ClickHandler() {
    @Override
    public void onClick( ClickEvent event ) {
      search();
    }
  } );
}

代码示例来源:origin: org.drools/drools-wb-guided-rule-editor-client

Button makeExpressionEditorButton(final HasConstraints hasConstraints,
                 final FormStylePopup popup) {
  final Button button = makeExpressionEditorButton();
  button.addClickHandler(onExpressionEditorButtonClick(hasConstraints, popup));
  return button;
}

代码示例来源:origin: org.uberfire/uberfire-commons-editor-client

public SaveButton() {
  button.setText(CommonConstants.INSTANCE.Save());
  button.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
      if (command != null) {
        command.execute();
      }
    }
  });
  button.setSize(ButtonSize.SMALL);
}

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

@UiConstructor
public MapEditorView() {
  initWidget(Binder.BINDER.createAndBindUi(this));
  addButton.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(final ClickEvent event) {
      presenter.addEntry();
    }
  });
}

代码示例来源:origin: org.jbpm/jbpm-console-ng-business-domain-client

public void setupMenuButton() {
  menuNewButton.setSize(ButtonSize.SMALL);
  menuNewButton.setText(Constants.INSTANCE.New_Deployment_Unit());
  menuNewButton.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent clickEvent) {
      supportsNewDeploymentUnit.onNewDeploymentUnit();
    }
  });
}

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

@Override
public DataSetPanel.View enableActionButton(final String buttonTitle, final ClickHandler clickHandler) {
  actionButton.setText(buttonTitle);
  actionButton.setEnabled(true);
  if (actionButtonHandlerRegistration != null) {
    actionButtonHandlerRegistration.removeHandler();
  }
  actionButtonHandlerRegistration = actionButton.addClickHandler(clickHandler);
  return this;
}

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

protected void addResetButtom(final int left,
               final int top,
               VerticalPanel popupContent) {
  if (gridPreferences != null) {
    Button resetButton = GWT.create(Button.class);
    resetButton.setText(CommonConstants.INSTANCE.Reset());
    resetButton.setSize(ButtonSize.EXTRA_SMALL);
    resetButton.addClickHandler(event -> resetTableColumns(left,
                                top));
    popupContent.add(resetButton);
  }
}

代码示例来源:origin: org.jbpm/jbpm-console-ng-generic-client

@Before
public void setup() {
  when(menuResetTabsButton.addClickHandler(any(ClickHandler.class))).thenAnswer(new Answer() {
    public Object answer(InvocationOnMock aInvocation) throws Throwable {
      clickHandler = (ClickHandler) aInvocation.getArguments()[0];
      return null;
    }
  });
  restoreDefaultFiltersMenuBuilder = new RestoreDefaultFiltersMenuBuilder(supportsRestoreDefaultFilters);
}

代码示例来源:origin: org.jbpm/jbpm-wb-common-client

@Before
public void setup() {
  when(menuResetTabsButton.addClickHandler(any(ClickHandler.class))).thenAnswer(new Answer() {
    public Object answer(InvocationOnMock aInvocation) throws Throwable {
      clickHandler = (ClickHandler) aInvocation.getArguments()[0];
      return null;
    }
  });
  restoreDefaultFiltersMenuBuilder = new RestoreDefaultFiltersMenuBuilder(supportsRestoreDefaultFilters);
}

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

public void setupMenuButton() {
  menuRefreshButton.setIcon(IconType.REFRESH);
  menuRefreshButton.setSize(ButtonSize.SMALL);
  menuRefreshButton.setTitle(CommonConstants.INSTANCE.Refresh());
  menuRefreshButton.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent clickEvent) {
      supportsRefresh.onRefresh();
    }
  });
}

代码示例来源:origin: stackoverflow.com

Button b = new Button(name);
 b.addClickHandler(handler);
 b.setShowHover(false);
 b.setShowRollOver(false);
 String css = "nt-multibutton-button";
 b.setStylePrimaryName(css);
 b.setBaseStyle(css);
 b.setStyleName(css);
 b.setAlign(Alignment.LEFT);
 content.add(b);

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-bpmn-client

@PostConstruct
public void init() {
  role.setRegExp(StringUtils.ALPHA_NUM_REGEXP, INVALID_CHARACTERS_MESSAGE, INVALID_CHARACTERS_MESSAGE);
  role.addChangeHandler((e) -> handleValueChanged());
  cardinality.addChangeHandler((e) -> handleValueChanged());
  cardinality.addFocusHandler((e) -> handleFocus());
  deleteButton.setIcon(IconType.TRASH);
  deleteButton.addClickHandler((e) -> handleDeleteButton());
  //show the widget that is hidden on the template
  tableRow.hidden = false;
}

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

private void createButtom() {
  itemButton.addStyleName(CSS.CSS().singleDockItem());
  itemButton.addStyleName(CSS.CSS().sideDockItem());
  itemButton.setIcon(IconType.CHEVRON_RIGHT);
  itemButton.setIconFixedWidth(true);
  itemButton.setSize(ButtonSize.SMALL);
  itemButton.setType(ButtonType.LINK);
  itemButton.addClickHandler(event -> openAndExecuteExpandCommand());
}

相关文章