use of org.gwtbootstrap3.client.ui.Button in project kie-wb-common by kiegroup.
the class ImportRepositoryPopUpView 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 EditContributorsPopUpView 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 AddProjectPopUpView 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 CrudComponentViewImpl method showCreateButton.
@Override
public void showCreateButton() {
final Button createButton = new Button(translationService.getTranslation(CrudComponentConstants.CrudComponentViewImplNewInstanceButton));
createButton.setType(ButtonType.PRIMARY);
createButton.setIcon(IconType.PLUS);
table.getLeftToolbar().add(createButton);
createButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(final ClickEvent clickEvent) {
presenter.createInstance();
}
});
}
use of org.gwtbootstrap3.client.ui.Button in project kie-wb-common by kiegroup.
the class MultipleValuePairEditorViewImpl method initAddItemPanel.
private void initAddItemPanel() {
Row addItemRow = new Row();
addItemPanel.add(addItemRow);
Column addItemEditorColumn = new Column(ColumnSize.MD_10);
// addItemContainer.setVerticalAlignment( HasVerticalAlignment.ALIGN_BOTTOM );
addItemEditor = presenter.createValuePairEditor(valuePairDefinition);
addItemEditor.showValuePairName(false);
addItemEditorColumn.add(addItemEditor);
addItemRow.add(addItemEditorColumn);
Column addItemButtonColumn = new Column(ColumnSize.MD_2);
Button addItemButton = new Button(Constants.INSTANCE.advanced_domain_multiple_value_pair_editor_action_add());
addItemButton.setType(ButtonType.PRIMARY);
addItemButton.setIcon(IconType.PLUS);
addItemButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
presenter.onAddItem();
}
});
addItemButtonColumn.add(addItemButton);
addItemRow.add(addItemButtonColumn);
addItemPanel.add(addItemRow);
}
Aggregations