Package adams.gui.event
Class TabVisibilityChangeEvent
- java.lang.Object
-
- java.util.EventObject
-
- adams.gui.event.TabVisibilityChangeEvent
-
- All Implemented Interfaces:
Serializable
public class TabVisibilityChangeEvent extends EventObject
Event that gets sent when tabs get hidden or set visible in aBaseTabbedPaneWithTabHiding
.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
BaseTabbedPaneWithTabHiding
, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TabVisibilityChangeEvent.Type
The type of event.
-
Field Summary
Fields Modifier and Type Field Description protected Component
m_Component
the component of the tab that was made visible or got hidden.protected TabVisibilityChangeEvent.Type
m_Type
the type of event.-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description TabVisibilityChangeEvent(BaseTabbedPaneWithTabHiding source, TabVisibilityChangeEvent.Type type, Component component)
Initializes the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Component
getComponent()
Returns the component of the tab that was hidden or made visible.BaseTabbedPaneWithTabHiding
getTabbedPane()
Returns the tabbed pane that triggered the event.TabVisibilityChangeEvent.Type
getType()
Returns the type of event.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Field Detail
-
m_Type
protected TabVisibilityChangeEvent.Type m_Type
the type of event.
-
m_Component
protected Component m_Component
the component of the tab that was made visible or got hidden.
-
-
Constructor Detail
-
TabVisibilityChangeEvent
public TabVisibilityChangeEvent(BaseTabbedPaneWithTabHiding source, TabVisibilityChangeEvent.Type type, Component component)
Initializes the event.- Parameters:
source
- the tabbed pane that triggered the eventtype
- the type of eventcomponent
- the component of the tab
-
-
Method Detail
-
getTabbedPane
public BaseTabbedPaneWithTabHiding getTabbedPane()
Returns the tabbed pane that triggered the event.- Returns:
- the tabbed pane
-
getType
public TabVisibilityChangeEvent.Type getType()
Returns the type of event.- Returns:
- the type
-
getComponent
public Component getComponent()
Returns the component of the tab that was hidden or made visible.- Returns:
- the component
-
-