public class MenuItem extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
link
Deprecated.
|
protected String |
name
The name.
|
protected Set<MenuItem> |
submenu
The submenu.
|
protected String |
title
The title.
|
| Modifier | Constructor and Description |
|---|---|
|
MenuItem(String name)
Instantiates a new menu item.
|
|
MenuItem(String name,
Set<MenuItem> submenu)
Instantiates a new menu item.
|
|
MenuItem(String name,
String title)
Instantiates a new menu item.
|
|
MenuItem(String name,
String title,
Set<MenuItem> submenu)
Instantiates a new menu item.
|
protected |
MenuItem(String name,
String title,
String link)
Deprecated.
|
protected |
MenuItem(String name,
String title,
String link,
Set<MenuItem> submenu)
Instantiates a new menu item.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSubmenu(String name)
Adds the submenu.
|
void |
addSubmenu(String name,
String title)
Adds the submenu.
|
void |
addSubmenu(String name,
String title,
Set<MenuItem> submenu)
Adds the submenu.
|
MenuItem |
clone() |
String |
getLink()
Deprecated.
|
String |
getName()
Gets the name.
|
Set<MenuItem> |
getSubmenu()
Gets the submenu.
|
String |
getTitle()
Gets the title.
|
boolean |
hasSubmenu()
Checks for submenu.
|
void |
setLink(String link)
Deprecated.
|
void |
setTitle(String title)
Sets the title.
|
protected final String name
protected String title
@Deprecated protected String link
public MenuItem(String name)
name - the namepublic MenuItem(String name, Set<MenuItem> submenu)
name - the namesubmenu - the submenupublic MenuItem(String name, String title)
name - the nametitle - the titlepublic MenuItem(String name, String title, Set<MenuItem> submenu)
name - the nametitle - the titlesubmenu - the submenu@Deprecated protected MenuItem(String name, String title, String link)
name - the nametitle - the titlelink - the linkpublic void addSubmenu(String name, String title, Set<MenuItem> submenu)
name - the nametitle - the titlesubmenu - the submenupublic void addSubmenu(String name, String title)
name - the nametitle - the titlepublic void addSubmenu(String name)
name - the namepublic String getName()
public String getTitle()
public void setTitle(String title)
title - the title to set@Deprecated public String getLink()
@Deprecated public void setLink(String link)
link - the link to setpublic boolean hasSubmenu()
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.