Package org.hippoecm.hst.core.sitemenu
Interface CommonMenuItem
- All Known Subinterfaces:
EditableMenuItem
,HstSiteMenuItem
public interface CommonMenuItem
-
Method Summary
Modifier and TypeMethodDescriptionint
getDepth()
When this method does not return null, then by defaultgetHstLink()
will returnnull
even if the sitemenu item has a sitemap reference path definedgetName()
When developers have customized SiteMenuItem configuration with extra properties, these properties can be accessed through this Mapboolean
A sitemenu item is expanded if one of its descendants is selected or if it is selected itselfboolean
boolean
-
Method Details
-
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 defaultgetHstLink()
will returnnull
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()- Returns:
- the
belonging to this SiteMenuItem orResolvedSiteMapItem
null
if it cannot be resolved in theHstSiteMap
-
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
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
-