public class WebMenuItem extends Object implements Serializable, Comparable<WebMenuItem>
Modifier and Type | Field and Description |
---|---|
protected String |
authority |
protected List<WebMenuItem> |
breadcrumbs |
protected boolean |
dynamic |
protected List<WebMenuItem> |
subMenu |
protected String |
title |
protected String |
url |
Constructor and Description |
---|
WebMenuItem() |
Modifier and Type | Method and Description |
---|---|
void |
addSubItem(WebMenuItem item)
Add a MenuItem as the last one in its sub-menu.
|
int |
compareTo(WebMenuItem o) |
String |
getAuthority() |
List<WebMenuItem> |
getBreadcrumbs() |
boolean |
getIsLeaf()
Is this menu item a leaf node in the menu tree?
|
List<WebMenuItem> |
getSubMenu() |
String |
getTitle() |
List<WebMenuItem> |
getTopMenuItems()
Get the highest level of menu items.
|
String |
getUrl() |
boolean |
isDynamic() |
boolean |
isLeaf()
Is this menu item a leaf node in the menu tree?
|
void |
setAuthority(String authority) |
void |
setBreadcrumbs(List<WebMenuItem> breadcrumbs) |
void |
setDynamic(boolean dynamic) |
String |
toString() |
protected String title
protected String url
protected boolean dynamic
protected String authority
protected List<WebMenuItem> subMenu
protected List<WebMenuItem> breadcrumbs
public void addSubItem(WebMenuItem item)
item
- public int compareTo(WebMenuItem o)
compareTo
in interface Comparable<WebMenuItem>
public List<WebMenuItem> getTopMenuItems()
public boolean isLeaf()
public boolean getIsLeaf()
public String getTitle()
public String getUrl()
public List<WebMenuItem> getSubMenu()
public List<WebMenuItem> getBreadcrumbs()
public void setBreadcrumbs(List<WebMenuItem> breadcrumbs)
public boolean isDynamic()
public void setDynamic(boolean dynamic)
public String getAuthority()
public void setAuthority(String authority)
Copyright © 2014. All Rights Reserved.