goog.events.Event
of a
particular type.
![]()
Asserts an event target exists. This will fail if target is not defined.
TODO(nnaze): Gradually add this to the methods in this file, and eventually
update the method signatures to not take nullables. See http://b/8961907
Arguments:
Returns: !EventTarget
The target, guaranteed to exist.
|
code » | ||||||
Simulate a blur event on the given target.
Arguments:
Returns: boolean
The value returned by firing the blur browser event,
which returns false iff 'preventDefault' was invoked.
|
code » | ||||||
Simulates an event's capturing and bubbling phases.
Arguments:
Returns: boolean
The returnValue of the event: false if preventDefault() was
called on it, true otherwise.
|
code » | ||||||
Simulates a click event on the given target. IE only supports click with
the left mouse button.
Arguments:
Returns: boolean
The returnValue of the event: false if preventDefault() was
called on it, true otherwise.
|
code » | ||||||
![]()
Simulates a mousedown, mouseup, and then click on the given event target,
with the left mouse button.
Arguments:
Returns: boolean
The returnValue of the sequence: false if preventDefault()
was called on any of the events, true otherwise.
|
code » | ||||||
Simulates a contextmenu event on the given target.
Arguments:
Returns: boolean
The returnValue of the event: false if preventDefault() was
called on it, true otherwise.
|
code » | ||||||
Simulates a mousedown, contextmenu, and the mouseup on the given event
target, with the right mouse button.
Arguments:
Returns: boolean
The returnValue of the sequence: false if preventDefault()
was called on any of the events, true otherwise.
|
code » | ||||||
Simulates a double-click event on the given target. Always double-clicks
with the left mouse button since no browser supports double-clicking with
any other buttons.
Arguments:
Returns: boolean
The returnValue of the event: false if preventDefault() was
called on it, true otherwise.
|
code » | ||||||
Simulates the sequence of events fired by the browser when the user double-
clicks the given target.
Arguments:
Returns: boolean
The returnValue of the sequence: false if preventDefault()
was called on any of the events, true otherwise.
|
code » | ||||||
Simulate a focus event on the given target.
Arguments:
Returns: boolean
The value returned by firing the focus browser event,
which returns false iff 'preventDefault' was invoked.
|
code » | ||||||
Simulates a complete keystroke (keydown, keypress, and keyup). Note that
if preventDefault is called on the keydown, the keypress will not fire.
Arguments:
Returns: boolean
The returnValue of the sequence: false if preventDefault()
was called on any of the events, true otherwise.
|
code » | ||||||
![]()
Helper function to fire a mouse event.
with the left mouse button since no browser supports double-clicking with
any other buttons.
Arguments:
Returns: boolean
The returnValue of the event: false if preventDefault() was
called on it, true otherwise.
|
code » | ||||||
![]()
Simulates a mousedown event on the given target.
Arguments:
Returns: boolean
The returnValue of the event: false if preventDefault() was
called on it, true otherwise.
|
code » | ||||||
Simulates a mousemove event on the given target.
Arguments:
Returns: boolean
The returnValue of the event: false if preventDefault() was
called on it, true otherwise.
|
code » | ||||||
Simulates a mouseout event on the given target.
Arguments:
Returns: boolean
The returnValue of the event: false if preventDefault() was
called on it, true otherwise.
|
code » | ||||||
Simulates a mouseover event on the given target.
Arguments:
Returns: boolean
The returnValue of the event: false if preventDefault() was
called on it, true otherwise.
|
code » | ||||||
Simulates a mouseup event on the given target.
Arguments:
Returns: boolean
The returnValue of the event: false if preventDefault() was
called on it, true otherwise.
|
code » | ||||||
![]()
Simulates a complete keystroke (keydown, keypress, and keyup) when typing
a non-ASCII character. Same as fireKeySequence, the keypress will not fire
if preventDefault is called on the keydown.
Arguments:
Returns: boolean
The returnValue of the sequence: false if preventDefault()
was called on any of the events, true otherwise.
|
code » | ||||||
Simulates a popstate event on the given target.
|
code » | ||||||
Simulates a touchend event on the given target.
Arguments:
Returns: boolean
The returnValue of the event: false if preventDefault() was
called on it, true otherwise.
|
code » | ||||||
Simulates a touchmove event on the given target.
Arguments:
Returns: boolean
The returnValue of the event: false if preventDefault() was
called on it, true otherwise.
|
code » | ||||||
Simulates a simple touch sequence on the given target.
Arguments:
Returns: boolean
The returnValue of the sequence: false if preventDefault()
was called on any of the events, true otherwise.
|
code » | ||||||
Simulates a touchstart event on the given target.
Arguments:
Returns: boolean
The returnValue of the event: false if preventDefault() was
called on it, true otherwise.
|
code » | ||||||
No description.
Arguments:
Returns: boolean
Whether this is the Gecko/Mac's Meta-C/V/X, which
is broken and requires special handling.
|
code » | ||||||
![]()
Mixins a listenable into the given object. This turns the object
into a goog.events.Listenable. This is useful, for example, when
you need to mock a implementation of listenable and still want it
to work with goog.events.
Arguments:
|
code » | ||||||
![]()
A static helper function that sets the mouse position to the event.
Arguments:
|
code » |