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


DropdownBaseElement

DropdownBaseElement is an abstract base class for buttons that display
a pop up when clicked.
The DropdownBase itself contains a child button which is used to render
the divider line and arrow. DropdownBase proxies its SkinState style to the arrow
button so the arrow button will change states along with the DropdownBase itself.
See the default skin for the arrow button, DropdownArrowButtonSkinElement for additional styles.

Inheritance:     DropdownBaseElement ➞ ButtonElementSkinnableElementCanvasElementStyleableBaseStyleDefinitionEventDispatcher ➞ Object

Styles
Show Inherited
Style Defined By
ArrowButtonClass     :    CanvasElement DropdownBaseElement
The CanvasElement or subclass constructor to be used for the arrow icon. Defaults to Button.
Note that Dropdown proxies its SkinState style to the arrow button so the arrow will change states with the Dropdown.
 
ArrowButtonStyle     :    StyleDefinition DropdownBaseElement
The StyleDefinition or [StyleDefinition] array to apply to the arrow icon class.
 
OpenCloseTweenDuration     :    Number DropdownBaseElement
Duration in milliseconds the open and close animation should run.
 
OpenCloseTweenEasingFunction     :    Function DropdownBaseElement
Easing function used on the open and close animations. Defaults to Tween.easeInOutSine().
 


Events
Show Inherited
Event Defined By
closed     :    DispatcherEvent DropdownBaseElement
Dispatched when the pop up is closed as a result of user input.
 
opened     :    DispatcherEvent DropdownBaseElement
Dispatched when the pop up is opened as a result of user input.
 


Public Functions
Show Inherited
Function Defined By
DropdownBaseElement() [Constructor] DropdownBaseElement
Creates new DropdownBaseElement instance.
 
close(animate) DropdownBaseElement
Closes the pop up.
  animate     :    boolean
When true animates the disappearance of the pop-up.
 
open(animate) DropdownBaseElement
Opens the pop up.
  animate     :    boolean
When true animates the appearance of the pop-up.
 


Internal Members
Show Inherited


Internal Functions
Show Inherited
Function Defined By
_addPopup() DropdownBaseElement
Adds the pop up container to manager and registers event listeners.
  returns     :    bool
Returns true if the pop up was added, false if the pop up already exists.
 
_createPopup() DropdownBaseElement
Stub for creating the pop up element to be added to the pop up container.
Override this and return a new CanvasElement instance to be used as the pop up.
  returns     :    CanvasElement
New pop up instance.
 
_getClosedTweenValue() DropdownBaseElement
Returns value to be used for the pop up's fully closed position.
Override this to supply values for the open/close tween start & stop.
  returns     :    Number
Value for open/closed tween's fully closed position.
 
_getOpenedTweenValue() DropdownBaseElement
Returns value to be used for the pop up's fully open position.
Override this to supply values for the open/close tween start & stop.
  returns     :    Number
Value for open/closed tween's fully opened position.
 
_getTweenRunning() DropdownBaseElement
Returns true if the open/close tween is running.
Needed by subclasses for positioning the pop up element.
  returns     :    boolean
True if the open/close tween is running, otherwise false.
 
_onDropdownBaseManagerCaptureEvent(event) DropdownBaseElement
Capture event handler for CanvasManager "wheel" and "mousedown". Used to close
the pop up when events happen outside the DropdownBase or pop up elements.
Only active when pop up is open.
  event     :    ElementEvent
ElementEvent to process.
 
_onDropdownManagerResizeEvent(event) DropdownBaseElement
Capture event handler for CanvasManager "resize". Used to close the pop up.
Only active when pop up is open.
  event     :    DispatcherEvent
DispatcherEvent to process.
 
_removePopup() DropdownBaseElement
Removes the pop up container from manager and cleans up event listeners.
  returns     :    bool
Returns true if the pop up was removed, false if the pop up does not exist.
 
_updateTweenPosition(value) DropdownBaseElement
Stub for updating the popup when the tween value changes.
Override this to adjust the popup during the open/close tween.
  value     :    Number
Current tween value.