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.
    Since:
    6.19.0
    Author:
    Sebastien Briquet - sebfz1
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isActivateEventEnabled()
      Indicates whether the 'activate' event is enabled.
      If true, the onActivate(AjaxRequestTarget, int, ITab) event will be triggered.
      boolean isSelectEventEnabled()
      Indicates whether the 'select' event is enabled.
      If true, the onSelect(AjaxRequestTarget, int, ITab) event will be triggered.
      boolean isShowEventEnabled()
      Indicates whether the 'show' event is enabled.
      If true, the onShow(AjaxRequestTarget, int, ITab) event will be triggered.
      void onActivate​(org.apache.wicket.ajax.AjaxRequestTarget target, int index, org.apache.wicket.extensions.markup.html.tabs.ITab tab)
      Triggered after a tab is being made visible and its animation complete
      void onSelect​(org.apache.wicket.ajax.AjaxRequestTarget target, int index, org.apache.wicket.extensions.markup.html.tabs.ITab tab)
      Triggered before a tab is selected.
      void onShow​(org.apache.wicket.ajax.AjaxRequestTarget target, int index, org.apache.wicket.extensions.markup.html.tabs.ITab tab)
      Triggered just after a tab is being made visible, but before the end of the animation.
    • Method Detail

      • isSelectEventEnabled

        boolean isSelectEventEnabled()
        Indicates whether the 'select' event is enabled.
        If true, the onSelect(AjaxRequestTarget, int, ITab) event will be triggered.
        Returns:
        true by default
      • isShowEventEnabled

        boolean isShowEventEnabled()
        Indicates whether the 'show' event is enabled.
        If true, the onShow(AjaxRequestTarget, int, ITab) event will be triggered.
        Returns:
        false by default
      • isActivateEventEnabled

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

        void onSelect​(org.apache.wicket.ajax.AjaxRequestTarget target,
                      int index,
                      org.apache.wicket.extensions.markup.html.tabs.ITab tab)
        Triggered before a tab is selected.
        Parameters:
        target - the AjaxRequestTarget
        index - the tab index that triggered this event
        tab - the ITab that corresponds to the index
        See Also:
        isSelectEventEnabled()
      • onShow

        void onShow​(org.apache.wicket.ajax.AjaxRequestTarget target,
                    int index,
                    org.apache.wicket.extensions.markup.html.tabs.ITab tab)
        Triggered just after a tab is being made visible, but before the end of the animation.
        Parameters:
        target - the AjaxRequestTarget
        index - the tab index that triggered this event
        tab - the ITab that corresponds to the index
        See Also:
        isShowEventEnabled()
      • onActivate

        void onActivate​(org.apache.wicket.ajax.AjaxRequestTarget target,
                        int index,
                        org.apache.wicket.extensions.markup.html.tabs.ITab tab)
        Triggered after a tab is being made visible and its animation complete
        Parameters:
        target - the AjaxRequestTarget
        index - the tab index that triggered this event
        tab - the ITab that corresponds to the index
        See Also:
        isActivateEventEnabled()