|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jetspeed.portalsite.impl.MenuElementImpl
org.apache.jetspeed.portalsite.impl.MenuImpl
This class implements the portal-site menu elements constructed and returned to decorators.
| Field Summary | |
private org.apache.jetspeed.om.folder.MenuDefinition |
definition
definition - menu definition |
private boolean |
elementRelative
elementRelative - flag that indicates whether any relative paths dependent on the current page in context were referenced while constructing menu elements: requires request, not session, caching |
private List |
elements
elements - ordered list of menu elements that make up this instaniated menu |
| Fields inherited from class org.apache.jetspeed.portalsite.impl.MenuElementImpl |
|
| Fields inherited from interface org.apache.jetspeed.portalsite.MenuElement |
MENU_ELEMENT_TYPE, OPTION_ELEMENT_TYPE, SEPARATOR_ELEMENT_TYPE |
| Constructor Summary | |
MenuImpl(org.apache.jetspeed.om.folder.MenuDefinition definition,
PortalSiteRequestContextImpl context,
Set menus)
MenuImpl - request/session context dependent constructor |
|
MenuImpl(MenuImpl parent,
org.apache.jetspeed.om.folder.MenuDefinition definition,
PortalSiteRequestContextImpl context,
Set menus)
MenuImpl - request/session context dependent constructor |
|
| Method Summary | |
private void |
appendMenuElement(MenuElementImpl appendMenuElement,
List menuElements)
appendMenuElement - append to ordered list of unique menu option/menu elements |
private void |
appendMenuElementProxies(org.apache.jetspeed.page.document.Node pathProxy,
List elementProxies)
appendMenuElementProxies - append to ordered list of unique menu element proxies |
private void |
appendMenuElements(List appendMenuElements,
List menuElements)
appendMenuElements - append to ordered list of unique menu option/menu elements |
Object |
clone()
clone - clone this instance |
private List |
constructMenuElements(PortalSiteRequestContextImpl context,
SiteView view,
String options,
List overrideElementProxies,
int depth,
boolean paths,
boolean regexp,
String locatorName,
String order)
constructMenuElements - construct ordered list of menu elements in context/site view using specified element selection parameters; also sets up the elementRelative flag while constructing the menu elements |
List |
getElements()
getElements - get ordered list of menu elements that are members of this menu; possibly contains options, nested menus, or separators |
String |
getElementType()
getElementType - get type of menu element |
org.apache.jetspeed.om.common.GenericMetadata |
getMetadata()
getMetadata - get generic metadata for menu element |
String |
getName()
getName - get name of menu |
org.apache.jetspeed.portalsite.MenuElement |
getSelectedElement(org.apache.jetspeed.portalsite.PortalSiteRequestContext context)
getSelectedElement - return selected option or nested menu within this menu selected by the specified request context |
String |
getShortTitle()
getShortTitle - get default short title for menu element |
String |
getShortTitle(Locale locale)
getShortTitle - get locale specific short title for menu element from metadata |
String |
getSkin()
getSkin - get skin name for menu element |
String |
getTitle()
getTitle - get default title for menu element |
String |
getTitle(Locale locale)
getTitle - get locale specific title for menu element from metadata |
String |
getUrl()
getUrl - get url of top level folder that defined menu options; only available for menus defined without multiple options, nested menus, or separators |
boolean |
isElementRelative()
isElementRelative - get flag that indicates whether any relative paths dependent on the current page in context were referenced while constructing menu elements |
boolean |
isEmpty()
isEmpty - get empty state of list of menu elements |
boolean |
isHidden()
isHidden - get hidden state of folder that defined menu options; only available for menus defined without multiple options, nested menus, or separators |
boolean |
isSelected(org.apache.jetspeed.portalsite.PortalSiteRequestContext context)
isSelected - return true if an option or nested menu within this menu are selected by the specified request context |
private static String |
orderRegexpPattern(String regexp)
orderRegexpPattern - tests for and converts simple order wildcard and character class regular exressions to perl5/standard java pattern syntax |
private void |
removeMenuElements(List removeMenuElements,
List menuElements)
removeMenuElements - remove from ordered list of unique menu option/menu elements |
| Methods inherited from class org.apache.jetspeed.portalsite.impl.MenuElementImpl |
equals, getNode, getParentMenu, setNode, setParentMenu |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.jetspeed.portalsite.MenuElement |
getParentMenu |
| Field Detail |
private org.apache.jetspeed.om.folder.MenuDefinition definition
private List elements
private boolean elementRelative
| Constructor Detail |
public MenuImpl(MenuImpl parent,
org.apache.jetspeed.om.folder.MenuDefinition definition,
PortalSiteRequestContextImpl context,
Set menus)
parent - containing menu implementationdefinition - menu definitioncontext - request contextmenus - related menu definition names set
public MenuImpl(org.apache.jetspeed.om.folder.MenuDefinition definition,
PortalSiteRequestContextImpl context,
Set menus)
definition - menu definitioncontext - request contextmenus - related menu definition names set| Method Detail |
private void appendMenuElement(MenuElementImpl appendMenuElement,
List menuElements)
appendMenuElement - option/menu element to appendmenuElements - option/menu element list
private void appendMenuElements(List appendMenuElements,
List menuElements)
appendMenuElements - option/menu element list to appendmenuElements - option/menu element list
private void removeMenuElements(List removeMenuElements,
List menuElements)
removeMenuElements - option/menu element list to removemenuElements - option/menu element list
private List constructMenuElements(PortalSiteRequestContextImpl context,
SiteView view,
String options,
List overrideElementProxies,
int depth,
boolean paths,
boolean regexp,
String locatorName,
String order)
context - request contextview - context site viewoptions - option paths specificationoverrideElementProxies - override menu element node proxiesdepth - inclusion depthpaths - paths elements flagregexp - regexp flaglocatorName - profile locator nameorder - ordering patterns list
private void appendMenuElementProxies(org.apache.jetspeed.page.document.Node pathProxy,
List elementProxies)
pathProxy - menu element page, folder, or link proxy at pathelementProxies - element proxies list
public Object clone()
throws CloneNotSupportedException
clone in class MenuElementImplCloneNotSupportedExceptionpublic String getElementType()
getElementType in interface org.apache.jetspeed.portalsite.MenuElementgetElementType in class MenuElementImplpublic String getName()
getName in interface org.apache.jetspeed.portalsite.MenugetName in class MenuElementImplpublic String getTitle()
getTitle in interface org.apache.jetspeed.portalsite.MenuElementgetTitle in class MenuElementImplpublic String getShortTitle()
getShortTitle in interface org.apache.jetspeed.portalsite.MenuElementgetShortTitle in class MenuElementImplpublic String getTitle(Locale locale)
getTitle in interface org.apache.jetspeed.portalsite.MenuElementgetTitle in class MenuElementImpllocale - preferred locale
public String getShortTitle(Locale locale)
getShortTitle in interface org.apache.jetspeed.portalsite.MenuElementgetShortTitle in class MenuElementImpllocale - preferred locale
public org.apache.jetspeed.om.common.GenericMetadata getMetadata()
getMetadata in interface org.apache.jetspeed.portalsite.MenuElementgetMetadata in class MenuElementImplpublic String getSkin()
getSkin in interface org.apache.jetspeed.portalsite.MenuElementgetSkin in class MenuElementImplpublic String getUrl()
getUrl in interface org.apache.jetspeed.portalsite.MenugetUrl in class MenuElementImplpublic boolean isHidden()
isHidden in interface org.apache.jetspeed.portalsite.Menupublic boolean isSelected(org.apache.jetspeed.portalsite.PortalSiteRequestContext context)
isSelected in interface org.apache.jetspeed.portalsite.Menucontext - request context
public List getElements()
getElements in interface org.apache.jetspeed.portalsite.Menupublic boolean isEmpty()
isEmpty in interface org.apache.jetspeed.portalsite.Menupublic boolean isElementRelative()
public org.apache.jetspeed.portalsite.MenuElement getSelectedElement(org.apache.jetspeed.portalsite.PortalSiteRequestContext context)
getSelectedElement in interface org.apache.jetspeed.portalsite.Menuprivate static String orderRegexpPattern(String regexp)
regexp - - candidate order regular expression
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||