Class AbstractMenuItem
java.lang.Object
com.googlecode.wicket.jquery.ui.widget.menu.AbstractMenuItem
- All Implemented Interfaces:
IMenuItem
,Serializable
,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
MenuItem
Base class for
Menu
item- Since:
- 1.4.2, 6.2.2
- Author:
- Sebastien Briquet - sebfz1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractMenuItem
(org.apache.wicket.model.IModel<String> title, String icon) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetIcon()
Gets the icon css class being displayed in theMenu
getId()
Gets the menu-item markup idgetItems()
Gets theList
of submenu-itemsorg.apache.wicket.model.IModel<String>
getTitle()
Gets the menu-item titleboolean
Indicates whether the menu-item is enabledvoid
setEnabled
(boolean enabled) Sets whether the menu-item is enabledvoid
Sets the icon css class being displayed in theMenu
(ie: ui-my-icon)void
Sets the menu-item title
-
Constructor Details
-
AbstractMenuItem
Constructor- Parameters:
title
-IModel
that represent the title of the menu-itemicon
- the icon css class;'ui-icon-blank'
orJQueryIcon.BLANK
may be used to display no icon.
-
-
Method Details
-
getId
Description copied from interface:IMenuItem
Gets the menu-item markup id -
getTitle
Description copied from interface:IMenuItem
Gets the menu-item title -
setTitle
Sets the menu-item title- Parameters:
title
- the menu-item title
-
getIcon
Description copied from interface:IMenuItem
Gets the icon css class being displayed in theMenu
-
setIcon
Sets the icon css class being displayed in theMenu
(ie: ui-my-icon)- Parameters:
icon
- the icon css class
-
isEnabled
public boolean isEnabled()Description copied from interface:IMenuItem
Indicates whether the menu-item is enabled -
setEnabled
public void setEnabled(boolean enabled) Sets whether the menu-item is enabled- Parameters:
enabled
- true or false
-
getItems
Description copied from interface:IMenuItem
Gets theList
of submenu-items
-