org.hippoecm.hst.core.sitemenu
Interface CommonMenuItem

All Known Subinterfaces:
EditableMenuItem, HstSiteMenuItem
All Known Implementing Classes:
AbstractMenuItem, EditableMenuItemImpl, HstSiteMenuItemImpl, MockHstSiteMenuItem

public interface CommonMenuItem


Method Summary
 int getDepth()
           
 String getExternalLink()
          When this method does not return null, then by default will return null even if the sitemenu item has a sitemap reference path defined
 HstLink getHstLink()
           
 String getName()
           
 Map<String,Object> getProperties()
          When developers have customized SiteMenuItem configuration with extra properties, these properties can be accessed through this Map
 boolean isExpanded()
          A sitemenu item is expanded if one of its descendants is selected or if it is selected itself
 boolean isRepositoryBased()
           
 boolean isSelected()
           
 ResolvedSiteMapItem resolveToSiteMapItem(HstRequest request)
           
 

Method Detail

getName

String getName()
Returns:
the name of this SiteMenuItem

getHstLink

HstLink getHstLink()
Returns:
a HstLink that contains a link for this SiteMenuItem

getExternalLink

String getExternalLink()
When this method does not return null, then by default will return null even if the sitemenu item has a sitemap reference path defined

Returns:
an external (http/https etc) link or null if no external link is defined

resolveToSiteMapItem

ResolvedSiteMapItem resolveToSiteMapItem(HstRequest request)
Returns:
the ResolvedSiteMapItem belonging to this SiteMenuItem or null if it cannot be resolved in the HstSiteMap

isExpanded

boolean isExpanded()
A sitemenu item is expanded if one of its descendants is selected or if it is selected itself

Returns:
true if the SiteMenuItem is expanded

getProperties

Map<String,Object> getProperties()
When developers have customized SiteMenuItem configuration with extra properties, these properties can be accessed through this Map

Returns:
a Map containing the value for every property in the backing content provider for this SiteMenuItem

isRepositoryBased

boolean isRepositoryBased()
Returns:
true when below this sitemenu item repository based navigation is expected

getDepth

int getDepth()
Returns:
the depth of repository based items in case of repository based navigation

isSelected

boolean isSelected()
Returns:
true is the SiteMenuItem is selected


Copyright © 2008-2012 Hippo. All Rights Reserved.