Package org.hippoecm.hst.core.sitemenu
Interface HstSiteMenu
-
- All Superinterfaces:
CommonMenu
,PageModelEntity
public interface HstSiteMenu extends CommonMenu
The interface for a SiteMenu implementation, containing possibly a tree ofHstSiteMenuItem
's
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 itEditableMenu
getEditableMenu()
Returns an
instance from this HstSiteMenu.EditableMenu
HstSiteMenus
getHstSiteMenus()
HstSiteMenuItem
getSelectSiteMenuItem()
List<HstSiteMenuItem>
getSiteMenuItems()
-
Methods inherited from interface org.hippoecm.hst.core.sitemenu.CommonMenu
getName, isExpanded
-
-
-
-
Method Detail
-
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.
-
-