.. _UIEvent: ================================================ UIEvent ================================================ Description ----------- Encapsulates input event information for an event that propagates through a container and control hierarchy. Implements W3C standard event handling. This object is passed to a function that you register to respond to events of a certain type that occur in a window or control. Use windowObj.addEventListener()?or controlObj.addEventListener() to register a handler function. Properties ^^^^^^^^^^ +------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bubbles` readonly | True if the event is of a type that bubbles. | +------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`cancelable` readonly | True if the default action associated with the event can be canceled with preventDefault(). | +------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`captures` readonly | True if this event can be captured. | +------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`currentTarget` readonly | The event target object which is currently handling the event. During capturing and bubbling, this is different from the property target. | +------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`detail` readonly | The click count for a mouse-click event. | +------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`eventPhase` readonly | The current phase of event propagation; one of none, target, capture, bubble. | +------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`target` readonly | The event target object for this event. | +------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`timeStamp` readonly | The date and time at which the event occurred. | +------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`type` readonly | The name of the event that this object represents. | +------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`view` readonly | The ScriptUI element that this event relates to. | +------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+ Constructors ^^^^^^^^^^^^ +------------------------------------------+-------------------+ | :ref:`UIEvent` readonly | Creates an event. | +------------------------------------------+-------------------+ Methods ^^^^^^^ +----------------------------------------------------------+---------------------------------------------------------------------------+ | :ref:`initEvent` readonly | Initializes a UI event as a core W3C event. | +----------------------------------------------------------+---------------------------------------------------------------------------+ | :ref:`initUIEvent` readonly | Initializes an event. | +----------------------------------------------------------+---------------------------------------------------------------------------+ | :ref:`preventDefault` readonly | Prevents the default action associated with this event from being called. | +----------------------------------------------------------+---------------------------------------------------------------------------+ | :ref:`stopPropagation` readonly | Stops the propagation of this event. | +----------------------------------------------------------+---------------------------------------------------------------------------+ .. container:: hide .. toctree:: :hidden: :maxdepth: 1 UIEvent/captures.rst UIEvent/bubbles.rst UIEvent/cancelable.rst UIEvent/currentTarget.rst UIEvent/eventPhase.rst UIEvent/target.rst UIEvent/timeStamp.rst UIEvent/type.rst UIEvent/view.rst UIEvent/detail.rst UIEvent/preventDefault.rst UIEvent/stopPropagation.rst UIEvent/initEvent.rst UIEvent/initUIEvent.rst UIEvent/UIEvent.rst