Interface Header.NavigationItem
-
- Enclosing interface:
- Header
public static interface Header.NavigationItem
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getIcon()
Gets the icon associated with the navigation page.com.day.cq.wcm.api.Page
getPage()
String
getText()
String
getUrl()
boolean
isActive()
Gets the active information of the current page.boolean
isHierarchyActive()
Gets the hierarchy information of the current page.
-
-
-
Method Detail
-
getPage
com.day.cq.wcm.api.Page getPage()
- Returns:
- The
Page
contained in this navigation item.
-
isActive
boolean isActive()
Gets the active information of the current page.- Returns:
- true if if the navigation item represents the current page (ie the current request's current resolved page).
-
isHierarchyActive
boolean isHierarchyActive()
Gets the hierarchy information of the current page.- Returns:
- true if the current page is a descendant of the navigation page.
-
getIcon
String getIcon()
Gets the icon associated with the navigation page.- Returns:
- the icon associated with the navigation page.
-
getUrl
String getUrl()
- Returns:
- the URL associated with the navigation. Could be a relative path or an absolute URL.
-
getText
String getText()
- Returns:
- the String value to populate the navigation link text.
-
-