Class MenuItem

  • All Implemented Interfaces:
    IMenuItem, Serializable, org.apache.wicket.util.io.IClusterable

    public class MenuItem
    extends AbstractMenuItem
    Provides a standard menu-item that supports sub-menus
    Since:
    1.4.2, 6.2.2
    Author:
    Sebastien Briquet - sebfz1
    See Also:
    Serialized Form
    • Constructor Detail

      • MenuItem

        public MenuItem​(String title)
        Constructor
        Parameters:
        title - the title of the menu-item
      • MenuItem

        public MenuItem​(String title,
                        String icon)
        Constructor
        Parameters:
        title - the title of the menu-item
        icon - the icon css class (ie: ui-my-icon)
      • MenuItem

        public MenuItem​(org.apache.wicket.model.IModel<String> title)
        Constructor
        Parameters:
        title - IModel that represent the title of the menu-item
      • MenuItem

        public MenuItem​(org.apache.wicket.model.IModel<String> title,
                        String icon)
        Constructor
        Parameters:
        title - IModel that represent the title of the menu-item
        icon - the icon css class (ie: ui-my-icon)
      • MenuItem

        public MenuItem​(String title,
                        List<IMenuItem> items)
        Constructor
        Parameters:
        title - the title of the menu-item
        items - the sub-menu items
      • MenuItem

        public MenuItem​(String title,
                        String icon,
                        List<IMenuItem> items)
        Constructor
        Parameters:
        title - the title of the menu-item
        icon - the icon css class (ie: ui-my-icon)
        items - the sub-menu items
      • MenuItem

        public MenuItem​(org.apache.wicket.model.IModel<String> title,
                        List<IMenuItem> items)
        Constructor
        Parameters:
        title - IModel that represent the title of the menu-item
        items - the sub-menu items
      • MenuItem

        public MenuItem​(org.apache.wicket.model.IModel<String> title,
                        String icon,
                        List<IMenuItem> items)
        Constructor
        Parameters:
        title - IModel that represent the title of the menu-item
        icon - the icon css class (ie: ui-my-icon)
        items - the sub-menu items
    • Method Detail

      • onClick

        public void onClick​(org.apache.wicket.ajax.AjaxRequestTarget target)
        Description copied from interface: IMenuItem
        Triggered when the menu-item is clicked
        Parameters:
        target - the AjaxRequestTarget