public abstract class AbstractMenuItem extends Object implements IMenuItem
Menu item| Constructor and Description |
|---|
AbstractMenuItem(org.apache.wicket.model.IModel<String> title,
String icon)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getIcon()
Gets the icon 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
|
AbstractMenuItem |
setEnabled(boolean enabled)
Sets whether the menu-item is enabled
|
AbstractMenuItem |
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
|
public String getId()
IMenuItempublic org.apache.wicket.model.IModel<String> getTitle()
IMenuItempublic void setTitle(org.apache.wicket.model.IModel<String> title)
title - the menu-item titlepublic String getIcon()
IMenuItemMenupublic AbstractMenuItem setIcon(String icon)
Menu (ie: ui-my-icon)icon - either a KendoIcon constant or a 'k-i-icon' css classpublic boolean isEnabled()
IMenuItempublic AbstractMenuItem setEnabled(boolean enabled)
enabled - true or falseCopyright © 2021 7thWeb. All rights reserved.