public class MenuItem extends Object implements Serializable
| Constructor and Description |
|---|
MenuItem(org.apache.wicket.markup.html.link.AbstractLink link,
String strLabel)
Instantiates a new menu item.
|
MenuItem(org.apache.wicket.markup.html.link.AbstractLink link,
org.apache.wicket.model.StringResourceModel strLabel)
Instantiates a new menu item.
|
MenuItem(String strLabel)
Instantiates a new menu item.
|
MenuItem(org.apache.wicket.model.StringResourceModel stringResourceModel)
Instantiates a new menu item.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMenu(MenuItem menu)
Add one menu item.
|
List<MenuItem> |
getChildren()
Gets the children.
|
org.apache.wicket.markup.html.basic.Label |
getLabel()
Gets the label.
|
org.apache.wicket.markup.html.link.AbstractLink |
getLink()
Gets the link.
|
void |
setMenuItems(List<MenuItem> menuItems)
Add all menus at once.
|
public MenuItem(org.apache.wicket.markup.html.link.AbstractLink link,
String strLabel)
link - the linkstrLabel - the str labelpublic MenuItem(org.apache.wicket.markup.html.link.AbstractLink link,
org.apache.wicket.model.StringResourceModel strLabel)
link - the linkstrLabel - the str labelpublic MenuItem(String strLabel)
strLabel - the str labelpublic MenuItem(org.apache.wicket.model.StringResourceModel stringResourceModel)
stringResourceModel - the string resource modelpublic void addMenu(MenuItem menu)
menu - the menupublic void setMenuItems(List<MenuItem> menuItems)
menuItems - the new menu itemspublic org.apache.wicket.markup.html.link.AbstractLink getLink()
public org.apache.wicket.markup.html.basic.Label getLabel()
Copyright © 2010–2015. All rights reserved.