public class mxEventObject
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
consumed
Holds the consumed state of the event.
|
protected java.lang.String |
name
Holds the name of the event.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
properties
Holds the properties of the event.
|
Constructor and Description |
---|
mxEventObject(java.lang.String name)
Constructs a new event for the given name.
|
mxEventObject(java.lang.String name,
java.lang.Object... args)
Constructs a new event for the given name and properties.
|
Modifier and Type | Method and Description |
---|---|
void |
consume()
Consumes the event.
|
java.lang.String |
getName()
Returns the name of the event.
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties() |
java.lang.Object |
getProperty(java.lang.String key) |
boolean |
isConsumed()
Returns true if the event has been consumed.
|
protected java.lang.String name
protected java.util.Map<java.lang.String,java.lang.Object> properties
protected boolean consumed
public mxEventObject(java.lang.String name)
public mxEventObject(java.lang.String name, java.lang.Object... args)
new mxEventObject("eventName", key1, val1, .., keyN, valN))
public java.lang.String getName()
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
public java.lang.Object getProperty(java.lang.String key)
public boolean isConsumed()
public void consume()
Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.