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
MenuItem. |
MenuItem(org.apache.wicket.markup.html.link.AbstractLink link,
String label)
Instantiates a new
MenuItem. |
MenuItem(org.apache.wicket.model.IModel<String> labelModel)
Instantiates a new
MenuItem. |
MenuItem(String label)
Instantiates a new
MenuItem. |
| 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,
org.apache.wicket.model.IModel<String> labelModel)
MenuItem.link - the linklabelModel - the model of the label text.public MenuItem(org.apache.wicket.markup.html.link.AbstractLink link,
String label)
MenuItem.link - the linklabel - The label textpublic MenuItem(org.apache.wicket.model.IModel<String> labelModel)
MenuItem.labelModel - the model of the label text.public MenuItem addMenu(MenuItem menu)
menu - the menu item to add to this menu item.protected org.apache.wicket.markup.html.basic.Label newLabel(String id, org.apache.wicket.model.IModel<String> model)
Label. This method is invoked in the constructor
from the derived classes and can be overridden so users can provide their own version of a
new Label.id - the idmodel - the modelLabel.Copyright © 2010–2016 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.