edu.jhu.tmaj.client.tables
Class TabGroup

java.lang.Object
  extended by edu.jhu.tmaj.client.tables.TabGroup

public final class TabGroup
extends java.lang.Object

Represents a main-tab on a DoubleTabbedPane. MainTabs have one or more sub-tabs.


Constructor Summary
TabGroup(java.lang.String groupName, java.awt.Component component)
          Constructs a TabGroup that only has one component
TabGroup(java.lang.String groupName, java.util.List<Tab> tabList)
          Constructs a TabGroup that has one or more components.
 
Method Summary
 java.awt.Component getComponent()
           
 java.awt.Component getComponent(java.lang.String indexName)
           
 java.lang.String getGroupName()
           
 java.util.Set<java.lang.String> getIndexNameSet()
           
 javax.swing.JTabbedPane getTabbedPane()
           
 java.util.List<Tab> getTabList()
           
 void setDisplayedIndex(java.lang.String indexName)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TabGroup

public TabGroup(java.lang.String groupName,
                java.util.List<Tab> tabList)
Constructs a TabGroup that has one or more components.

Parameters:
groupName - the collective name of all the components. For example, if the sub components were 'employees' and 'contractors', the group name might be called 'people'.
tabList - A List where each tab represents a sub-tab.

TabGroup

public TabGroup(java.lang.String groupName,
                java.awt.Component component)
Constructs a TabGroup that only has one component

Parameters:
groupName - represents the name of the index and sub-index
component - the component the tab will display
Method Detail

getGroupName

public java.lang.String getGroupName()

getTabbedPane

public javax.swing.JTabbedPane getTabbedPane()

getComponent

public java.awt.Component getComponent()

getComponent

public java.awt.Component getComponent(java.lang.String indexName)

getTabList

public java.util.List<Tab> getTabList()

setDisplayedIndex

public void setDisplayedIndex(java.lang.String indexName)

getIndexNameSet

public java.util.Set<java.lang.String> getIndexNameSet()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object