Object
goog.Disposable
goog.events.Event
goog.events.BrowserEvent
|
opt_e
: Event
Browser event object.
|
|
opt_currentTarget
:
Current target for event.
|
disposeInternal()
No description.
|
code » | |||
getBrowserEvent()
⇒ Event
No description.
Returns:
Event
The underlying browser event object.
|
code » | |||
init(e, opt_currentTarget)
Accepts a browser event object and creates a patched, cross browser event
object.
Arguments:
|
code » | |||
|
Tests to see which button was pressed during the event. This is really only
useful in IE and Gecko browsers. And in IE, it's only useful for
mousedown/mouseup events, because click only fires for the left mouse button.
Safari 2 only reports the left button being clicked, and uses the value '1'
instead of 0. Opera only reports a mousedown event for the middle button, and
no mouse events for the right button. Opera has default behavior for left and
middle click that can only be overridden via a configuration setting.
There's a nice table of this mess at http://www.unixpapa.com/js/mouse.html.
Arguments:
Returns:
True if button was pressed.
|
code » | |||
preventDefault()
No description.
|
code » | |||
stopPropagation()
No description.
|
code » |
dispose()
No description.
|
code » | |
disposeInternal()
Deletes or nulls out any references to COM objects, DOM nodes, or other
disposable objects. Classes that extend {@code goog.Disposable} should
override this method. For example:
mypackage.MyClass = function() {
goog.Disposable.call(this);
// Constructor logic specific to MyClass.
...
};
goog.inherits(mypackage.MyClass, goog.Disposable);
mypackage.MyClass.prototype.disposeInternal = function() {
mypackage.MyClass.superClass_.disposeInternal.call(this);
// Dispose logic specific to MyClass.
...
};
|
code » | |
|
No description.
Returns:
Whether the object has been disposed of.
|
code » | |
|
No description.
Returns:
Whether the object has been disposed of.
|
code » |
|
Whether alt was pressed at time of event.
|
Code » | |
|
Which mouse button was pressed.
|
Code » | |
|
Keycode of key press.
|
Code » | |
|
X-coordinate relative to the window.
|
Code » | |
|
Y-coordinate relative to the window.
|
Code » | |
|
Whether control was pressed at time of event.
|
Code » | |
event_
: Event
The browser event object.
|
Code » | |
|
Keycode of key press.
|
Code » | |
|
Whether the meta key was pressed at time of event.
|
Code » | |
|
X-coordinate relative to target.
|
Code » | |
|
Y-coordinate relative to target.
|
Code » | |
|
For mouseover and mouseout events, the related object for the event.
|
Code » | |
|
X-coordinate relative to the monitor.
|
Code » | |
|
Y-coordinate relative to the monitor.
|
Code » | |
|
Whether shift was pressed at time of event.
|
Code » | |
|
Target that fired the event.
|
Code » |