public class ObjectEvent
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ObjectEvent.PrimitiveEventType
Primitive Event type
|
Modifier and Type | Field and Description |
---|---|
static ObjectEvent.PrimitiveEventType |
OBJECT_DESTROYED |
static ObjectEvent.PrimitiveEventType |
OBJECT_REMOVED |
protected java.util.Map |
parameters
The parameters.
|
protected java.lang.Object |
type
Event type.
|
Constructor and Description |
---|
ObjectEvent(java.lang.Object type)
Creates a new ObjectEvent
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getParameter(java.lang.String parameter)
Returns an event parameter.
|
java.util.Set |
getParameters()
Returns the parameters.
|
java.lang.Object |
getType()
Returns the event type.
|
boolean |
hasParameters()
Returns whether the event has parameters.
|
void |
setParameter(java.lang.String parameter,
java.lang.Object obj)
Sets an event parameter.
|
public static final ObjectEvent.PrimitiveEventType OBJECT_DESTROYED
public static final ObjectEvent.PrimitiveEventType OBJECT_REMOVED
protected java.lang.Object type
protected java.util.Map parameters
public ObjectEvent(java.lang.Object type)
type
- event typepublic java.lang.Object getType()
public boolean hasParameters()
public java.util.Set getParameters()
public java.lang.Object getParameter(java.lang.String parameter)
parameter
- parameter namepublic void setParameter(java.lang.String parameter, java.lang.Object obj)
parameter
- parameter nameobj
- parameter object