public abstract class BaseEvent extends java.lang.Object implements Event
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
m_eventProperties |
Constructor and Description |
---|
BaseEvent()
Constructor.
|
BaseEvent(java.util.Map<java.lang.String,java.lang.Object> props)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getProperty(java.lang.String name)
Gets a named property for the event.
|
boolean |
isCanceled()
Returns true if the default action is to be prevented.
|
void |
preventDefault()
Invoking this method on an event will prevent it's default action, if any, from occuring.
|
protected java.util.Map<java.lang.String,java.lang.Object> m_eventProperties
public BaseEvent()
public BaseEvent(java.util.Map<java.lang.String,java.lang.Object> props)
public java.lang.Object getProperty(java.lang.String name)
getProperty
in interface Event
name
- the name of the propertypublic boolean isCanceled()
isCanceled
in interface Event
public void preventDefault()
preventDefault
in interface Event