示例#1
0
  private void doActions() {
    VerticalPanel actions = new VerticalPanel();
    Image add = GuvnorImages.INSTANCE.NewItem();
    add.setAltText(ConstantsCore.INSTANCE.AssetCategoryEditorAddNewCategory());
    add.setTitle(constants.AddANewCategory());

    add.addClickHandler(
        new ClickHandler() {
          public void onClick(ClickEvent event) {
            doOKClick();
          }
        });

    actions.add(add);
    layout.setWidget(0, 1, actions);
  }
 public Image getIcon() {
   Image image = new Image(DroolsGuvnorImageResources.INSTANCE.modelLarge());
   image.setAltText(ConstantsCore.INSTANCE.Model());
   return image;
 }