Package adams.gui.event
Class SortSetupEvent
- java.lang.Object
-
- java.util.EventObject
-
- adams.gui.event.SortSetupEvent
-
- All Implemented Interfaces:
Serializable
public class SortSetupEvent extends EventObject
Event that gets sent when theSortPanelsetup changes.- 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 classSortSetupEvent.EventTypeThe type of event.
-
Field Summary
Fields Modifier and Type Field Description protected SortDefinitionPanelm_SortDefinitionPanelthe definition panel that was added/removed.protected SortSetupEvent.EventTypem_Typewhat type of event occurred.-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description SortSetupEvent(SortPanel source, SortDefinitionPanel definition, SortSetupEvent.EventType type)Initializes the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SortDefinitionPanelgetSortDefinitionPanel()Returns theSortDefinitionPanelthat was added/removed.SortPanelgetSortPanel()Returns theSortPanelthat triggered the eventSortSetupEvent.EventTypegetType()Returns the event type.StringtoString()Returns a short description of the object.-
Methods inherited from class java.util.EventObject
getSource
-
-
-
-
Field Detail
-
m_SortDefinitionPanel
protected SortDefinitionPanel m_SortDefinitionPanel
the definition panel that was added/removed.
-
m_Type
protected SortSetupEvent.EventType m_Type
what type of event occurred.
-
-
Constructor Detail
-
SortSetupEvent
public SortSetupEvent(SortPanel source, SortDefinitionPanel definition, SortSetupEvent.EventType type)
Initializes the event.- Parameters:
source- theSortPanelthat triggered the eventdefinition- the definition panel that was added or removed, null if resettype- the type of event
-
-
Method Detail
-
getSortPanel
public SortPanel getSortPanel()
Returns theSortPanelthat triggered the event- Returns:
- the panel
-
getSortDefinitionPanel
public SortDefinitionPanel getSortDefinitionPanel()
Returns theSortDefinitionPanelthat was added/removed.- Returns:
- the panel, null in case of reset
-
getType
public SortSetupEvent.EventType getType()
Returns the event type.- Returns:
- true if the panel was added
-
toString
public String toString()
Returns a short description of the object.- Overrides:
toStringin classEventObject- Returns:
- the description
-
-