Search in sources :

Example 41 with Button

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;
}
Also used : Button(org.gwtbootstrap3.client.ui.Button)

Example 42 with 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;
}
Also used : Button(org.gwtbootstrap3.client.ui.Button)

Example 43 with 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;
}
Also used : Button(org.gwtbootstrap3.client.ui.Button)

Example 44 with 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();
        }
    });
}
Also used : ClickHandler(com.google.gwt.event.dom.client.ClickHandler) Button(org.gwtbootstrap3.client.ui.Button) ClickEvent(com.google.gwt.event.dom.client.ClickEvent)

Example 45 with Button

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);
}
Also used : ClickHandler(com.google.gwt.event.dom.client.ClickHandler) Column(org.gwtbootstrap3.client.ui.Column) Button(org.gwtbootstrap3.client.ui.Button) ClickEvent(com.google.gwt.event.dom.client.ClickEvent) Row(org.gwtbootstrap3.client.ui.Row)

Aggregations

Button (org.gwtbootstrap3.client.ui.Button)71 ClickEvent (com.google.gwt.event.dom.client.ClickEvent)33 ClickHandler (com.google.gwt.event.dom.client.ClickHandler)33 FormStylePopup (org.uberfire.ext.widgets.common.client.common.popups.FormStylePopup)14 SmallLabel (org.uberfire.ext.widgets.common.client.common.SmallLabel)12 HTML (com.google.gwt.user.client.ui.HTML)10 ListBox (org.gwtbootstrap3.client.ui.ListBox)10 ChangeEvent (com.google.gwt.event.dom.client.ChangeEvent)9 ChangeHandler (com.google.gwt.event.dom.client.ChangeHandler)9 InfoPopup (org.uberfire.ext.widgets.common.client.common.InfoPopup)9 HorizontalPanel (com.google.gwt.user.client.ui.HorizontalPanel)7 TextBox (org.gwtbootstrap3.client.ui.TextBox)6 MenuItem (org.uberfire.workbench.model.menu.MenuItem)6 IsWidget (com.google.gwt.user.client.ui.IsWidget)5 Widget (com.google.gwt.user.client.ui.Widget)5 AnchorListItem (org.gwtbootstrap3.client.ui.AnchorListItem)5 ButtonGroup (org.gwtbootstrap3.client.ui.ButtonGroup)5 FlexTable (com.google.gwt.user.client.ui.FlexTable)4 ApplicationScoped (javax.enterprise.context.ApplicationScoped)4 Inject (javax.inject.Inject)4