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
public abstract class AbstractMenuItem extends Object implements IMenuItem
Base class forMenuitem- Since:
- 1.4.2, 6.2.2
- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractMenuItem(org.apache.wicket.model.IModel<String> title, String icon)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetIcon()Gets the icon css class being displayed in theMenuStringgetId()Gets the menu-item markup idList<IMenuItem>getItems()Gets theListof submenu-itemsorg.apache.wicket.model.IModel<String>getTitle()Gets the menu-item titlebooleanisEnabled()Indicates whether the menu-item is enabledvoidsetEnabled(boolean enabled)Sets whether the menu-item is enabledvoidsetIcon(String icon)Sets the icon css class being displayed in theMenu(ie: ui-my-icon)voidsetTitle(org.apache.wicket.model.IModel<String> title)Sets the menu-item title
-
-
-
Constructor Detail
-
AbstractMenuItem
public AbstractMenuItem(org.apache.wicket.model.IModel<String> title, String icon)
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 Detail
-
getId
public String getId()
Description copied from interface:IMenuItemGets the menu-item markup id
-
getTitle
public org.apache.wicket.model.IModel<String> getTitle()
Description copied from interface:IMenuItemGets the menu-item title
-
setTitle
public void setTitle(org.apache.wicket.model.IModel<String> title)
Sets the menu-item title- Parameters:
title- the menu-item title
-
getIcon
public String getIcon()
Description copied from interface:IMenuItemGets the icon css class being displayed in theMenu
-
setIcon
public void setIcon(String icon)
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
-
-