edu.jhu.tmaj.client.tables
Class TabChangeListener

java.lang.Object
  extended by edu.jhu.tmaj.client.tables.TabChangeListener
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.ChangeListener

final class TabChangeListener
extends java.lang.Object
implements javax.swing.event.ChangeListener

Added to a Sub-TabbedPane, this change listener changes the main-TabbedPane's title as indexes on the sub-tabbedPane are selected.


Constructor Summary
TabChangeListener(javax.swing.JTabbedPane tabbedPane, javax.swing.JTabbedPane subTabbedPane, int mainIndex)
          Constructs this object.
 
Method Summary
 void stateChanged(javax.swing.event.ChangeEvent e)
          Called when one of the user click one of the tabs of the sub-tabbedPanes, this will change the title of the main-tabbedPane.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabChangeListener

public TabChangeListener(javax.swing.JTabbedPane tabbedPane,
                         javax.swing.JTabbedPane subTabbedPane,
                         int mainIndex)
Constructs this object.

Parameters:
tabbedPane - the main-tabbedPane
subTabbedPane - one of the sub-tabbedPanes from the main-TabbedPane
mainIndex - the index on the main-tabbedPane on which the sub-tabbedPane appears
Method Detail

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
Called when one of the user click one of the tabs of the sub-tabbedPanes, this will change the title of the main-tabbedPane.

Specified by:
stateChanged in interface javax.swing.event.ChangeListener