Interface NavigationItem
- All Superinterfaces:
Component,ComponentExporter,ListItem
- All Known Subinterfaces:
LanguageNavigationItem
Interface for a single navigation item, used by the
Breadcrumb and Navigation models.- Since:
- com.adobe.cq.wcm.core.components.models 11.0.0
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault List<NavigationItem> Returns the children of thisNavigationItem, if any.default intgetLevel()Returns the depth level of thisNavigationItem.default PagegetPage()Deprecated.default booleanisActive()Returnstrueif the page contained by this navigation item is active.default booleanReturnstrueif the page contained by this navigation item is the current page.Methods inherited from interface com.adobe.cq.wcm.core.components.models.Component
getAppliedCssClasses, getData, getExportedType, getIdMethods inherited from interface com.adobe.cq.wcm.core.components.models.ListItem
getDescription, getLastModified, getLink, getName, getPath, getTeaserResource, getTitle, getURL
-
Method Details
-
getPage
Deprecated.since 12.1.0 asNavigationItemrelies onListItemReturns thePagecontained by this navigation item.- Returns:
- The
Pagecontained in this navigation item. - Since:
- com.adobe.cq.wcm.core.components.models 11.0.0; marked
defaultin 12.1.0
-
isActive
default boolean isActive()Returnstrueif the page contained by this navigation item is active.- Returns:
trueif it is the current page or one of its ancestors, otherwisefalse- Since:
- com.adobe.cq.wcm.core.components.models 11.0.0; marked
defaultin 12.1.0
-
isCurrent
default boolean isCurrent()Returnstrueif the page contained by this navigation item is the current page.- Returns:
trueif it is the current page, otherwisefalse- Since:
- com.adobe.cq.wcm.core.components.models 12.20.0
-
getChildren
Returns the children of thisNavigationItem, if any.- Returns:
- the children of this
NavigationItem; if thisNavigationItemdoesn't have any children, the returnedListwill be empty - Since:
- com.adobe.cq.wcm.core.components.models 12.2.0
-
getLevel
default int getLevel()Returns the depth level of thisNavigationItem.- Returns:
- the depth level
- Since:
- com.adobe.cq.wcm.core.components.models 12.2.0
-
NavigationItemrelies onListItem