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


SkinnableElement

Abstract base class for skin-able components. Allows changing states, stores a list
of skins per state and toggles skin visibility per the current state.
Any states may be used. As an example, ButtonElement uses "up", "over", "down", and "disabled" states.
Override appropriate functions to return skin classes and style definitions per the element's states.
SkinnableElement does not render itself, its skins do. It proxies all rendering
related styles to its skins (such as BackgroundFill).

Inheritance:     SkinnableElement ➞ CanvasElementStyleableBaseStyleDefinitionEventDispatcher ➞ Object

Styles
Show Inherited


Events
Show Inherited


Public Functions
Show Inherited
Function Defined By
SkinnableElement() [Constructor] SkinnableElement
Creates new SkinnableElement instance.
 


Internal Members
Show Inherited
Member Defined By
_currentSkinState     :    String SkinnableElement
Read only - String representing the current state.
 


Internal Functions
Show Inherited
Function Defined By
_changeState(state) SkinnableElement
Called when the element changes skin state. Do not call this function directly.
You may override this if you need to make additional changes to your component
when the skin state changes (such as updating a label color).
  state     :    String
The skin state that this element is changing too.
  returns     :    boolean
Returns true if the element state has actually changed, false if it is the same state.
Subclasses can check what this base function returns before making additional changes for better performance.
 
_getSkinClass(state) SkinnableElement
Gets the skin class to use per the provided state.
Override this to return different skin classes for different states.
  state     :    String
The state for which to return a skin class.
  returns     :    Function
Return the constructor of the appropriate skin class.
 
_getSkinStyleProxyMap() SkinnableElement
Gets the Style proxy map to pass to skins. Override this if you need to pass additional styles
to custom skins. You should include all the styles provided in the default SkinnableElement style map.
  returns     :    Object
Return a style proxy map to be applied to this element to all skins. Formatted as:
MyProxyMap = Object.create(null);
MyProxyMap.StyleName1 = true;
MyProxyMap.StyleName2 = true;
 
_getSubStyleNameForSkinState(state) SkinnableElement
Gets the style name of the sub style to be applied to the skin
for the associated state. Override this to return the associated
sub style name for the supplied state.
  state     :    String
The state for which to return a sub style name.
  returns     :    string
Sub style name to apply to the skin of the associated state.
 
_updateSkinClass(state) SkinnableElement
Updates the skin class for the skin of the provided state. Subclasses should call
this within their _doStylesUpdated() when skin style class changes.
  state     :    String
The state for which to update the skin class.
 
_updateSkinStyleDefinitions(state) SkinnableElement
Updates the StyleDefinition for the skin of the provided state. Subclasses should call
this within their _doStylesUpdated() when skin style definitions change.
  state     :    String
The state for which to update the StyleDefinition.