| Modifier and Type | Field and Description |
|---|---|
| public boolean | |
| public boolean | |
| public EventTarget | |
| public short | |
| public boolean | |
| public boolean | |
| public boolean | |
| public EventTarget | |
| protected long | |
| public String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true iff this Event is of a class and type which supports bubbling. In the generic case, this is True.Implements org. |
| public boolean | Returns: true iff this Event is of a class and type which (a) has a Default Behavior in this DOM, and (b)allows cancellation (blocking) of that behavior. In the generic case, this is False.Implements org. |
| public EventTarget | Returns: the Node (EventTarget) whose EventListeners are currently being processed. During capture and bubble phases, this may not be the target node.Implements org. EventTarget whose
EventListeners are currently being processed.
|
| public short | Returns: the current processing phase for this event -- CAPTURING_PHASE, AT_TARGET, BUBBLING_PHASE. (There may be an internal DEFAULT_PHASE as well, but the users won't see it.)Implements org. |
| public EventTarget | Returns: the EventTarget (Node) to which the event was originally dispatched.Implements org. EventTarget to which the event was
originally dispatched.
|
| public long | getTimeStamp()
Implements org. |
| public String | Returns: event name as a stringImplements org. |
| public void | initEvent(String
Specifies the event type. This type may be any
event type currently defined in this specification or a new event
type.. The string must be an XML name. Any new event type must not
begin with any upper, lower, or mixed case version of the string
"DOM". This prefix is reserved for future DOM event sets. It is
also strongly recommended that third parties adding their own
events use their own prefix to avoid confusion and lessen the
probability of conflicts with other new events. eventTypeArg, boolean Specifies whether or not the event can bubble. canBubbleArg, boolean Specifies whether or not the event's default
action can be prevented. cancelableArg)Implements org. |
| public void | preventDefault()
Implements org. |
| public void | stopPropagation()
Implements org. |
| bubbles | back to summary |
|---|---|
| public boolean bubbles | |
| cancelable | back to summary |
|---|---|
| public boolean cancelable | |
| currentTarget | back to summary |
|---|---|
| public EventTarget currentTarget | |
| eventPhase | back to summary |
|---|---|
| public short eventPhase | |
| initialized | back to summary |
|---|---|
| public boolean initialized | |
| preventDefault | back to summary |
|---|---|
| public boolean preventDefault | |
| stopPropagation | back to summary |
|---|---|
| public boolean stopPropagation | |
| target | back to summary |
|---|---|
| public EventTarget target | |
| timeStamp | back to summary |
|---|---|
| protected long timeStamp | |
| type | back to summary |
|---|---|
| public String type | |
| EventImpl | back to summary |
|---|---|
| public EventImpl() | |
| getBubbles | back to summary |
|---|---|
| public boolean getBubbles() Implements org. Doc from org. Used to indicate whether or not an event is a bubbling event. If the event can bubble the value is true, else the value is false.
| |
| getCancelable | back to summary |
|---|---|
| public boolean getCancelable() Implements org. Doc from org. Used to indicate whether or not an event can have its default action prevented. If the default action can be prevented the value is true, else the value is false.
| |
| getCurrentTarget | back to summary |
|---|---|
| public EventTarget getCurrentTarget() Implements org. Doc from org. Used to indicate the
| |
| getEventPhase | back to summary |
|---|---|
| public short getEventPhase() Implements org. Doc from org. Used to indicate which phase of event flow is currently being evaluated.
| |
| getTarget | back to summary |
|---|---|
| public EventTarget getTarget() Implements org. Doc from org. Used to indicate the
| |
| getTimeStamp | back to summary |
|---|---|
| public long getTimeStamp() Implements org. Doc from org. Used to specify the time (in milliseconds relative to the epoch) at
which the event was created. Due to the fact that some systems may
not provide this information the value of | |
| getType | back to summary |
|---|---|
| public String getType() Implements org. Doc from org. The name of the event (case-insensitive). The name must be an XML name.
| |
| initEvent | back to summary |
|---|---|
| public void initEvent(String eventTypeArg, boolean canBubbleArg, boolean cancelableArg) Implements org. 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.
| |
| preventDefault | back to summary |
|---|---|
| public void preventDefault() Implements org. Prevents any default processing built into the target node from occurring. | |
| stopPropagation | back to summary |
|---|---|
| public void stopPropagation() Implements org. 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. | |