public class MenuItem extends AbstractMenuItem
| Constructor and Description |
|---|
MenuItem(org.apache.wicket.model.IModel<java.lang.String> title)
Constructor
|
MenuItem(org.apache.wicket.model.IModel<java.lang.String> title,
java.util.List<IMenuItem> items)
Constructor
|
MenuItem(org.apache.wicket.model.IModel<java.lang.String> title,
java.lang.String icon)
Constructor
|
MenuItem(org.apache.wicket.model.IModel<java.lang.String> title,
java.lang.String icon,
java.util.List<IMenuItem> items)
Constructor
|
MenuItem(java.lang.String title)
Constructor
|
MenuItem(java.lang.String title,
java.util.List<IMenuItem> items)
Constructor
|
MenuItem(java.lang.String title,
java.lang.String icon)
Constructor
|
MenuItem(java.lang.String title,
java.lang.String icon,
java.util.List<IMenuItem> items)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addItem(IMenuItem item)
Adds an menu-item as child of this menu-item
|
java.util.List<IMenuItem> |
getItems()
Gets the
List of submenu-items |
void |
onClick(org.apache.wicket.ajax.AjaxRequestTarget target)
Triggered when the menu-item is clicked
|
getIcon, getId, getTitle, isEnabled, setEnabled, setIcon, setTitlepublic MenuItem(java.lang.String title)
title - the title of the menu-itempublic MenuItem(java.lang.String title,
java.lang.String icon)
title - the title of the menu-itemicon - the icon css class (ie: ui-my-icon)public MenuItem(org.apache.wicket.model.IModel<java.lang.String> title)
title - IModel that represent the title of the menu-itempublic MenuItem(org.apache.wicket.model.IModel<java.lang.String> title,
java.lang.String icon)
title - IModel that represent the title of the menu-itemicon - the icon css class (ie: ui-my-icon)public MenuItem(java.lang.String title,
java.util.List<IMenuItem> items)
title - the title of the menu-itemitems - the sub-menu itemspublic MenuItem(java.lang.String title,
java.lang.String icon,
java.util.List<IMenuItem> items)
title - the title of the menu-itemicon - the icon css class (ie: ui-my-icon)items - the sub-menu itemspublic MenuItem(org.apache.wicket.model.IModel<java.lang.String> title,
java.util.List<IMenuItem> items)
title - IModel that represent the title of the menu-itemitems - the sub-menu itemspublic MenuItem(org.apache.wicket.model.IModel<java.lang.String> title,
java.lang.String icon,
java.util.List<IMenuItem> items)
title - IModel that represent the title of the menu-itemicon - the icon css class (ie: ui-my-icon)items - the sub-menu itemspublic java.util.List<IMenuItem> getItems()
IMenuItemList of submenu-itemsgetItems in interface IMenuItemgetItems in class AbstractMenuItemList of submenu-itemspublic boolean addItem(IMenuItem item)
item - the IMenuItemCollection.add(Object))public void onClick(org.apache.wicket.ajax.AjaxRequestTarget target)
IMenuItemtarget - the AjaxRequestTargetCopyright © 2014 7thWeb. All Rights Reserved.