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 classSpreadSheetProcessorEvent.EventTypeThe type of event.
-
Field Summary
Fields Modifier and Type Field Description protected Stringm_Messageoptional message.protected SpreadSheetProcessorEvent.EventTypem_Typewhat 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 StringgetMessage()Returns the optional message.SpreadSheetProcessorPanelgetSpreadSheetProcessorPanel()Returns theSpreadSheetProcessorPanelthat triggered the eventSpreadSheetProcessorEvent.EventTypegetType()Returns the event type.StringtoString()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- theSqlQueryPanelthat triggered the eventtype- the type of event
-
SpreadSheetProcessorEvent
public SpreadSheetProcessorEvent(SpreadSheetProcessorPanel source, SpreadSheetProcessorEvent.EventType type, String message)
Initializes the event.- Parameters:
source- theSqlQueryPanelthat triggered the eventtype- the type of eventmessage- the optional message, can be null
-
-
Method Detail
-
getSpreadSheetProcessorPanel
public SpreadSheetProcessorPanel getSpreadSheetProcessorPanel()
Returns theSpreadSheetProcessorPanelthat 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:
toStringin classEventObject- Returns:
- the description
-
-