Class TabsBehavior

    • Constructor Detail

      • TabsBehavior

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

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

      • getTabs

        protected abstract List<ITab> getTabs()
        Gets the reference List of ITabs.
        Usually the model object of the component on which this TabsBehavior is bound to.
        Returns:
        a non-null List
      • getVisibleTabs

        protected List<ITab> getVisibleTabs()
        Gets a read-only ITab List having its visible flag set to true.
        Returns:
        a List of ITabs
      • 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
      • newOnActivateAjaxBehavior

        protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnActivateAjaxBehavior​(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
        Gets a new JQueryAjaxBehavior that will be wired to the 'activate' event
        Parameters:
        source - the IJQueryAjaxAware
        Returns:
        a new OnActivateAjaxBehavior by default
      • newOnActivatingAjaxBehavior

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