use of org.gwtbootstrap3.client.ui.Button in project kie-wb-common by kiegroup.
the class DeleteOrganizationalUnitPopUpView method button.
private Button button(final String text, final Command command, final ButtonType type) {
Button button = new Button(text, event -> command.execute());
button.setType(type);
return button;
}
use of org.gwtbootstrap3.client.ui.Button in project kie-wb-common by kiegroup.
the class OrganizationalUnitPopUpView method button.
private Button button(final String text, final Command command, final ButtonType type) {
Button button = new Button(text, event -> command.execute());
button.setType(type);
return button;
}
use of org.gwtbootstrap3.client.ui.Button in project kie-wb-common by kiegroup.
the class PopUpUtils method button.
public static Button button(final String text, final Command command, final ButtonType type) {
Button button = new Button(text, event -> command.execute());
button.setType(type);
return button;
}
use of org.gwtbootstrap3.client.ui.Button in project ovirt-engine by oVirt.
the class TagsView method createAddButton.
private Button createAddButton(final TagModel model) {
Button result = new Button(constants.newTag());
result.addClickHandler(e -> {
tagModelProvider.getSelectionModel().setSelected(model, true);
tagModelProvider.getModel().executeCommand(tagModelProvider.getModel().getNewCommand());
});
return result;
}
use of org.gwtbootstrap3.client.ui.Button in project ovirt-engine by oVirt.
the class GuidePopupView method addButton.
private void addButton(final UICommand command, Div buttonsPanel, IconType buttonImage) {
UiCommandButton button = new UiCommandButton(command.getTitle(), buttonImage);
button.setCommand(command);
// $NON-NLS-1$
button.getElement().setId("UiCommandButton_guideButton_" + command.getTitle());
button.setCustomContentStyle(style.actionButtonContent());
button.addStyleName(style.actionButton());
button.addClickHandler(event -> command.execute());
Row row = new Row();
Column column = new Column(ColumnSize.SM_12);
column.add(button);
row.add(column);
buttonsPanel.add(row);
}
Aggregations