All Packages Class Hierarchy This Package Previous Next Index
Class improv.event.ImprovEvent
java.lang.Object
|
+----improv.event.ImprovEvent
- public final class ImprovEvent
- extends Object
The ImprovEvent object is used by the ImprovObservable class to pass data to corresponding ImprovObservers.
-
arg
-
-
id
-
-
target
-
-
when
-
-
ImprovEvent()
- The default contstructor
-
ImprovEvent(Object, int, Object)
- Create a new ImprovEvent and initialize it.
-
setEvent(Object, int, Object)
- Set the event values for an existing ImprovEvent object.
id
public int id
target
public Object target
arg
public Object arg
when
public long when
ImprovEvent
public ImprovEvent()
- The default contstructor
ImprovEvent
public ImprovEvent(Object target,
int id,
Object argument)
- Create a new ImprovEvent and initialize it.
- Parameters:
- target - generally the object generating the event
- id - a numerical id generally corresponding to the target type
- argument - an optional argument passed to the observer when an event is generated.
This argument is passed to the ImprovObservable object when the ImprovObserver is registered (through the addObserver method)
setEvent
public void setEvent(Object target,
int id,
Object argument)
- Set the event values for an existing ImprovEvent object.
- Parameters:
- target - generally the object generating the event
- id - a numerical id generally corresponding to the target type
- argument - an optional argument passed to the observer when an event is generated.
This argument is passed to the ImprovObservable object when the ImprovObserver is registered (through the addObserver method)
All Packages Class Hierarchy This Package Previous Next Index