public class ScriptExecutionEvent extends EventObject
Modifier and Type | Class and Description |
---|---|
static class |
ScriptExecutionEvent.Type
Defines the type of event.
|
Constructor and Description |
---|
ScriptExecutionEvent(Script source,
ScriptExecutionEvent.Type type)
Initializes the event.
|
ScriptExecutionEvent(Script source,
ScriptExecutionEvent.Type type,
Object additional)
Initializes the event.
|
Modifier and Type | Method and Description |
---|---|
Object |
getAdditional()
Returns the additional information.
|
Script |
getScript()
Returns the script that triggered the event.
|
ScriptExecutionEvent.Type |
getType()
Returns the type of event.
|
boolean |
hasAdditional()
Returns whether additional information is available.
|
getSource, toString
public ScriptExecutionEvent(Script source, ScriptExecutionEvent.Type type)
source
- the script that triggered the eventtype
- the type of finishpublic ScriptExecutionEvent(Script source, ScriptExecutionEvent.Type type, Object additional)
source
- the script that triggered the eventtype
- the type of finishadditional
- additional information, can be nullpublic Script getScript()
public ScriptExecutionEvent.Type getType()
public boolean hasAdditional()
getAdditional()
public Object getAdditional()
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.