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.IClusterableInterface 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 StringgetIcon()Gets the icon css class being displayed in theMenuStringgetId()Gets the menu-item markup idList<IMenuItem>getItems()Gets theListof submenu-itemsorg.apache.wicket.model.IModel<String>getTitle()Gets the menu-item titlebooleanisEnabled()Indicates whether the menu-item is enabledvoidonClick(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 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
-
-