Search in sources :

Example 86 with Image

use of com.google.gwt.user.client.ui.Image 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)

Example 87 with Image

use of com.google.gwt.user.client.ui.Image in project drools-wb by kiegroup.

the class GuidedRuleEditorImages508 method AddFieldToFact.

public Image AddFieldToFact() {
    Image image = new Image(GuidedRuleEditorResources.INSTANCE.images().addFieldToFact());
    image.setAltText(GuidedRuleEditorResources.CONSTANTS.AddAFieldToThisExpectation());
    return image;
}
Also used : Image(com.google.gwt.user.client.ui.Image)

Example 88 with Image

use of com.google.gwt.user.client.ui.Image in project drools-wb by kiegroup.

the class GuidedRuleEditorImages508 method NewItem.

public Image NewItem() {
    Image image = new Image(GuidedRuleEditorResources.INSTANCE.itemImages().newItem());
    image.setAltText(GuidedRuleEditorResources.CONSTANTS.NewItem());
    return image;
}
Also used : Image(com.google.gwt.user.client.ui.Image)

Example 89 with Image

use of com.google.gwt.user.client.ui.Image in project drools-wb by kiegroup.

the class GuidedRuleEditorImages508 method Configure.

public Image Configure() {
    Image image = new Image(GuidedRuleEditorResources.INSTANCE.images().config());
    image.setAltText(GuidedRuleEditorResources.CONSTANTS.Config());
    return image;
}
Also used : Image(com.google.gwt.user.client.ui.Image)

Example 90 with Image

use of com.google.gwt.user.client.ui.Image in project drools-wb by kiegroup.

the class GuidedRuleEditorImages508 method WarningSmall.

public Image WarningSmall() {
    Image image = new Image(GuidedRuleEditorResources.INSTANCE.images().warning());
    image.setAltText(GuidedRuleEditorResources.CONSTANTS.Warning());
    return image;
}
Also used : Image(com.google.gwt.user.client.ui.Image)

Aggregations

Image (com.google.gwt.user.client.ui.Image)98 ClickEvent (com.google.gwt.event.dom.client.ClickEvent)28 ClickHandler (com.google.gwt.event.dom.client.ClickHandler)28 HorizontalPanel (com.google.gwt.user.client.ui.HorizontalPanel)15 Test (org.junit.Test)13 FlexTable (com.google.gwt.user.client.ui.FlexTable)12 HTML (com.google.gwt.user.client.ui.HTML)10 Element (com.google.gwt.dom.client.Element)8 Label (com.google.gwt.user.client.ui.Label)8 ImageResource2x (org.rstudio.core.client.resources.ImageResource2x)7 SmallLabel (org.uberfire.ext.widgets.common.client.common.SmallLabel)7 ImageResource (com.google.gwt.resources.client.ImageResource)6 Widget (com.google.gwt.user.client.ui.Widget)6 FlowPanel (com.google.gwt.user.client.ui.FlowPanel)5 Style (com.google.gwt.dom.client.Style)4 Anchor (com.google.gwt.user.client.ui.Anchor)4 VerticalPanel (com.google.gwt.user.client.ui.VerticalPanel)4 ChangeEvent (com.google.gwt.event.dom.client.ChangeEvent)3 ChangeHandler (com.google.gwt.event.dom.client.ChangeHandler)3 ValueChangeEvent (com.google.gwt.event.logical.shared.ValueChangeEvent)3