Package adams.gui.event
Class SpreadSheetProcessorEvent
- java.lang.Object
-
- java.util.EventObject
-
- adams.gui.event.SpreadSheetProcessorEvent
-
- All Implemented Interfaces:
Serializable
public class SpreadSheetProcessorEvent extends EventObject
Events that get sent when changes occur in theSpreadSheetProcessorPanel
.- 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
SpreadSheetProcessorEvent.EventType
The type of event.
-
Field Summary
Fields Modifier and Type Field Description protected String
m_Message
optional message.protected SpreadSheetProcessorEvent.EventType
m_Type
what type of event occurred.-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description SpreadSheetProcessorEvent(SpreadSheetProcessorPanel source, SpreadSheetProcessorEvent.EventType type)
Initializes the event.SpreadSheetProcessorEvent(SpreadSheetProcessorPanel source, SpreadSheetProcessorEvent.EventType type, String message)
Initializes the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
Returns the optional message.SpreadSheetProcessorPanel
getSpreadSheetProcessorPanel()
Returns theSpreadSheetProcessorPanel
that triggered the eventSpreadSheetProcessorEvent.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_Type
protected SpreadSheetProcessorEvent.EventType m_Type
what type of event occurred.
-
m_Message
protected String m_Message
optional message.
-
-
Constructor Detail
-
SpreadSheetProcessorEvent
public SpreadSheetProcessorEvent(SpreadSheetProcessorPanel source, SpreadSheetProcessorEvent.EventType type)
Initializes the event.- Parameters:
source
- theSqlQueryPanel
that triggered the eventtype
- the type of event
-
SpreadSheetProcessorEvent
public SpreadSheetProcessorEvent(SpreadSheetProcessorPanel source, SpreadSheetProcessorEvent.EventType type, String message)
Initializes the event.- Parameters:
source
- theSqlQueryPanel
that triggered the eventtype
- the type of eventmessage
- the optional message, can be null
-
-
Method Detail
-
getSpreadSheetProcessorPanel
public SpreadSheetProcessorPanel getSpreadSheetProcessorPanel()
Returns theSpreadSheetProcessorPanel
that triggered the event- Returns:
- the panel
-
getType
public SpreadSheetProcessorEvent.EventType getType()
Returns the event type.- Returns:
- true if the panel was added
-
getMessage
public String getMessage()
Returns the optional message.- Returns:
- the message, null if none available
-
toString
public String toString()
Returns a short description of the object.- Overrides:
toString
in classEventObject
- Returns:
- the description
-
-