blob: 393f76048aceda43d1d72af9a4402b92c7cffef1 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!--- The default skin class for a Spark RadioButton component. -->
<s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
alpha.disabledStates="0.5">
<fx:Metadata>
<![CDATA[
/**
* @copy spark.skins.default.ApplicationSkin#hostComponent
*/
[HostComponent("spark.components.RadioButton")]
]]>
</fx:Metadata>
<fx:Script>
<![CDATA[
/**
* @inheritDoc
*/
override public function get focusSkinExclusions():Array {return ["labelDisplay"]};
]]>
</fx:Script>
<s:states>
<s:State name="up" />
<s:State name="over" stateGroups="overStates" />
<s:State name="down" stateGroups="downStates" />
<s:State name="disabled" stateGroups="disabledStates" />
<s:State name="upAndSelected" stateGroups="selectedStates" />
<s:State name="overAndSelected" stateGroups="overStates, selectedStates" />
<s:State name="downAndSelected" stateGroups="downStates, selectedStates" />
<s:State name="disabledAndSelected" stateGroups="disabledStates, selectedStates" />
</s:states>
<s:Group left="0" verticalCenter="0">
<!-- skin -->
<mx:Image
source.up= "@Embed(source='/assets/flex_skins.swf', symbol='RadioButton_upIcon')"
source.over="@Embed(source='/assets/flex_skins.swf', symbol='RadioButton_overIcon')"
source.down= "@Embed(source='/assets/flex_skins.swf', symbol='RadioButton_downIcon')"
source.disabled= "@Embed(source='/assets/flex_skins.swf', symbol='RadioButton_disabledIcon')"
source.disabledAndSelected= "@Embed(source='/assets/flex_skins.swf', symbol='RadioButtonSelected_disabledIcon')"
source.downAndSelected= "@Embed(source='/assets/flex_skins.swf', symbol='RadioButtonSelected_downIcon')"
source.overAndSelected= "@Embed(source='/assets/flex_skins.swf', symbol='RadioButtonSelected_overIcon')"
source.upAndSelected= "@Embed(source='/assets/flex_skins.swf', symbol='RadioButtonSelected_upIcon')"
/>
</s:Group>
<!-- Label -->
<!--- Defines the text next to the dot in a RadioButton component.-->
<s:Label id="labelDisplay"
textAlign="start"
verticalAlign="middle"
lineBreak="toFit"
maxDisplayedLines="1"
left="18" right="0" top="0" bottom="0" verticalCenter="1" />
</s:Skin>