Search in sources :

Example 11 with DirtyableHorizontalPane

use of org.uberfire.ext.widgets.common.client.common.DirtyableHorizontalPane in project drools-wb by kiegroup.

the class RuleModeller method addActionsButtonsToLayout.

private void addActionsButtonsToLayout(String title, ClickHandler addBelowListener, ClickHandler moveDownListener, ClickHandler moveUpListener) {
    final DirtyableHorizontalPane hp = new DirtyableHorizontalPane();
    Image addPattern = CommonAltedImages.INSTANCE.NewItemBelow();
    addPattern.setTitle(title);
    addPattern.addClickHandler(addBelowListener);
    Image moveDown = CommonAltedImages.INSTANCE.MoveDown();
    moveDown.setTitle(GuidedRuleEditorResources.CONSTANTS.MoveDown());
    moveDown.addClickHandler(moveDownListener);
    Image moveUp = CommonAltedImages.INSTANCE.MoveUp();
    moveUp.setTitle(GuidedRuleEditorResources.CONSTANTS.MoveUp());
    moveUp.addClickHandler(moveUpListener);
    hp.add(addPattern);
    hp.add(moveDown);
    hp.add(moveUp);
    layout.setWidget(currentLayoutRow, 4, hp);
    layout.getFlexCellFormatter().setHorizontalAlignment(currentLayoutRow, 4, HasHorizontalAlignment.ALIGN_CENTER);
    layout.getFlexCellFormatter().setVerticalAlignment(currentLayoutRow, 4, HasVerticalAlignment.ALIGN_MIDDLE);
}
Also used : DirtyableHorizontalPane(org.uberfire.ext.widgets.common.client.common.DirtyableHorizontalPane) Image(com.google.gwt.user.client.ui.Image)

Aggregations

DirtyableHorizontalPane (org.uberfire.ext.widgets.common.client.common.DirtyableHorizontalPane)11 RuleModellerWidget (org.drools.workbench.screens.guided.rule.client.widget.RuleModellerWidget)4 ClickEvent (com.google.gwt.event.dom.client.ClickEvent)3 ClickHandler (com.google.gwt.event.dom.client.ClickHandler)3 Image (com.google.gwt.user.client.ui.Image)3 Widget (com.google.gwt.user.client.ui.Widget)3 IsWidget (com.google.gwt.user.client.ui.IsWidget)2 DirtyableVerticalPane (org.uberfire.ext.widgets.common.client.common.DirtyableVerticalPane)2 ChangeEvent (com.google.gwt.event.dom.client.ChangeEvent)1 ChangeHandler (com.google.gwt.event.dom.client.ChangeHandler)1 ValueChangeEvent (com.google.gwt.event.logical.shared.ValueChangeEvent)1 ValueChangeHandler (com.google.gwt.event.logical.shared.ValueChangeHandler)1 HTML (com.google.gwt.user.client.ui.HTML)1 Date (java.util.Date)1 IAction (org.drools.workbench.models.datamodel.rule.IAction)1 IPattern (org.drools.workbench.models.datamodel.rule.IPattern)1 ListBox (org.gwtbootstrap3.client.ui.ListBox)1 TextBox (org.gwtbootstrap3.client.ui.TextBox)1 DatePicker (org.uberfire.ext.widgets.common.client.common.DatePicker)1 InfoPopup (org.uberfire.ext.widgets.common.client.common.InfoPopup)1