Interface IMenuItem
-
- All Superinterfaces:
org.apache.wicket.util.io.IClusterable
,Serializable
- All Known Implementing Classes:
AbstractMenuItem
,MenuItem
public interface IMenuItem extends org.apache.wicket.util.io.IClusterable
Interface used to represent a single item in aMenu
- Since:
- 1.4.2, 6.2.2
- Author:
- Sebastien Briquet - sebfz1
- See Also:
AbstractMenuItem
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getIcon()
Gets the icon css class 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 enabledvoid
onClick(org.apache.wicket.ajax.AjaxRequestTarget target)
Triggered when the menu-item is clicked
-
-
-
Method Detail
-
getId
String getId()
Gets the menu-item markup id- Returns:
- the menu-item markup id
-
getTitle
org.apache.wicket.model.IModel<String> getTitle()
Gets the menu-item title- Returns:
- the menu-item title
-
getIcon
String getIcon()
Gets the icon css class being displayed in theMenu
- Returns:
- the icon css class
-
isEnabled
boolean isEnabled()
Indicates whether the menu-item is enabled- Returns:
- true or false
-
getItems
List<IMenuItem> getItems()
Gets theList
of submenu-items- Returns:
- the
List
of submenu-items
-
onClick
void onClick(org.apache.wicket.ajax.AjaxRequestTarget target)
Triggered when the menu-item is clicked- Parameters:
target
- theAjaxRequestTarget
-
-