public class EventImpl
extends java.lang.Object
implements org.w3c.dom.events.Event
| Modifier and Type | Field and Description |
|---|---|
boolean |
bubbles |
boolean |
cancelable |
org.w3c.dom.events.EventTarget |
currentTarget |
short |
eventPhase |
boolean |
initialized |
boolean |
preventDefault |
boolean |
stopPropagation |
org.w3c.dom.events.EventTarget |
target |
protected long |
timeStamp |
java.lang.String |
type |
| Constructor and Description |
|---|
EventImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBubbles() |
boolean |
getCancelable() |
org.w3c.dom.events.EventTarget |
getCurrentTarget() |
short |
getEventPhase() |
org.w3c.dom.events.EventTarget |
getTarget() |
long |
getTimeStamp() |
java.lang.String |
getType() |
void |
initEvent(java.lang.String eventTypeArg,
boolean canBubbleArg,
boolean cancelableArg)
The DOM doesn't deal with constructors, so instead we have an
initializer call to set most of the read-only fields.
|
void |
preventDefault()
Prevents any default processing built into the target node from
occurring.
|
void |
stopPropagation()
Causes exit from in-progress event dispatch before the next
currentTarget is selected.
|
public java.lang.String type
public org.w3c.dom.events.EventTarget target
public org.w3c.dom.events.EventTarget currentTarget
public short eventPhase
public boolean initialized
public boolean bubbles
public boolean cancelable
public boolean stopPropagation
public boolean preventDefault
protected long timeStamp
public void initEvent(java.lang.String eventTypeArg,
boolean canBubbleArg,
boolean cancelableArg)
Note that init() -- and the subclass-specific initWhatever() calls -- may be reinvoked. At least one initialization is required; repeated initializations overwrite the event with new values of their parameters.
initEvent in interface org.w3c.dom.events.Eventpublic boolean getBubbles()
getBubbles in interface org.w3c.dom.events.Eventpublic boolean getCancelable()
getCancelable in interface org.w3c.dom.events.Eventpublic org.w3c.dom.events.EventTarget getCurrentTarget()
getCurrentTarget in interface org.w3c.dom.events.Eventpublic short getEventPhase()
getEventPhase in interface org.w3c.dom.events.Eventpublic org.w3c.dom.events.EventTarget getTarget()
getTarget in interface org.w3c.dom.events.Eventpublic java.lang.String getType()
getType in interface org.w3c.dom.events.Eventpublic long getTimeStamp()
getTimeStamp in interface org.w3c.dom.events.Eventpublic void stopPropagation()
stopPropagation in interface org.w3c.dom.events.Eventpublic void preventDefault()
preventDefault in interface org.w3c.dom.events.EventCopyright ? 1999-2010 The Apache Software Foundation. All Rights Reserved.