Class AbstractTab

  • All Implemented Interfaces:
    Serializable, ITab, org.apache.wicket.util.io.IClusterable

    public abstract class AbstractTab
    extends Object
    implements ITab
    Convenience class that takes care of common ITab functionality
    Author:
    Igor Vaynberg (ivaynberg)
    See Also:
    ITab, Serialized Form
    • Constructor Detail

      • AbstractTab

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

      • getTitle

        public org.apache.wicket.model.IModel<StringgetTitle()
        Specified by:
        getTitle in interface ITab
        Returns:
        IModel used to represent the title of the tab. Must contain a string.
      • isVisible

        public boolean isVisible()
        Description copied from interface: ITab
        Returns whether this tab should be visible
        Specified by:
        isVisible in interface ITab
        Returns:
        whether this tab should be visible
      • getPanel

        public abstract org.apache.wicket.markup.html.WebMarkupContainer getPanel​(String panelId)
        Specified by:
        getPanel in interface ITab
        Parameters:
        panelId - returned panel MUST have this id
        Returns:
        a container object (e.g. Panel or Fragment) that will be placed as the content of the tab