Class AbstractNavigationItem
- java.lang.Object
-
- com.adobe.cq.commerce.core.components.internal.models.v1.navigation.AbstractNavigationItem
-
- All Implemented Interfaces:
NavigationItem
public abstract class AbstractNavigationItem extends Object implements NavigationItem
Base class forNavigationItem
implementations.
-
-
Constructor Summary
Constructors Constructor Description AbstractNavigationItem(AbstractNavigationItem parent, String title, String url, boolean active)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getTitle()
String
getURL()
boolean
isActive()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adobe.cq.commerce.core.components.models.navigation.NavigationItem
getItems
-
-
-
-
Field Detail
-
parent
protected AbstractNavigationItem parent
-
title
protected String title
-
url
protected String url
-
active
protected boolean active
-
-
Constructor Detail
-
AbstractNavigationItem
public AbstractNavigationItem(AbstractNavigationItem parent, String title, String url, boolean active)
-
-
Method Detail
-
getTitle
public String getTitle()
- Specified by:
getTitle
in interfaceNavigationItem
- Returns:
- The item title to be displayed in the navigation.
-
getURL
public String getURL()
- Specified by:
getURL
in interfaceNavigationItem
- Returns:
- The URL for the item.
-
isActive
public boolean isActive()
- Specified by:
isActive
in interfaceNavigationItem
- Returns:
- True if the current page is referred to by this navigation item.
-
-