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