public abstract class AbstractMenuItem extends Object implements CommonMenuItem
Modifier and Type | Field and Description |
---|---|
protected int |
depth |
protected boolean |
expanded |
protected String |
externalLink |
protected HstLink |
hstLink |
protected String |
name |
protected Map<String,Object> |
properties |
protected boolean |
repositoryBased |
protected boolean |
selected |
Constructor and Description |
---|
AbstractMenuItem() |
Modifier and Type | Method and Description |
---|---|
int |
getDepth() |
String |
getExternalLink()
When this method does not return null, then by default
CommonMenuItem.getHstLink() 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() |
ResolvedSiteMapItem |
resolveToSiteMapItem(HstRequest request)
Deprecated.
Not used since CMS 11.0 (HST 3.0.0). Use @{link #resolveToSiteMapItem()}.
|
protected int depth
protected boolean repositoryBased
protected HstLink hstLink
protected String externalLink
protected String name
protected boolean expanded
protected boolean selected
public int getDepth()
getDepth
in interface CommonMenuItem
public boolean isRepositoryBased()
isRepositoryBased
in interface CommonMenuItem
true
when below this sitemenu item repository based navigation is expectedpublic Map<String,Object> getProperties()
CommonMenuItem
getProperties
in interface CommonMenuItem
public HstLink getHstLink()
getHstLink
in interface CommonMenuItem
public String getExternalLink()
CommonMenuItem
CommonMenuItem.getHstLink()
will return null
even
if the sitemenu item has a sitemap reference path definedgetExternalLink
in interface CommonMenuItem
null
if no external link is definedpublic String getName()
getName
in interface CommonMenuItem
public boolean isExpanded()
CommonMenuItem
isExpanded
in interface CommonMenuItem
true
if the SiteMenuItem is expandedpublic boolean isSelected()
isSelected
in interface CommonMenuItem
true
is the SiteMenuItem is selectedpublic ResolvedSiteMapItem resolveToSiteMapItem()
resolveToSiteMapItem
in interface CommonMenuItem
ResolvedSiteMapItem
belonging to this SiteMenuItem or null
if it
cannot be resolved in the HstSiteMap
@Deprecated public ResolvedSiteMapItem resolveToSiteMapItem(HstRequest request)
resolveToSiteMapItem
in interface CommonMenuItem
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.