Classes
AddedRemovedEvent
AlertElement
AnchorContainerElement
ArrowShape
ButtonElement
CanvasElement
CanvasManager
CheckboxElement
CheckboxSkinElement
CollectionChangedEvent
CollectionSort
ColorPickerButtonElement
ColorPickerElement
ContainerBaseElement
CursorDefinition
DataGridColumnDefinition
DataGridDataRenderer
DataGridElement
DataGridHeaderColumnDividerSkinElement
DataGridHeaderElement
DataGridHeaderItemRenderer
DataGridItemData
DataGridItemRendererBase
DataGridLabelItemRenderer
DataListData
DataListElement
DataRendererBaseElement
DataRendererLabelElement
DatePickerButtonElement
DatePickerElement
DispatcherEvent
DrawMetrics
DropdownArrowButtonSkinElement
DropdownBaseElement
DropdownElement
ElementEvent
ElementGridItemClickEvent
ElementKeyboardEvent
ElementListItemClickEvent
ElementMouseEvent
ElementMouseWheelEvent
EllipseShape
EventDispatcher
FillBase
GridContainerElement
GridContainerRowColumnDefinition
ImageElement
IpInputElement
LabelElement
LinearGradientFill
ListCollection
ListContainerElement
ProgressElement
RadioButtonElement
RadioButtonSkinElement
RoundedRectangleShape
ScrollBarElement
ScrollButtonSkinElement
ShapeBase
SkinnableElement
SolidFill
StyleableBase
StyleChangedEvent
StyleData
StyleDefinition
StyleProxy
TextAreaElement
TextElement
TextFieldElement
TextInputElement
TimeInputElement
ToggleButtonElement
ToggleButtonGroup
Tween
ViewportElement


ElementEvent

Base class for CanvasElement UI events. ElementEvents support
capture and bubbling phase when dispatched from CanvasElement(s). A bubbling event
invokes capture listeners from the root parent to the target child element and then
bubbling (normal) listeners from the target element to the root parent.
Bubbling events are used to detect events dispatched on child elements.
Capture events are typically not needed but sometimes useful if you wish to
detect an event before the target has a chance to process it.
For Example, when a Button dispatches a ElementMouseEvent.
The event propagates from the root parent (CanvasManager) down the display chain
from child to child dispatching capture events to any parents with registered listeners.
Once reaching the target element (Button) the event then propagates back up the display chain
from parent to parent dispatching bubbling events.
You may cancel the event at any time to stop the event flow.

Inheritance:     ElementEvent ➞ DispatcherEvent ➞ Object

Public Functions
Show Inherited
Function Defined By
ElementEvent(type, bubbles) [Constructor] ElementEvent
Creates new ElementEvent instance.
  type     :    String
String representing the event type
  bubbles     :    boolean
True if the ElementEvent should be dispatch capture and bubbling events.
 
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.
 
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")
 
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.
 


Internal Functions
Show Inherited