Methods Summary |
---|
public boolean | getBubbles()
return bubbles;
|
public boolean | getCancelable()
return cancelable;
|
public org.w3c.dom.events.EventTarget | getCurrentTarget()
return currentTarget;
|
public short | getEventPhase()
return eventPhase;
|
public org.w3c.dom.events.EventTarget | getTarget()
return target;
|
public long | getTimeStamp()
return timeStamp;
|
public java.lang.String | getType()
return type;
|
public 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. The
others are set, and reset, by the event subsystem during dispatch.
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.
type=eventTypeArg;
bubbles=canBubbleArg;
cancelable=cancelableArg;
initialized=true;
|
public void | preventDefault()Prevents any default processing built into the target node from
occurring.
preventDefault=true;
|
public void | stopPropagation()Causes exit from in-progress event dispatch before the next
currentTarget is selected. Replaces the preventBubble() and
preventCapture() methods which were present in early drafts;
they may be reintroduced in future levels of the DOM.
stopPropagation=true;
|