public class ScriptEvent
extends java.util.EventObject
ScriptEvents
are originated by scripts. When a
ScriptEvent
occurs, ScriptListeners
are
notified of the event and are expected to act appropriately.
Note that the application does absolutely nothing with
ScriptEvents
. It does not create them and it does not
respond to them. You can think of ScriptEvents
as
"interprocess communication" for scripts, allowing them to "chat"
amongst themselves.
ScriptListener
,
Serialized FormConstructor and Description |
---|
ScriptEvent(java.lang.Object source,
java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getValue()
Get the Object associated with this event.
|
public java.lang.Object getValue()
This is an arbitrary value that the originating script supplies. Scripts
receiving ScriptEvents
must be able to discern what this
value is and use it accordingly. The application does nothing to this
value except pass it along to the listeners.