Example #1
0
  public ToolbarButton(
      String text, ImageResource leftImage, ToolbarPopupMenu menu, boolean rightAlignMenu) {
    this(text, leftImage, ThemeResources.INSTANCE.menuDownArrow(), null);

    addMenuHandlers(menu, rightAlignMenu);

    addStyleName(styles_.toolbarButtonMenu());
  }
Example #2
0
  public ToolbarButton(ToolbarPopupMenu menu, boolean rightAlignMenu) {
    this(
        (String) null,
        ThemeResources.INSTANCE.menuDownArrow(),
        (ImageResource) null,
        (ClickHandler) null);

    addMenuHandlers(menu, rightAlignMenu);

    addStyleName(styles_.toolbarButtonMenu());
    addStyleName(styles_.toolbarButtonMenuOnly());
  }