|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.wicket.jquery.ui.widget.menu.AbstractMenuItem
com.googlecode.wicket.jquery.ui.widget.menu.MenuItem
public class MenuItem
Provides a standard menu-item that supports sub-menus
Constructor Summary | |
---|---|
MenuItem(org.apache.wicket.model.IModel<String> title)
Constructor |
|
MenuItem(org.apache.wicket.model.IModel<String> title,
List<IMenuItem> items)
Constructor |
|
MenuItem(org.apache.wicket.model.IModel<String> title,
String icon)
Constructor |
|
MenuItem(org.apache.wicket.model.IModel<String> title,
String icon,
List<IMenuItem> items)
Constructor |
|
MenuItem(String title)
Constructor |
|
MenuItem(String title,
List<IMenuItem> items)
Constructor |
|
MenuItem(String title,
String icon)
Constructor |
|
MenuItem(String title,
String icon,
List<IMenuItem> items)
Constructor |
Method Summary | |
---|---|
boolean |
addItem(IMenuItem item)
|
List<IMenuItem> |
getItems()
Gets the List of submenu-items |
void |
onClick(org.apache.wicket.ajax.AjaxRequestTarget target)
Triggered when the menu-item is clicked |
Methods inherited from class com.googlecode.wicket.jquery.ui.widget.menu.AbstractMenuItem |
---|
getIcon, getId, getTitle, isEnabled, setEnabled, setIcon, setTitle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MenuItem(String title)
title
- the title of the menu-itempublic MenuItem(String title, String icon)
title
- the title of the menu-itemicon
- the icon css class (ie: ui-my-icon)public MenuItem(org.apache.wicket.model.IModel<String> title)
title
- IModel that represent the title of the menu-itempublic MenuItem(org.apache.wicket.model.IModel<String> title, String icon)
title
- IModel that represent the title of the menu-itemicon
- the icon css class (ie: ui-my-icon)public MenuItem(String title, List<IMenuItem> items)
title
- the title of the menu-itemitems
- the sub-menu itemspublic MenuItem(String title, String icon, 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<String> title, List<IMenuItem> items)
title
- IModel that represent the title of the menu-itemitems
- the sub-menu itemspublic MenuItem(org.apache.wicket.model.IModel<String> title, String icon, 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 itemsMethod Detail |
---|
public List<IMenuItem> getItems()
IMenuItem
List
of submenu-items
getItems
in interface IMenuItem
getItems
in class AbstractMenuItem
List
of submenu-itemspublic boolean addItem(IMenuItem item)
public void onClick(org.apache.wicket.ajax.AjaxRequestTarget target)
IMenuItem
target
- the AjaxRequestTarget
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |