@Override
public List<NavigationMenuItem> getMenuItems() {
List<NavigationMenuItem> menu = new ArrayList<NavigationMenuItem>();
DcWebObject wo = getItem();
String itemBeanName = wo.isChild() ? "webChildObject" : "webObject";
menu.add(getMenuItem(DcResources.getText("lblBack"), "#{" + (wo.isChild() ? "childDetails" : "itemDetails") + ".back}", null));
// SHOW MENU
NavigationMenuItem show = getMenuItem(DcResources.getText("lblShow"), null, null);
if (wo.isInformationTabVisible())
show.add(getMenuItem(DcResources.getText("lblInformation"), "#{" + itemBeanName + ".switchToInfoTab}", "information.png"));
if (wo.isTechnicalTabVisible())
show.add(getMenuItem(DcResources.getText("lblTechnicalInfo"), "#{" + itemBeanName + ".switchToTechTab}", "informationtechnical.png"));
if (wo.isChildrenTabVisible())
show.add(getMenuItem(wo.getChildrenLabel(), "#{" + itemBeanName + ".switchToChildTab}", "modules/" + DcModules.get(wo.getModule()).getChild().getName() + "16.png"));
menu.add(show);
// PICTURE MENU
if (wo.isPictureTabVisible()) {
NavigationMenuItem pics = getMenuItem(DcResources.getText("lblPictures"), null, null);
pics.add(getMenuItem(DcResources.getText("lblShow"), "#{itemDetailsImages.open}" ,"picture.png"));
//if (getUser().isEditingAllowed(DcModules.get(wo.getModule())))
// pics.add(getMenuItem("Edit", "#{" + itemBeanName + ".switchToPicTab}", "picture.png"));
menu.add(pics);
}
// EDIT MENU
if (getUser().isEditingAllowed(DcModules.get(wo.getModule()))) {
NavigationMenuItem edit = getMenuItem(DcResources.getText("lblEdit"), null, null);
edit.add(getMenuItem(DcResources.getText("lblSave"), "#{" + (wo.isChild() ? "childDetails" : "itemDetails") + ".save}", "save.png"));
menu.add(edit);
}