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 theInstancesSortPanelsetup 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 classInstancesSortSetupEvent.EventTypeThe type of event.
-
Field Summary
Fields Modifier and Type Field Description protected InstancesSortDefinitionPanelm_SortDefinitionPanelthe definition panel that was added/removed.protected InstancesSortSetupEvent.EventTypem_Typewhat 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 InstancesSortDefinitionPanelgetSortDefinitionPanel()Returns theSortDefinitionPanelthat was added/removed.InstancesSortPanelgetSortPanel()Returns theSortPanelthat triggered the eventInstancesSortSetupEvent.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 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- theSortPanelthat 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 theSortPanelthat triggered the event- Returns:
- the panel
-
getSortDefinitionPanel
public InstancesSortDefinitionPanel getSortDefinitionPanel()
Returns theSortDefinitionPanelthat 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:
toStringin classEventObject- Returns:
- the description
-
-