Search in sources :

Example 26 with Button

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

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

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

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

Example 30 with Button

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);
}
Also used : Column(org.gwtbootstrap3.client.ui.Column) UiCommandButton(org.ovirt.engine.ui.common.widget.UiCommandButton) 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