Package org.hippoecm.hst.core.sitemenu
Interface HstSiteMenu
- All Superinterfaces:
CommonMenu
,PageModelEntity
The interface for a SiteMenu implementation, containing possibly a tree of
HstSiteMenuItem
's-
Method Summary
Modifier and TypeMethodDescriptionThis utility method is valuable for creating repository based navigations, as you can easily get the deepest selected item, which might in turn need repository based menu build below itReturns an
instance from this HstSiteMenu.EditableMenu
Methods inherited from interface org.hippoecm.hst.core.sitemenu.CommonMenu
getName, isExpanded
-
Method Details
-
getSelectSiteMenuItem
HstSiteMenuItem getSelectSiteMenuItem()- Returns:
- the currently selected
HstSiteMenuItem
ornull
if none is selected
-
getSiteMenuItems
List<HstSiteMenuItem> getSiteMenuItems()- Returns:
- returns all direct child
HstSiteMenuItem
's of this SiteMenu
-
getHstSiteMenus
HstSiteMenus getHstSiteMenus()- Returns:
- the
HstSiteMenus
container for this HstSiteMenu
-
getDeepestExpandedItem
HstSiteMenuItem getDeepestExpandedItem()This utility method is valuable for creating repository based navigations, as you can easily get the deepest selected item, which might in turn need repository based menu build below it- Returns:
- the
HstSiteMenuItem
that is the last one in the tree of expanded items, ornull
if none is expanded
-
getEditableMenu
EditableMenu getEditableMenu()Returns an
instance from this HstSiteMenu. Note that changing theEditableMenu
using the setters and adders (like adding aEditableMenu
EditableMenuItem
) will not being reflected in this HstSiteMenu instance.- Returns:
- an
EditableMenu
instance of this HstSiteMenu.
-