blob: ce3fd4b75ba970a4511d5c0dc097901af8f78120 [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.
-->
<s:SkinnableContainer xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark" defaultButton="{btn}" creationComplete="populateAC()" visible="false">
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.controls.List;
[Bindable] private var ac:ArrayCollection;
private function populateAC():void{
var obj:Object;
ac = new ArrayCollection();
for(var i:int=0;i<3;i++){
obj = new Object();
obj.city = i.toString() + "Timbuktu";
ac.addItem(obj);
}
}
public var abcArr:Array=['A','B','C'];
]]>
</fx:Script>
<s:layout>
<s:VerticalLayout/>
</s:layout>
<s:HGroup>
<!--Not editable list-->
<mx:List id="lt" dataProvider="{abcArr}" width="50" height="50"/>
<!--Editable list-->
<mx:List id="editList" dataProvider="{abcArr}" width="50" height="50" editable="true"/>
<s:List id="fxlt" dataProvider="{ac}" width="50" />
</s:HGroup>
<s:TextInput id="ti"/>
<s:Button id="pushBtn" label="Not default"/>
<mx:Button id="haloBtn" label="Not default Halo Button"/>
<s:CheckBox id="cb" label="Need a ride?"/>
<mx:CheckBox id="halocb" label="Pay for gas?"/>
<s:RadioButton id="s1" label="bike" groupName="srg"/>
<s:RadioButton id="s2" label="car" groupName="srg"/>
<s:RadioButton id="s3" label="walk" groupName="srg"/>
<s:HGroup>
<mx:ComboBox id="combo" dataProvider="[1,2,3]"/>
<mx:ComboBox id="editCombo" dataProvider="[1,2,3]" editable="true"/>
<s:DropDownList id="dropDown">
<s:dataProvider>
<mx:ArrayCollection source="[dog, cat, bird]"/>
</s:dataProvider>
</s:DropDownList>
</s:HGroup>
<s:HGroup>
<!--Not editable DataGrid-->
<mx:DataGrid id="dg" width="300" rowCount="3" dataProvider="{ac}"/>
<!--Editable DataGrid-->
<mx:DataGrid id="editDG" width="300" rowCount="3" dataProvider="{ac}" editable="true"/>
</s:HGroup>
<s:Button id="btn" label="Default" click="lbl.text+=' default'"/>
<mx:Label id="lbl" />
</s:SkinnableContainer>