Package adams.gui.event
Class RemoteControlCenterEvent
- java.lang.Object
-
- java.util.EventObject
-
- adams.gui.event.RemoteControlCenterEvent
-
- All Implemented Interfaces:
Serializable
public class RemoteControlCenterEvent extends EventObject
Events that the RemoteControlCenter send.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RemoteControlCenterEvent.EventType
The type of event.
-
Field Summary
Fields Modifier and Type Field Description protected AbstractRemoteControlCenterTab
m_SubPanel
the sub-panel that triggered the event (if any).protected RemoteControlCenterEvent.EventType
m_Type
the event type.-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description RemoteControlCenterEvent(RemoteControlCenterPanel source, RemoteControlCenterEvent.EventType type)
Constructs the event.RemoteControlCenterEvent(RemoteControlCenterPanel source, AbstractRemoteControlCenterTab subpanel, RemoteControlCenterEvent.EventType type)
Constructs the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RemoteControlCenterPanel
getPanel()
Returns the panel that triggered the event.AbstractRemoteControlCenterTab
getSubPanel()
Returns the sub-panel that triggered the event.RemoteControlCenterEvent.EventType
getType()
Returns the event type.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Field Detail
-
m_Type
protected RemoteControlCenterEvent.EventType m_Type
the event type.
-
m_SubPanel
protected AbstractRemoteControlCenterTab m_SubPanel
the sub-panel that triggered the event (if any).
-
-
Constructor Detail
-
RemoteControlCenterEvent
public RemoteControlCenterEvent(RemoteControlCenterPanel source, RemoteControlCenterEvent.EventType type)
Constructs the event.- Parameters:
source
- the panel that triggered the eventtype
- the event type
-
RemoteControlCenterEvent
public RemoteControlCenterEvent(RemoteControlCenterPanel source, AbstractRemoteControlCenterTab subpanel, RemoteControlCenterEvent.EventType type)
Constructs the event.- Parameters:
source
- the panel that triggered the eventsubpanel
- the sub-panel that triggered the event, can be nulltype
- the event type
-
-
Method Detail
-
getPanel
public RemoteControlCenterPanel getPanel()
Returns the panel that triggered the event.- Returns:
- the panel
-
getSubPanel
public AbstractRemoteControlCenterTab getSubPanel()
Returns the sub-panel that triggered the event.- Returns:
- the panel, can be null
-
getType
public RemoteControlCenterEvent.EventType getType()
Returns the event type.- Returns:
- the type
-
-