|
mxGraph 2.1.0.7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mxgraph.util.mxEventObject
public class mxEventObject
Base class for objects that dispatch named events.
Field Summary | |
---|---|
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String name
protected Map<String,Object> properties
protected boolean consumed
Constructor Detail |
---|
public mxEventObject(String name)
public mxEventObject(String name, Object... args)
new mxEventObject("eventName", key1, val1, .., keyN, valN))
Method Detail |
---|
public String getName()
public Map<String,Object> getProperties()
public Object getProperty(String key)
public boolean isConsumed()
public void consume()
|
mxGraph 2.1.0.7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |