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 theMenugetId()Gets the menu-item markup idgetItems()Gets theListof submenu-itemsorg.apache.wicket.model.IModel<String>getTitle()Gets the menu-item titlebooleanIndicates whether the menu-item is enabledvoidsetEnabled(boolean enabled) Sets whether the menu-item is enabledvoidSets the icon css class being displayed in theMenu(ie: ui-my-icon)voidSets the menu-item title
-
Constructor Details
-
AbstractMenuItem
Constructor- Parameters:
title-IModelthat represent the title of the menu-itemicon- the icon css class;'ui-icon-blank'orJQueryIcon.BLANKmay be used to display no icon.
-
-
Method Details
-
getId
Description copied from interface:IMenuItemGets the menu-item markup id -
getTitle
Description copied from interface:IMenuItemGets the menu-item title -
setTitle
Sets the menu-item title- Parameters:
title- the menu-item title
-
getIcon
Description copied from interface:IMenuItemGets 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:IMenuItemIndicates 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:IMenuItemGets theListof submenu-items
-