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 a
Menu- Since:
- 1.4.2, 6.2.2
- Author:
- Sebastien Briquet - sebfz1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetIcon()Gets the icon css class being displayed in theMenugetId()Gets the menu-item markup idgetItems()Gets theListof submenu-itemsorg.apache.wicket.model.IModel<String>getTitle()Gets the menu-item titlebooleanIndicates whether the menu-item is enabledvoidonClick(org.apache.wicket.ajax.AjaxRequestTarget target) Triggered when the menu-item is clicked
-
Method Details
-
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
Gets theListof submenu-items- Returns:
- the
Listof submenu-items
-
onClick
void onClick(org.apache.wicket.ajax.AjaxRequestTarget target) Triggered when the menu-item is clicked- Parameters:
target- theAjaxRequestTarget
-