public abstract class AbstractMenuItem extends java.lang.Object implements IMenuItem
Menu
itemConstructor and Description |
---|
AbstractMenuItem(org.apache.wicket.model.IModel<java.lang.String> title,
java.lang.String icon)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getIcon()
Gets the icon css class being displayed in the
Menu |
java.lang.String |
getId()
Gets the menu-item markup id
|
java.util.List<IMenuItem> |
getItems()
Gets the
List of submenu-items |
org.apache.wicket.model.IModel<java.lang.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(java.lang.String icon)
Sets the icon css class being displayed in the
Menu (ie: ui-my-icon) |
void |
setTitle(org.apache.wicket.model.IModel<java.lang.String> title)
Sets the menu-item title
|
public AbstractMenuItem(org.apache.wicket.model.IModel<java.lang.String> title, java.lang.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 java.lang.String getId()
IMenuItem
public org.apache.wicket.model.IModel<java.lang.String> getTitle()
IMenuItem
public void setTitle(org.apache.wicket.model.IModel<java.lang.String> title)
title
- the menu-item titlepublic java.lang.String getIcon()
IMenuItem
Menu
public void setIcon(java.lang.String icon)
Menu
(ie: ui-my-icon)icon
- the icon css classpublic boolean isEnabled()
IMenuItem
public void setEnabled(boolean enabled)
enabled
- true or falseCopyright © 2014 7thWeb. All Rights Reserved.