Interface ITabsListener

  • All Superinterfaces:
    org.apache.wicket.util.io.IClusterable, Serializable
    All Known Implementing Classes:
    TabbedPanel, TabsAdapter

    public interface ITabsListener
    extends org.apache.wicket.util.io.IClusterable
    Event listener shared by the TabbedPanel widget and the TabsBehavior

    Warning: At least one event should be enabled for the AjaxTab to load.
    Author:
    Sebastien Briquet - sebfz1
    • Method Detail

      • isCreateEventEnabled

        boolean isCreateEventEnabled()
        Indicates whether the 'create' event is enabled.
        If true, the onActivate(AjaxRequestTarget, int, ITab) event will be triggered on 'create'
        Returns:
        true by default
      • isActivateEventEnabled

        boolean isActivateEventEnabled()
        Indicates whether the 'activate' event is enabled.
        If true, the onActivate(AjaxRequestTarget, int, ITab) event will be triggered on 'activate'
        Returns:
        true by default
      • isActivatingEventEnabled

        boolean isActivatingEventEnabled()
        Indicates whether the 'beforeActivate' event is enabled.
        If true, the onActivating(AjaxRequestTarget, int, ITab) event will be triggered.
        Returns:
        false by default
      • onActivate

        void onActivate​(org.apache.wicket.ajax.AjaxRequestTarget target,
                        int index,
                        org.apache.wicket.extensions.markup.html.tabs.ITab tab)
        Triggered when a tab has been activated ('create' and 'activate' event).
        Parameters:
        target - the AjaxRequestTarget
        index - the tab index that triggered this event
        tab - the ITab that corresponds to the index
      • onActivating

        void onActivating​(org.apache.wicket.ajax.AjaxRequestTarget target,
                          int index,
                          org.apache.wicket.extensions.markup.html.tabs.ITab tab)
        Triggered when a tab is being activated ('beforeActivate' event).
        Parameters:
        target - the AjaxRequestTarget
        index - the previously selected tab index
        tab - the ITab that corresponds to the index