The mxEventObject is a wrapper for all properties of a single event. Additionally, it also offers functions to consume the event and check if it was consumed as follows:
evt.consume(); INV: evt.isConsumed() == true
mxEventObject | The mxEventObject is a wrapper for all properties of a single event. |
Functions | |
mxEventObject | Constructs a new event object with the specified name. |
Variables | |
name | Holds the name. |
properties | Holds the properties as an associative array. |
consumed | Holds the consumed state. |
Functions | |
getName | Returns name. |
getProperties | Returns properties. |
getProperty | Returns the property for the given key. |
isConsumed | Returns true if the event has been consumed. |
consume | Consumes the event. |
mxEventObject.prototype.getName = function()
Returns name.
mxEventObject.prototype.getProperties = function()
Returns properties.
Constructs a new event object with the specified name.
function mxEventObject( name )
Holds the name.
mxEventObject.prototype.name
Holds the properties as an associative array.
mxEventObject.prototype.properties
Holds the consumed state.
mxEventObject.prototype.consumed
Returns name.
mxEventObject.prototype.getName = function()
Returns properties.
mxEventObject.prototype.getProperties = function()
Returns the property for the given key.
mxEventObject.prototype.getProperty = function( key )
Returns true if the event has been consumed.
mxEventObject.prototype.isConsumed = function()
Consumes the event.
mxEventObject.prototype.consume = function()