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 theSortPanel
setup 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 class
SortSetupEvent.EventType
The type of event.
-
Field Summary
Fields Modifier and Type Field Description protected SortDefinitionPanel
m_SortDefinitionPanel
the definition panel that was added/removed.protected SortSetupEvent.EventType
m_Type
what 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 SortDefinitionPanel
getSortDefinitionPanel()
Returns theSortDefinitionPanel
that was added/removed.SortPanel
getSortPanel()
Returns theSortPanel
that triggered the eventSortSetupEvent.EventType
getType()
Returns the event type.String
toString()
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
- theSortPanel
that 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 theSortPanel
that triggered the event- Returns:
- the panel
-
getSortDefinitionPanel
public SortDefinitionPanel getSortDefinitionPanel()
Returns theSortDefinitionPanel
that 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:
toString
in classEventObject
- Returns:
- the description
-
-