Class AbstractMenuItem
- java.lang.Object
-
- com.googlecode.wicket.kendo.ui.widget.menu.item.AbstractMenuItem
-
- All Implemented Interfaces:
IMenuItem
,Serializable
,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
MenuItem
,UrlMenuItem
public abstract class AbstractMenuItem extends Object implements IMenuItem
Base class forMenu
item- Since:
- 6.15.0
- 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 String
getIcon()
Gets the icon being displayed in theMenu
String
getId()
Gets the menu-item markup idList<IMenuItem>
getItems()
Gets theList
of submenu-itemsorg.apache.wicket.model.IModel<String>
getTitle()
Gets the menu-item titleboolean
isEnabled()
Indicates whether the menu-item is enabledboolean
isSelected()
Indicates whether the menu-item is selectedAbstractMenuItem
setEnabled(boolean enabled)
Sets whether the menu-item is enabledAbstractMenuItem
setIcon(String icon)
Sets the icon css class being displayed in theMenu
(ie: ui-my-icon)AbstractMenuItem
setSelected(boolean selected)
Sets whether the menu-item is selectedvoid
setTitle(org.apache.wicket.model.IModel<String> title)
Sets the menu-item title
-
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:IMenuItem
Gets the menu-item markup id
-
getTitle
public org.apache.wicket.model.IModel<String> getTitle()
Description copied from interface:IMenuItem
Gets 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:IMenuItem
Gets the icon being displayed in theMenu
-
setIcon
public AbstractMenuItem setIcon(String icon)
Sets the icon css class being displayed in theMenu
(ie: ui-my-icon)- Parameters:
icon
- either aKendoIcon
constant or a 'k-i-icon' css class- Returns:
- this, for chaining
-
isEnabled
public boolean isEnabled()
Description copied from interface:IMenuItem
Indicates whether the menu-item is enabled
-
setEnabled
public AbstractMenuItem setEnabled(boolean enabled)
Sets whether the menu-item is enabled- Parameters:
enabled
- true or false- Returns:
- this, for chaining
-
isSelected
public boolean isSelected()
Description copied from interface:IMenuItem
Indicates whether the menu-item is selected- Specified by:
isSelected
in interfaceIMenuItem
- Returns:
- true or false
-
setSelected
public AbstractMenuItem setSelected(boolean selected)
Sets whether the menu-item is selected- Parameters:
selected
- true or false- Returns:
- this, for chaining
-
-