Class MenuBehavior

    • Constructor Detail

      • MenuBehavior

        public MenuBehavior​(String selector,
                            IMenuListener listener)
        Constructor
        Parameters:
        selector - the html selector (ie: "#myId")
        listener - the IMenuListener
      • MenuBehavior

        public MenuBehavior​(String selector,
                            com.googlecode.wicket.jquery.core.Options options,
                            IMenuListener listener)
        Constructor
        Parameters:
        selector - the html selector (ie: "#myId")
        options - the Options
        listener - the IMenuListener
    • Method Detail

      • getMenuItemMap

        protected abstract Map<String,​IMenuItem> getMenuItemMap()
        Gets the reference map of hash/menu-item.
        Returns:
        the non-null Map
      • onAjax

        public void onAjax​(AjaxRequestTarget target,
                           com.googlecode.wicket.jquery.core.JQueryEvent event)
        Specified by:
        onAjax in interface com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
      • newOnSelectAjaxBehavior

        protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnSelectAjaxBehavior​(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
        Gets a new JQueryAjaxBehavior that will be wired to the 'select' event
        Parameters:
        source - the IJQueryAjaxAware
        Returns:
        a new OnSelectAjaxBehavior by default