public class MenuItem extends Object implements Serializable
| Constructor and Description |
|---|
MenuItem(org.apache.wicket.markup.html.link.AbstractLink link,
org.apache.wicket.model.IModel<String> labelModel)
Instantiates a new menu item.
|
MenuItem(org.apache.wicket.markup.html.link.AbstractLink link,
String label)
Instantiates a new menu item.
|
MenuItem(org.apache.wicket.model.IModel<String> labelModel)
Instantiates a new menu item.
|
MenuItem(String label)
Instantiates a new menu item.
|
| Modifier and Type | Method and Description |
|---|---|
MenuItem |
addMenu(MenuItem menu)
Adds the given menu item to this menu item.
|
protected org.apache.wicket.markup.html.basic.Label |
newLabel(String id,
org.apache.wicket.model.IModel<String> model)
Factory method for creating a new Label.
|
MenuItem |
setMenuItems(List<MenuItem> menuItems)
Add all menus at once.
|
public MenuItem(org.apache.wicket.markup.html.link.AbstractLink link,
String label)
link - the linklabel - The label textpublic MenuItem(org.apache.wicket.markup.html.link.AbstractLink link,
org.apache.wicket.model.IModel<String> labelModel)
link - the linklabelModel - the model of the label text.public MenuItem(String label)
label - The label textpublic MenuItem(org.apache.wicket.model.IModel<String> labelModel)
labelModel - the model of the label text.protected org.apache.wicket.markup.html.basic.Label newLabel(String id, org.apache.wicket.model.IModel<String> model)
id - the idmodel - the modelpublic MenuItem addMenu(MenuItem menu)
menu - the menu item to add to this menu item.Copyright © 2010–2015. All rights reserved.