Package adams.gui.event
Class InstancesSortSetupEvent
- java.lang.Object
-
- java.util.EventObject
-
- adams.gui.event.InstancesSortSetupEvent
-
- All Implemented Interfaces:
Serializable
public class InstancesSortSetupEvent extends EventObject
Event that gets sent when theInstancesSortPanel
setup changes.- 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
InstancesSortSetupEvent.EventType
The type of event.
-
Field Summary
Fields Modifier and Type Field Description protected InstancesSortDefinitionPanel
m_SortDefinitionPanel
the definition panel that was added/removed.protected InstancesSortSetupEvent.EventType
m_Type
what type of event occurred.-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description InstancesSortSetupEvent(InstancesSortPanel source, InstancesSortDefinitionPanel definition, InstancesSortSetupEvent.EventType type)
Initializes the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstancesSortDefinitionPanel
getSortDefinitionPanel()
Returns theSortDefinitionPanel
that was added/removed.InstancesSortPanel
getSortPanel()
Returns theSortPanel
that triggered the eventInstancesSortSetupEvent.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 InstancesSortDefinitionPanel m_SortDefinitionPanel
the definition panel that was added/removed.
-
m_Type
protected InstancesSortSetupEvent.EventType m_Type
what type of event occurred.
-
-
Constructor Detail
-
InstancesSortSetupEvent
public InstancesSortSetupEvent(InstancesSortPanel source, InstancesSortDefinitionPanel definition, InstancesSortSetupEvent.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 InstancesSortPanel getSortPanel()
Returns theSortPanel
that triggered the event- Returns:
- the panel
-
getSortDefinitionPanel
public InstancesSortDefinitionPanel getSortDefinitionPanel()
Returns theSortDefinitionPanel
that was added/removed.- Returns:
- the panel, null in case of reset
-
getType
public InstancesSortSetupEvent.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
-
-