Packageardisia.components.toggleSwitchDesktop
Classpublic class ToggleSwitchDesktop
InheritanceToggleSwitchDesktop Inheritance spark.components.ToggleButton

ToggleSwitch component designed for desktop use.

Nearly all the logic is contained within the skin. Should rework to get the logic and animation in the host component and leave the skin focused on the visuals, like the other components in the Ardisia Component Set. Bit ugly as it stands currently.

View the technical documentation on the Ardisia Labs website for more information.

Default MXML Propertylabel



Public Properties
 PropertyDefined By
  labelNotSelected : String
The text to display when the button is in an un-selected state.
ToggleSwitchDesktop
  labelSelected : String
The text to display when the button is in a selected state.
ToggleSwitchDesktop
Public Methods
 MethodDefined By
  
ToggleSwitchDesktop
Protected Methods
 MethodDefined By
  
Update the label skin parts.
ToggleSwitchDesktop
Skin Parts

This component uses skins made up of skin parts. Do not set the skin parts directly. The component's skin sets the skin parts.


 Skin Part Description Defined By
  
labelNotSelectedPart:spark.components.Label
Required: true Part Type: Static
Label that is displayed when "selected" property is false.
ToggleSwitchDesktop
  
labelSelectedPart:spark.components.Label
Required: true Part Type: Static
Label that is displayed when the "selected" property is true.
ToggleSwitchDesktop
Property Detail
labelNotSelectedproperty
labelNotSelected:String

The text to display when the button is in an un-selected state.

This property is bindable.

The default value is "OFF".

This property can be used as the source for data binding.


Implementation
    public function get labelNotSelected():String
    public function set labelNotSelected(value:String):void
labelSelectedproperty 
labelSelected:String

The text to display when the button is in a selected state.

This property is bindable.

The default value is "ON".

This property can be used as the source for data binding.


Implementation
    public function get labelSelected():String
    public function set labelSelected(value:String):void
Constructor Detail
ToggleSwitchDesktop()Constructor
public function ToggleSwitchDesktop()



Method Detail
updateLabelParts()method
protected function updateLabelParts():void

Update the label skin parts.