| <?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. |
| |
| --> |
| <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"> |
| |
| <fx:Declarations> |
| <s:RadioButtonGroup id="rbg1" /> |
| <s:RadioButtonGroup id="rbg2" /> |
| </fx:Declarations> |
| |
| <s:states> |
| <s:State name="theState1"/> |
| <s:State name="theState2"/> |
| </s:states> |
| |
| <s:layout> |
| <s:VerticalLayout paddingTop="10" paddingLeft="10"/> |
| </s:layout> |
| |
| <s:BorderContainer id="myBorder" height="280" width="200" includeIn="theState1"> |
| <s:layout> |
| <s:VerticalLayout paddingTop="10" paddingLeft="10"/> |
| </s:layout> |
| |
| <s:Label text="theState1 Border" color="blue" fontSize="16"/> |
| |
| <s:HGroup> |
| <s:NumericStepper id="myNS" height="23"/> |
| <s:HSlider id="mySlider"/> |
| </s:HGroup> |
| |
| <s:CheckBox id="myCB" label="CheckBox" fontSize="18"/> |
| <s:RadioButton id="myRB" label="RadioButton" fontSize="18" groupName="rbg1"/> |
| |
| <s:List id="myList" selectedIndex="3" fontSize="10" width="100" height="150"> |
| <s:dataProvider> |
| <s:ArrayList source="[Un, Deux, Trois, Quatre, Cinq, Six, Sept, Huit, Neuf, Dix]"/> |
| </s:dataProvider> |
| </s:List> |
| </s:BorderContainer> |
| |
| |
| <s:BorderContainer id="myBorder2" height="280" width="200" includeIn="theState2"> |
| <s:layout> |
| <s:VerticalLayout paddingTop="10" paddingLeft="10"/> |
| </s:layout> |
| |
| <s:Label text="theState2 Border" color="blue" fontSize="16"/> |
| |
| <s:HGroup> |
| <s:NumericStepper id="myNS2" height="23"/> |
| <s:HSlider id="mySlider2"/> |
| </s:HGroup> |
| |
| <s:CheckBox id="myCB2" label="CheckBox" fontSize="18"/> |
| <s:RadioButton id="myRB2" label="RadioButton" fontSize="18" groupName="rbg2"/> |
| |
| <s:DropDownList id="myDDL" prompt="Select One"> |
| <s:dataProvider> |
| <s:ArrayList source="[One,Two,Three,Four,Five,Six,Seven,Eight,Nine,Ten]"/> |
| </s:dataProvider> |
| </s:DropDownList> |
| </s:BorderContainer> |
| |
| </s:Group> |