flash.events
Class Event

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by flash.events.Event
Direct Known Subclasses:
KeyboardEvent, MouseEvent

public class Event
extends com.google.gwt.core.client.JavaScriptObject

Implements flash.events.Event


Constructor Summary
protected Event()
           
 
Method Summary
 boolean getBubbles()
          Indicates whether an event is a bubbling event.
 boolean getCancelable()
          Indicates whether an event is a bubbling event.
 com.google.gwt.core.client.JavaScriptObject getCurrentTarget()
          The object that is actively processing the Event object with an event listener.
 int getEventPhase()
          The current phase in the event flow.
 com.google.gwt.core.client.JavaScriptObject getTarget()
          The event target.
 EventType getType()
          The type of event.
 boolean isDefaultPrevented()
          Checks whether the preventDefault() method has been called on the event.
 void preventDefault()
          Cancels an event's default behavior if that behavior can be canceled.
 void stopImmediatePropagation()
          Prevents processing of any event listeners in the current node and any subsequent nodes in the event flow.
 void stopPropagation()
          Prevents processing of any event listeners in nodes subsequent to the current node in the event flow.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Event

protected Event()
Method Detail

getBubbles

public final boolean getBubbles()
Indicates whether an event is a bubbling event.

Returns:

getCancelable

public final boolean getCancelable()
Indicates whether an event is a bubbling event.

Returns:

getCurrentTarget

public final com.google.gwt.core.client.JavaScriptObject getCurrentTarget()
The object that is actively processing the Event object with an event listener.

Returns:

getEventPhase

public final int getEventPhase()
The current phase in the event flow.

Returns:

getTarget

public final com.google.gwt.core.client.JavaScriptObject getTarget()
The event target.

Returns:

getType

public final EventType getType()
The type of event.

Returns:

isDefaultPrevented

public final boolean isDefaultPrevented()
Checks whether the preventDefault() method has been called on the event.


preventDefault

public final void preventDefault()
Cancels an event's default behavior if that behavior can be canceled.


stopImmediatePropagation

public final void stopImmediatePropagation()
Prevents processing of any event listeners in the current node and any subsequent nodes in the event flow.


stopPropagation

public final void stopPropagation()
Prevents processing of any event listeners in nodes subsequent to the current node in the event flow.



Copyright © 2013. All Rights Reserved.