Class SideNavMenuItem
- java.lang.Object
-
- org.devacfr.maven.skins.reflow.model.SideNavMenuItem
-
public class SideNavMenuItem extends Object
- Since:
- 2.0
- Author:
- Christophe Friederich
-
-
Constructor Summary
Constructors Constructor Description SideNavMenuItem()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHref()StringgetIcon()List<SideNavMenuItem>getItems()Gets the list of items.StringgetName()StringgetParent()StringgetSlugName()booleanisHasItems()Gets the indicating whether has items.StringtoString()SideNavMenuItemwithHref(String href)SideNavMenuItemwithIcon(String icon)Sets the icon associate to.SideNavMenuItemwithItems(List<SideNavMenuItem> items)Sets the items associate.SideNavMenuItemwithName(String name)SideNavMenuItemwithParent(String parent)SideNavMenuItemwithSlugName(String slugName)
-
-
-
Method Detail
-
getName
public String getName()
- Returns:
- Returns the name of item menu.
-
withName
public SideNavMenuItem withName(String name)
- Parameters:
name- the name of item menu- Returns:
- Returns the fluent instance.
-
getParent
public String getParent()
- Returns:
- Returns the name of parent page.
-
withParent
public SideNavMenuItem withParent(String parent)
- Parameters:
parent- the name of parent page- Returns:
- Returns the fluent instance.
-
getHref
public String getHref()
- Returns:
- Returns the link associated to this item menu.
-
withHref
public SideNavMenuItem withHref(String href)
- Parameters:
href- the link to use.- Returns:
- Returns the fluent instance.
-
getSlugName
public String getSlugName()
- Returns:
- Returns the
Stringrepresenting the slugged link associate to this menu item.
-
withSlugName
public SideNavMenuItem withSlugName(String slugName)
- Parameters:
slugName- the slugged name.- Returns:
- Returns the fluent instance.
-
getIcon
public String getIcon()
- Returns:
- Returns the icon to use.
-
withIcon
public SideNavMenuItem withIcon(String icon)
Sets the icon associate to.- Parameters:
icon- the icon to use.- Returns:
- Returns the fluent instance.
-
isHasItems
public boolean isHasItems()
Gets the indicating whether has items.- Returns:
- Returns
trueif has items, otherwisefalse.
-
getItems
@Nonnull public List<SideNavMenuItem> getItems()
Gets the list of items.- Returns:
- Returns a
Listrepresenting the items.
-
withItems
public SideNavMenuItem withItems(List<SideNavMenuItem> items)
Sets the items associate.- Parameters:
items- the list of items.- Returns:
- Returns the fluent instance.
-
-