java.lang.Object
org.apache.wicket.extensions.markup.html.tabs.AbstractTab
com.googlecode.wicket.jquery.ui.widget.tabs.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:
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    protected final org.apache.wicket.markup.html.WebMarkupContainer
    Get the WebMarkupContainer that will be lazy loaded
    protected abstract org.apache.wicket.markup.html.WebMarkupContainer
    Gets the WebMarkupContainer that will be lazy loaded
    final 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AjaxTab

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

    • 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