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:
    AbstractMenuItem
    • 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 the Menu
        Returns:
        the icon css class
      • isEnabled

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

        void onClick​(org.apache.wicket.ajax.AjaxRequestTarget target)
        Triggered when the menu-item is clicked
        Parameters:
        target - the AjaxRequestTarget