setHeight("22");
}
public void addItem(Linker linker, GWTJahiaToolbarItem gwtToolbarItem) {
if (gwtToolbarItem instanceof GWTJahiaToolbarMenu) {
GWTJahiaToolbarMenu gwtToolbarMenu = (GWTJahiaToolbarMenu) gwtToolbarItem;
ActionToolbarMenu menu = new ActionToolbarMenu(linker);
menu.setActionItems(actionItems);
for (GWTJahiaToolbarItem subItem : gwtToolbarMenu.getGwtToolbarItems()) {
menu.addItem(subItem);
}
Button menuToolItem = new Button(gwtToolbarMenu.getItemsGroupTitle());
menuToolItem.setBorders(false);
String minIconStyle = gwtToolbarMenu.getIcon();
if (minIconStyle != null) {
menuToolItem.setIcon(ToolbarIconProvider.getInstance().getIcon(gwtToolbarMenu.getIcon()));
}
menuToolItem.setMenu(menu);
addTool(menuToolItem);
} else {
final ActionItem actionItem = gwtToolbarItem.getActionItem();