Class Menu

    • Constructor Detail

      • Menu

        public Menu​(String id)
        Constructor
        Parameters:
        id - the markup id
      • Menu

        public Menu​(String id,
                    com.googlecode.wicket.jquery.core.Options options)
        Constructor
        Parameters:
        id - the markup id
        options - the Options
      • Menu

        public Menu​(String id,
                    List<IMenuItem> items,
                    com.googlecode.wicket.jquery.core.Options options)
        Constructor
        Parameters:
        id - the markup id
        items - the list of IMenuItem
        options - the Options
    • Method Detail

      • newWidgetBehavior

        public com.googlecode.wicket.jquery.core.JQueryBehavior newWidgetBehavior​(String selector)
        Specified by:
        newWidgetBehavior in interface com.googlecode.wicket.jquery.core.IJQueryWidget
      • addMenuItem

        protected void addMenuItem​(ListItem<IMenuItem> item,
                                   IMenuItem menuItem)
        Adds the needed Wicket components to render the given IMenuItem
        Parameters:
        item - the ListView item
        menuItem - the menu item to render
      • hasSubMenus

        protected boolean hasSubMenus​(IMenuItem item)
        Checks whether a menu item has sub menu items
        Parameters:
        item - the menu item to check for sub menu items
        Returns:
        true if the item has sub items, otherwise false