Class TabPanelEntry

  • All Implemented Interfaces:
    org.gwtbootstrap3.client.ui.base.HasActive

    public class TabPanelEntry
    extends Object
    implements org.gwtbootstrap3.client.ui.base.HasActive
    Represents an entry in a TabPanelWithDropdowns. Keeps track of the current title, the tab widget (which could be one of two different types depending on whether the entry is at top-level tab or nested in a dropdown tab), and the associated content widget.
    • Constructor Detail

      • TabPanelEntry

        public TabPanelEntry​(String title,
                             com.google.gwt.user.client.ui.Widget contents)
    • Method Detail

      • getContents

        public com.google.gwt.user.client.ui.Widget getContents()
      • getContentPane

        public org.gwtbootstrap3.client.ui.TabPane getContentPane()
        Returns the intermediate container that holds the real contents.
      • getTitle

        public String getTitle()
      • setTitle

        public void setTitle​(String title)
      • setInDropdown

        public void setInDropdown​(boolean inDropdown)
      • isActive

        public boolean isActive()
        Returns true if this tab panel entry believes it's currently the active (displayed) tab in its tab panel.
        Specified by:
        isActive in interface org.gwtbootstrap3.client.ui.base.HasActive
      • setActive

        public void setActive​(boolean b)
        Sets or clears the active state on this tab. Does not actually cause the tab to hide or show.
        Specified by:
        setActive in interface org.gwtbootstrap3.client.ui.base.HasActive
      • showTab

        public void showTab()
        Makes this tab show itself and become the active tab, replacing whatever tab was previously active.