Package weka.gui.scripting.event
Class ScriptExecutionEvent
java.lang.Object
java.util.EventObject
weka.gui.scripting.event.ScriptExecutionEvent
- All Implemented Interfaces:
Serializable
Event that gets sent when a script is executed.
- Version:
- $Revision: 8034 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Defines the type of event. -
Constructor Summary
ConstructorDescriptionScriptExecutionEvent
(Script source, ScriptExecutionEvent.Type type) Initializes the event.ScriptExecutionEvent
(Script source, ScriptExecutionEvent.Type type, Object additional) Initializes the event. -
Method Summary
Modifier and TypeMethodDescriptionReturns the additional information.Returns the script that triggered the event.getType()
Returns the type of event.boolean
Returns whether additional information is available.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
ScriptExecutionEvent
Initializes the event.- Parameters:
source
- the script that triggered the eventtype
- the type of finish
-
ScriptExecutionEvent
Initializes the event.- Parameters:
source
- the script that triggered the eventtype
- the type of finishadditional
- additional information, can be null
-
-
Method Details
-
getScript
Returns the script that triggered the event.- Returns:
- the script
-
getType
Returns the type of event.- Returns:
- the type
-
hasAdditional
public boolean hasAdditional()Returns whether additional information is available.- Returns:
- true if additional information is available
- See Also:
-
getAdditional
Returns the additional information.- Returns:
- the additional information, can be null
-