public class MockHstSiteMenu extends Object implements HstSiteMenu
HstSiteMenu
.Constructor and Description |
---|
MockHstSiteMenu() |
Modifier and Type | Method and Description |
---|---|
void |
addSiteMenuItem(HstSiteMenuItem siteMenuItem) |
void |
clearSiteMenuItems() |
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
|
EditableMenu |
getEditableMenu()
Returns an
instance from this HstSiteMenu. |
HstSiteMenus |
getHstSiteMenus() |
String |
getName()
Returns the name of this SiteMenu.
|
HstSiteMenuItem |
getSelectSiteMenuItem() |
List<HstSiteMenuItem> |
getSiteMenuItems() |
boolean |
isExpanded()
Based on the request, the implementation should be able to indicate whether this HstSiteMenu is expanded
|
void |
setDeepestExpandedItem(HstSiteMenuItem deepestExpandedItem) |
void |
setEditableMenu(EditableMenu editableMenu) |
void |
setExpanded(boolean expanded) |
void |
setHstSiteMenus(HstSiteMenus hstSiteMenus) |
void |
setName(String name) |
void |
setSelectSiteMenuItem(HstSiteMenuItem selectSiteMenuItem) |
void |
setSiteMenuItems(List<HstSiteMenuItem> siteMenuItems) |
public List<HstSiteMenuItem> getSiteMenuItems()
getSiteMenuItems
in interface HstSiteMenu
HstSiteMenuItem
's of this SiteMenupublic void setSiteMenuItems(List<HstSiteMenuItem> siteMenuItems)
public void addSiteMenuItem(HstSiteMenuItem siteMenuItem)
public void clearSiteMenuItems()
public HstSiteMenus getHstSiteMenus()
getHstSiteMenus
in interface HstSiteMenu
HstSiteMenus
container for this HstSiteMenupublic void setHstSiteMenus(HstSiteMenus hstSiteMenus)
public HstSiteMenuItem getDeepestExpandedItem()
HstSiteMenu
getDeepestExpandedItem
in interface HstSiteMenu
HstSiteMenuItem
that is the last one in the tree of expanded items, or null
if none is expandedpublic void setDeepestExpandedItem(HstSiteMenuItem deepestExpandedItem)
public HstSiteMenuItem getSelectSiteMenuItem()
getSelectSiteMenuItem
in interface HstSiteMenu
HstSiteMenuItem
or null
if none is selectedpublic void setSelectSiteMenuItem(HstSiteMenuItem selectSiteMenuItem)
public EditableMenu getEditableMenu()
HstSiteMenu
EditableMenu
instance from this HstSiteMenu. Note that changing the EditableMenu
using the setters and adders (like adding a
EditableMenuItem
) will not being reflected in this HstSiteMenu instance.getEditableMenu
in interface HstSiteMenu
EditableMenu
instance of this HstSiteMenu.public void setEditableMenu(EditableMenu editableMenu)
public String getName()
CommonMenu
getName
in interface CommonMenu
public void setName(String name)
public boolean isExpanded()
CommonMenu
isExpanded
in interface CommonMenu
true
when any HstSiteMenuItem in this HstSiteMenu container is selectedpublic void setExpanded(boolean expanded)
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.