|
||||||||||
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
public abstract class AbstractMenuItem
Base class for Menu
item
Constructor Summary | |
---|---|
AbstractMenuItem(org.apache.wicket.model.IModel<String> title,
String icon)
Constructor |
Method Summary | |
---|---|
String |
getIcon()
Gets the icon css class being displayed in the Menu |
String |
getId()
Gets the menu-item markup id |
List<IMenuItem> |
getItems()
Gets the List of submenu-items |
org.apache.wicket.model.IModel<String> |
getTitle()
Gets the menu-item title |
boolean |
isEnabled()
Indicates whether the menu-item is enabled |
void |
setEnabled(boolean enabled)
Sets whether the menu-item is enabled |
void |
setIcon(String icon)
Sets the icon css class being displayed in the Menu (ie: ui-my-icon) |
void |
setTitle(org.apache.wicket.model.IModel<String> title)
Sets the menu-item title |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.googlecode.wicket.jquery.ui.widget.menu.IMenuItem |
---|
onClick |
Constructor Detail |
---|
public AbstractMenuItem(org.apache.wicket.model.IModel<String> title, String icon)
title
- IModel
that represent the title of the menu-itemicon
- the icon css class; 'ui-icon-blank'
or JQueryIcon.BLANK
may be used to not display any icon.Method Detail |
---|
public String getId()
IMenuItem
getId
in interface IMenuItem
public org.apache.wicket.model.IModel<String> getTitle()
IMenuItem
getTitle
in interface IMenuItem
public void setTitle(org.apache.wicket.model.IModel<String> title)
title
- the menu-item titlepublic String getIcon()
IMenuItem
Menu
getIcon
in interface IMenuItem
public void setIcon(String icon)
Menu
(ie: ui-my-icon)
icon
- the icon css classpublic boolean isEnabled()
IMenuItem
isEnabled
in interface IMenuItem
public void setEnabled(boolean enabled)
enabled
- true or falsepublic List<IMenuItem> getItems()
IMenuItem
List
of submenu-items
getItems
in interface IMenuItem
List
of submenu-items
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |