Package adams.gui.event
Class TabClosedEvent
- java.lang.Object
-
- java.util.EventObject
-
- adams.gui.event.TabClosedEvent
-
- All Implemented Interfaces:
Serializable
public class TabClosedEvent extends EventObject
Event that gets sent when a tab gets closed.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Component
m_Component
the component that got removed.protected int
m_TabIndex
the index of the removed tab.-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description TabClosedEvent(BaseTabbedPane tabbedPane, int tabIndex, Component component)
Constructs a prototypical Event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Component
getComponent()
Returns the component that got removed.BaseTabbedPane
getTabbedPane()
Returns the tabbed pane that triggered the event.int
getTabIndex()
Returns the index of the removed tab.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Field Detail
-
m_TabIndex
protected int m_TabIndex
the index of the removed tab.
-
m_Component
protected Component m_Component
the component that got removed.
-
-
Constructor Detail
-
TabClosedEvent
public TabClosedEvent(BaseTabbedPane tabbedPane, int tabIndex, Component component)
Constructs a prototypical Event.- Parameters:
tabbedPane
- the tabbed pane that sent the eventtabIndex
- the index of the tab that got removedcomponent
- the component that got removed with the tab- Throws:
IllegalArgumentException
- if source is null
-
-
Method Detail
-
getTabbedPane
public BaseTabbedPane getTabbedPane()
Returns the tabbed pane that triggered the event.- Returns:
- the pane
-
getTabIndex
public int getTabIndex()
Returns the index of the removed tab.- Returns:
- the index
-
getComponent
public Component getComponent()
Returns the component that got removed.- Returns:
- the component
-
-