public class EventImpl extends Object implements Event
| Modifier and Type | Field and Description |
|---|---|
boolean |
bubbles |
boolean |
cancelable |
EventTarget |
currentTarget |
short |
eventPhase |
boolean |
initialized |
boolean |
preventDefault |
boolean |
stopPropagation |
EventTarget |
target |
protected long |
timeStamp |
String |
type |
AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE| Constructor and Description |
|---|
EventImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBubbles() |
boolean |
getCancelable() |
EventTarget |
getCurrentTarget() |
short |
getEventPhase() |
EventTarget |
getTarget() |
long |
getTimeStamp() |
String |
getType() |
void |
initEvent(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 String type
public EventTarget target
public 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(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.
public boolean getBubbles()
getBubbles in interface Eventpublic boolean getCancelable()
getCancelable in interface Eventpublic EventTarget getCurrentTarget()
getCurrentTarget in interface Eventpublic short getEventPhase()
getEventPhase in interface Eventpublic EventTarget getTarget()
public String getType()
public long getTimeStamp()
getTimeStamp in interface Eventpublic void stopPropagation()
stopPropagation in interface Eventpublic void preventDefault()
preventDefault in interface EventCopyright © 2017 JBoss by Red Hat. All rights reserved.