| java.lang.Object org.apache.jetspeed.portalsite.impl.MenuElementImpl org.apache.jetspeed.portalsite.impl.MenuImpl
MenuImpl | public class MenuImpl extends MenuElementImpl implements Menu,Cloneable(Code) | | This class implements the portal-site menu elements
constructed and returned to decorators.
author: Randy Watler version: $Id: MenuImpl.java 516448 2007-03-09 16:25:47Z ate $ |
MenuImpl | public MenuImpl(MenuImpl parent, MenuDefinition definition, PortalSiteRequestContextImpl context, Set menus)(Code) | | MenuImpl - request/session context dependent constructor
Parameters: parent - containing menu implementation Parameters: definition - menu definition Parameters: context - request context Parameters: menus - related menu definition names set |
MenuImpl | public MenuImpl(MenuDefinition definition, PortalSiteRequestContextImpl context, Set menus)(Code) | | MenuImpl - request/session context dependent constructor
Parameters: definition - menu definition Parameters: context - request context Parameters: menus - related menu definition names set |
getElementType | public String getElementType()(Code) | | getElementType - get type of menu element
MENU_ELEMENT_TYPE |
getElements | public List getElements()(Code) | | getElements - get ordered list of menu elements that
are members of this menu; possibly contains
options, nested menus, or separators
menu elements list |
getMetadata | public GenericMetadata getMetadata()(Code) | | getMetadata - get generic metadata for menu element
metadata |
getName | public String getName()(Code) | | getName - get name of menu
menu name |
getSelectedElement | public MenuElement getSelectedElement(PortalSiteRequestContext context)(Code) | | getSelectedElement - return selected option or nested
menu within this menu selected by
the specified request context
selected menu element |
getShortTitle | public String getShortTitle()(Code) | | getShortTitle - get default short title for menu element
short title text |
getShortTitle | public String getShortTitle(Locale locale)(Code) | | getShortTitle - get locale specific short title for menu
element from metadata
Parameters: locale - preferred locale short title text |
getSkin | public String getSkin()(Code) | | getSkin - get skin name for menu element
skin name |
getTitle | public String getTitle()(Code) | | getTitle - get default title for menu element
title text |
getTitle | public String getTitle(Locale locale)(Code) | | getTitle - get locale specific title for menu element
from metadata
Parameters: locale - preferred locale title text |
getUrl | public String getUrl()(Code) | | getUrl - get url of top level folder that defined
menu options; only available for menus
defined without multiple options, nested
menus, or separators
folder url |
isElementRelative | public boolean isElementRelative()(Code) | | isElementRelative - get flag that indicates whether any relative paths
dependent on the current page in context were
referenced while constructing menu elements
relative element status |
isEmpty | public boolean isEmpty()(Code) | | isEmpty - get empty state of list of menu elements
menu elements list empty state |
isHidden | public boolean isHidden()(Code) | | isHidden - get hidden state of folder that defined
menu options; only available for menus
defined without multiple options, nested
menus, or separators
hidden state |
isSelected | public boolean isSelected(PortalSiteRequestContext context)(Code) | | isSelected - return true if an option or nested
menu within this menu are selected by
the specified request context
Parameters: context - request context selected state |
|
|