Class ScriptExecutionEvent

  • All Implemented Interfaces:
    Serializable

    public class ScriptExecutionEvent
    extends EventObject
    Event that gets sent when a script is executed.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • ScriptExecutionEvent

        public ScriptExecutionEvent​(Script source,
                                    ScriptExecutionEvent.Type type)
        Initializes the event.
        Parameters:
        source - the script that triggered the event
        type - the type of finish
      • ScriptExecutionEvent

        public ScriptExecutionEvent​(Script source,
                                    ScriptExecutionEvent.Type type,
                                    Object additional)
        Initializes the event.
        Parameters:
        source - the script that triggered the event
        type - the type of finish
        additional - additional information, can be null
    • Method Detail

      • getScript

        public Script getScript()
        Returns the script that triggered the event.
        Returns:
        the script
      • hasAdditional

        public boolean hasAdditional()
        Returns whether additional information is available.
        Returns:
        true if additional information is available
        See Also:
        getAdditional()
      • getAdditional

        public Object getAdditional()
        Returns the additional information.
        Returns:
        the additional information, can be null