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 Type
    Method
    Description
    Gets the icon css class being displayed in the Menu
    Gets the menu-item markup id
    Gets the List of submenu-items
    org.apache.wicket.model.IModel<String>
    Gets the menu-item title
    boolean
    Indicates whether the menu-item is enabled
    void
    onClick(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 the Menu
      Returns:
      the icon css class
    • isEnabled

      boolean isEnabled()
      Indicates whether the menu-item is enabled
      Returns:
      true or false
    • getItems

      List<IMenuItem> getItems()
      Gets the List 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 - the AjaxRequestTarget