net.infonode.tabbedpanel
Class TabEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.infonode.tabbedpanel.TabEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
TabDragEvent, TabRemovedEvent, TabStateChangedEvent

public class TabEvent
extends java.util.EventObject

TabEvent is the root event for all tab events. It contains information about the source, i.e. the object (tab or tabbedPanel) that generated this event and the tab that was affected by this event.

Version:
$Revision: 1.10 $
Author:
$Author: jesper $
See Also:
TabListener, TabbedPanel, Tab, Serialized Form

Field Summary
private  Tab tab
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TabEvent(java.lang.Object source, Tab tab)
          Constructs a TabEvent
 
Method Summary
 Tab getTab()
          Gets the tab that is the source for this event
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tab

private Tab tab
Constructor Detail

TabEvent

TabEvent(java.lang.Object source,
         Tab tab)
Constructs a TabEvent

Parameters:
source - the Tab or TabbedPanel that is the source for this event
tab - the tab on which the event occurred
Method Detail

getTab

public Tab getTab()
Gets the tab that is the source for this event

Returns:
the Tab affected by this event or null if no tab was affected