Class MaterialTabGroup

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable, Accessible

    public class MaterialTabGroup
    extends JPanel
    This class will be a container (group) for the new Material Tabs. It will contain a list of tabs and a display (JPanel). When a tab is selected, the JPanel "display" will display the content associated with that tab.

    How to use these tabs:

    1. 1 - Create displays (JPanels) for each tab
    2. 2 - Create an empty JPanel to serve as the group's display
    3. 3 - Create a new MaterialGroup, passing the panel in step 2 as a param
    4. 4 - Create new tabs, passing the group in step 3 and one of the panels in step 1 as params
    5. 5 - Add the tabs to the group using the MaterialTabGroup#addTab method
    6. 6 - Select one of the tabs using the MaterialTab#select method
    See Also:
    Serialized Form
    • Constructor Detail

      • MaterialTabGroup

        public MaterialTabGroup​(JPanel display)
      • MaterialTabGroup

        public MaterialTabGroup()
    • Method Detail

      • select

        public boolean select​(MaterialTab selectedTab)
        Selects a tab from the group, and sets the display's content to the tab's associated content.
        selectedTab - - The tab to select