public abstract class AbstractMenuItem extends Object implements IMenuItem
Menu
itemConstructor and Description |
---|
AbstractMenuItem(org.apache.wicket.model.IModel<String> title,
String icon)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getIcon()
Gets the icon css class 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
|
void |
setEnabled(boolean enabled)
Sets whether the menu-item is enabled
|
void |
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 AbstractMenuItem(org.apache.wicket.model.IModel<String> title, String icon)
title
- IModel
that represent the title of the menu-itemicon
- the icon css class; 'ui-icon-blank'
or JQueryIcon.BLANK
may be used to display no icon.public String getId()
IMenuItem
public org.apache.wicket.model.IModel<String> getTitle()
IMenuItem
public void setTitle(org.apache.wicket.model.IModel<String> title)
title
- the menu-item titlepublic String getIcon()
IMenuItem
Menu
public void setIcon(String icon)
Menu
(ie: ui-my-icon)icon
- the icon css classpublic boolean isEnabled()
IMenuItem
public void setEnabled(boolean enabled)
enabled
- true or falseCopyright © 2016 7thWeb. All rights reserved.