List of usage examples for com.liferay.portal.kernel.servlet.taglib.ui Menu getMenuItems
public List<MenuItem> getMenuItems()
From source file:blade.document.action.displaycontext.BladeActionDisplayContext.java
License:Apache License
/** * This method is for adding context menu in Document Overview screen in both page portlet and admin portlet.<br/> * If you want to see context menu in Documents and Media portlet , you should check "Show Actions" * in portlet configuration//from w w w .j a v a2 s.c om */ public Menu getMenu() throws PortalException { Menu menu = super.getMenu(); if (_showAction()) { JavaScriptMenuItem jsMenuItem = new JavaScriptMenuItem(); jsMenuItem.setLabel("Blade Basic Info"); jsMenuItem.setOnClick(_getOnclick()); menu.getMenuItems().add(jsMenuItem); } return menu; }