| Function |
Defined By |
|
ElementGridItemClickEvent(item, index, columnIndex)
|
[Constructor] ElementGridItemClickEvent
|
Creates new ElementGridItemClickEvent instance.
| |
item : Object
The collection item associated with the DataRenderer that was clicked.
|
| |
index : int
The collection index associated with the DataRenderer that was clicked.
|
| |
columnIndex : int
The column index associated with the DataRenderer that was clicked.
|
|
|
|
cancelEvent()
|
DispatcherEvent
|
Prevents processing of any subsequent event handlers
|
|
|
clone()
|
DispatcherEvent
|
Duplicates an instance of an Event or Event subclass.
The event dispatcher calls this when dispatching or re-dispatching events to multiple targets.
When creating a custom event class, you should override this and call the base class's clone()
then copy the new event properties to the cloned instance.
| |
returns : DispatcherEvent
A new event object instance identical to the cloned instance.
|
|
|
|
getColumnIndex()
|
ElementGridItemClickEvent
|
Gets the column index that dispatched the event.
| |
returns : int
Column index.
|
|
|
|
getCurrentTarget()
|
ElementEvent
|
Gets the element that is currently dispatching the event. Note that is
is not always the same as getTarget() which returns the element that
originally dispatched the event.
For Example, when a click listener is registered to an element, and a child of that
element dispatches a click (like a Button), the target will be the child (Button) and the
current target will be the element that registered the click listener.
| |
returns : CanvasElement
The element that is currently dispatching the event.
|
|
|
|
getDefaultPrevented()
|
ElementEvent
|
Gets the default prevented state of the event.
| |
returns : boolean
Returns true if preventDefault() has been called, false otherwise.
|
|
|
|
getIndex()
|
ElementListItemClickEvent
|
Gets the collection index associated with the DataRenderer that was clicked.
| |
returns : int
The collection index associated with the DataRenderer that was clicked.
|
|
|
|
getIsCanceled()
|
DispatcherEvent
|
Checks if the event has been canceled
| |
returns : boolean
Returns true if the event has been canceled, otherwise false
|
|
|
|
getItem()
|
ElementListItemClickEvent
|
Gets the collection item associated with the DataRenderer that was clicked.
| |
returns : Object
The collection item associated with the DataRenderer that was clicked.
|
|
|
|
getPhase()
|
ElementEvent
|
Gets the current phase of the event. ("bubbling" or "capture")
| |
returns : String
String representing the event's current phase when dispatched ("bubbling" or "capture")
|
|
|
|
getTarget()
|
DispatcherEvent
|
Gets event target
| |
returns : Object
Object that originally dispatched the event
|
|
|
|
getType()
|
DispatcherEvent
|
Gets the event type
| |
returns : String
String representing the event type
|
|
|
|
preventDefault()
|
ElementEvent
|
Prevents the event's typical action from being taken. This is also sometimes used to "consume"
the event so it is only processed once. Such as preventing a mousewheel event from scrolling multiple
parent/child views at once. A scroll-able child will call preventDefault() to "consume" the event
and prevent any parents from also scrolling.
|
|