public class SideNavMenuItem extends Object
| Constructor and Description |
|---|
SideNavMenuItem()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHref() |
String |
getIcon() |
List<SideNavMenuItem> |
getItems()
Gets the list of items.
|
String |
getName() |
String |
getParent() |
String |
getSlugName() |
boolean |
isHasItems()
Gets the indicating whether has items.
|
String |
toString() |
SideNavMenuItem |
withHref(String href) |
SideNavMenuItem |
withIcon(String icon)
Sets the icon associate to.
|
SideNavMenuItem |
withItems(List<SideNavMenuItem> items)
Sets the items associate.
|
SideNavMenuItem |
withName(String name) |
SideNavMenuItem |
withParent(String parent) |
SideNavMenuItem |
withSlugName(String slugName) |
public String getName()
public SideNavMenuItem withName(String name)
name - the name of item menupublic String getParent()
public SideNavMenuItem withParent(String parent)
parent - the name of parent pagepublic String getHref()
public SideNavMenuItem withHref(String href)
href - the link to use.public String getSlugName()
String representing the slugged link associate to this menu item.public SideNavMenuItem withSlugName(String slugName)
slugName - the slugged name.public String getIcon()
public SideNavMenuItem withIcon(String icon)
icon - the icon to use.public boolean isHasItems()
true if has items, otherwise false.@Nonnull public List<SideNavMenuItem> getItems()
List representing the items.public SideNavMenuItem withItems(List<SideNavMenuItem> items)
items - the list of items.Copyright © 2012–2023 Friederich Christophe. All rights reserved.