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);
}
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;
}
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;
}
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;
}
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;
}
Aggregations