Class SimpleTab

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

    public class SimpleTab
    extends org.apache.wicket.extensions.markup.html.tabs.AbstractTab
    Provides a simple AbstractTab that embeds a LabelPanel
    Since:
    1.2.3, 6.0.1
    Author:
    Sebastien Briquet - sebfz1
    See Also:
    Serialized Form
    • Constructor Detail

      • SimpleTab

        public SimpleTab​(String title,
                         String content)
        Constructor
        Parameters:
        title - the title of the tab
        content - the content of the tab
      • SimpleTab

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

      • setContent

        public void setContent​(String content)
        Sets the text content of tab
        Parameters:
        content - the text content of tab
      • getPanel

        public final org.apache.wicket.markup.html.WebMarkupContainer getPanel​(String panelId)
        Gets the LabelPanel that contains the content supplied in the constructor
        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
        Returns:
        the LabelPanel