Interface NavigationItem
-
- All Superinterfaces:
Component,ComponentExporter,ListItem
- All Known Subinterfaces:
LanguageNavigationItem
@ConsumerType public interface NavigationItem extends ListItem
Interface for a single navigation item, used by theBreadcrumbandNavigationmodels.- Since:
- com.adobe.cq.wcm.core.components.models 11.0.0
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default java.util.List<NavigationItem>getChildren()Returns the children of thisNavigationItem, if any.default intgetLevel()Returns the depth level of thisNavigationItem.default PagegetPage()Deprecated.since 12.1.0 asNavigationItemrelies onListItemdefault booleanisActive()Returnstrueif the page contained by this navigation item is active.default booleanisCurrent()Returnstrueif 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, getId
-
Methods inherited from interface com.adobe.cq.wcm.core.components.models.ListItem
getDescription, getLastModified, getLink, getName, getPath, getTeaserResource, getTitle, getURL
-
-
-
-
Method Detail
-
getPage
@Deprecated default Page 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
default java.util.List<NavigationItem> 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
-
-