edu.jhu.tmaj.client.tables
Class DoubleTabbedPane

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

public final class DoubleTabbedPane
extends java.lang.Object

A TabbedPane that can have sub-tabs for each tab. This object is esentially a TabbedPane of TabbedPanes. This class only supports two levels, a main-tab (at the top), and sub-tabs that appear for each main-tab at the bottom. Thus the main TabbedPane will contain sub-TabbedPanes, and the sub-TabbedPanes will contain Components. All Components added to a DoubleTabbedPane are given an indexName. Any Component can be retrieved with the method getComponent(String indexName).


Constructor Summary
DoubleTabbedPane(java.util.List<TabGroup> tabGroupList)
          Constructs this object.
 
Method Summary
 java.util.List<java.lang.String> getAllIndices()
           
 java.awt.Component getComponent(java.lang.String indexName)
          Returns the Component which will be found in the one the Sub-TabbedPanes.
 javax.swing.JTabbedPane getTabbedPane()
          Returns the JTabbedPane this object has created.
 TabGroup getTabGroup(int index)
          Returns the TabGroup giving the main-index number.
 void setIndex(java.lang.String indexName)
          Sets the selected pane for this DoubleTabbedPane.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleTabbedPane

public DoubleTabbedPane(java.util.List<TabGroup> tabGroupList)
Constructs this object.

Parameters:
tabGroupList - each TabGroup in this list represents one main-tab. There may be several sub-tabs in each group.
Method Detail

getAllIndices

public java.util.List<java.lang.String> getAllIndices()

getTabbedPane

public javax.swing.JTabbedPane getTabbedPane()
Returns the JTabbedPane this object has created.


setIndex

public void setIndex(java.lang.String indexName)
Sets the selected pane for this DoubleTabbedPane. Both the main index and sub-index are handled.


getTabGroup

public TabGroup getTabGroup(int index)
Returns the TabGroup giving the main-index number.


getComponent

public java.awt.Component getComponent(java.lang.String indexName)
Returns the Component which will be found in the one the Sub-TabbedPanes.