ui.ItemEvent Extends goog.events.Event
Generic ui event class for events that take a single item like a menu click event.

Inheritance

Constructor

goog.ui.ItemEvent(typetargetitem)

Parameters

type : string
Event Type.
target : Object
Reference to the object that is the target of this event.
item : Object
The item that was clicked.

Instance Methods

Public Protected Private
dispose()
Events don't need to be disposed. For backwards compatibility (goog.events.Event used to inherit goog.Disposable).
code »
disposeInternal()
Events don't need to be disposed. For backwards compatibility (goog.events.Event used to inherit goog.Disposable).
code »
preventDefault()
Prevents the default action, for example a link redirecting to a url.
code »
stopPropagation()
Stops event propagation.
code »

Instance Properties

constructor :
No description.
Code »
item :
Item for the event. The type of this object is specific to the type of event. For a menu, it would be the menu item that was clicked. For a listbox selection, it would be the listitem that was selected.
Code »
currentTarget :
Object that had the listener attached.
Code »
defaultPrevented :
Whether the default action has been prevented. This is a property to match the W3C specification at http://www.w3.org/TR/DOM-Level-3-Events/ #events-event-type-defaultPrevented. Must be treated as read-only outside the class.
Code »
propagationStopped_ :
Whether to cancel the event in internal capture/bubble processing for IE.
Code »
returnValue_ :
Return value for in internal capture/bubble processing for IE.
Code »
target :
Target of the event.
Code »
type :
Event type.
Code »

Static Properties

goog.ui.ItemEvent.superClass_ :
No description.
Code »

Package ui

Package Reference