Package com.mxgraph.util
Class mxEventObject
java.lang.Object
com.mxgraph.util.mxEventObject
Base class for objects that dispatch named events.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionmxEventObject
(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
Modifier and TypeMethodDescriptionvoid
consume()
Consumes the event.getName()
Returns the name of the event.getProperty
(String key) boolean
Returns true if the event has been consumed.
-
Field Details
-
name
Holds the name of the event. -
properties
Holds the properties of the event. -
consumed
protected boolean consumedHolds the consumed state of the event. Default is false.
-
-
Constructor Details
-
mxEventObject
Constructs a new event for the given name. -
mxEventObject
Constructs a new event for the given name and properties. The optional properties are specified using a sequence of keys and values, eg.new mxEventObject("eventName", key1, val1, .., keyN, valN))
-
-
Method Details
-
getName
Returns the name of the event. -
getProperties
-
getProperty
-
isConsumed
public boolean isConsumed()Returns true if the event has been consumed. -
consume
public void consume()Consumes the event.
-