Class 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 $
    See Also:
    TabListener, TabbedPanel, Tab, Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Tab tab  
      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      TabEvent​(java.lang.Object source, Tab tab)
      Constructs a TabEvent
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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