Class AjaxTab

  • All Implemented Interfaces:
    Serializable, org.apache.wicket.extensions.markup.html.tabs.ITab, org.apache.wicket.util.io.IClusterable

    public abstract class AjaxTab
    extends org.apache.wicket.extensions.markup.html.tabs.AbstractTab
    Provides an AbstractTab which loads the panel when the ITab is clicked.
    Since:
    1.2.1
    Author:
    Sebastien Briquet - sebfz1
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      AjaxTab​(org.apache.wicket.model.IModel<String> title)
      Constructor
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.apache.wicket.markup.html.WebMarkupContainer getLazyPanel()
      Get the WebMarkupContainer that will be lazy loaded
      protected abstract org.apache.wicket.markup.html.WebMarkupContainer getLazyPanel​(String panelId)
      Gets the WebMarkupContainer that will be lazy loaded
      org.apache.wicket.markup.html.WebMarkupContainer getPanel​(String panelId)
      Gets the default panel (loading indicator)
      boolean load​(org.apache.wicket.ajax.AjaxRequestTarget target)
      Loads the lazy component, if not already loaded.
      • Methods inherited from class org.apache.wicket.extensions.markup.html.tabs.AbstractTab

        getTitle, isVisible
    • Constructor Detail

      • AjaxTab

        public AjaxTab​(org.apache.wicket.model.IModel<String> title)
        Constructor
        Parameters:
        title - IModel used to represent the title of the tab.
    • Method Detail

      • getPanel

        public final org.apache.wicket.markup.html.WebMarkupContainer getPanel​(String panelId)
        Gets the default panel (loading indicator)
        Specified by:
        getPanel in interface org.apache.wicket.extensions.markup.html.tabs.ITab
        Specified by:
        getPanel in class org.apache.wicket.extensions.markup.html.tabs.AbstractTab
      • getLazyPanel

        protected final org.apache.wicket.markup.html.WebMarkupContainer getLazyPanel()
        Get the WebMarkupContainer that will be lazy loaded
        Returns:
        the WebMarkupContainer
      • getLazyPanel

        protected abstract org.apache.wicket.markup.html.WebMarkupContainer getLazyPanel​(String panelId)
        Gets the WebMarkupContainer that will be lazy loaded
        Parameters:
        panelId - the markup id to use
        Returns:
        the WebMarkupContainer
      • load

        public boolean load​(org.apache.wicket.ajax.AjaxRequestTarget target)
        Loads the lazy component, if not already loaded.
        Parameters:
        target - the AjaxRequestTarget
        Returns:
        True if the component has just been loaded. Otherwise false if the component has already been loaded