blob: 78c38697a43792e04190be789f2179d0f12e40f9 [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:Application width="800" height="800" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:Components="Components.*" backgroundColor="0x008800" >
<fx:Metadata>
[ResourceBundle("bundle1")]
[ResourceBundle("bundle2")]
[ResourceBundle("bundle3")]
[ResourceBundle("bundle4")]
</fx:Metadata>
<fx:Script><![CDATA[
import mx.resources.ResourceManager;
]]></fx:Script>
<!-- Embed fonts for cross platform compatibility of bitmap compares. -->
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
@font-face {
src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
fontFamily: EmbeddedVerdana;
embedAsCFF: false;
}
@font-face {
src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
fontWeight: bold;
fontFamily: EmbeddedVerdana;
embedAsCFF: false;
}
@font-face {
src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
fontStyle: italic;
fontFamily: EmbeddedVerdana;
embedAsCFF: false;
}
global{
fontFamily: EmbeddedVerdana;
fontAntiAliasType: normal;
}
@font-face {
src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
fontFamily: EmbeddedVerdana2;
embedAsCFF: true;
}
@font-face {
src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
fontWeight: bold;
fontFamily: EmbeddedVerdana2;
embedAsCFF: true;
}
@font-face {
src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
fontStyle: italic;
fontFamily: EmbeddedVerdana2;
embedAsCFF: true;
}
s|Button{
fontFamily: EmbeddedVerdana2;
fontLookup: embeddedCFF;
fontAntiAliasType: normal;
}
</fx:Style>
<fx:Declarations>
<!-- Fields needed to pull in framework bundles. -->
<mx:DateField />
<mx:NumberValidator />
<mx:NumberFormatter />
<fx:Array />
</fx:Declarations>
<s:layout>
<s:VerticalLayout />
</s:layout>
<mx:HBox>
<mx:VBox>
<!-- Fields needed by RTL_ResourceBundleMetadata_1Locale.mxml -->
<mx:HBox>
<!--Label text="Feel free to change the locale chain manually here." /-->
<mx:TextInput id="tiLocaleChain" width="100" />
<mx:Button label="Apply!" click="{resourceManager.localeChain=tiLocaleChain.text.split(',')}" />
</mx:HBox>
<!--
There are many custom classes so that we can call ResetComponent and still
have our binding expressions.
-->
<!--
===================================================================
ResourceBundle Metadata Properties
===================================================================
-->
<!--Label color="0xffffff" text="Property ResourceBundle Metadata tests (resourceManager.getXX()):" /-->
<mx:HBox>
<!--Label text="Framework string:" /-->
<Components:CLabelTextGetStringFramework id="lbl1" />
</mx:HBox>
<mx:HBox>
<!--Label text="Non-framework string, as a property:" /-->
<Components:CLabelTextGetStringCustom id="lbl2" />
</mx:HBox>
<mx:HBox>
<!--Label text="Number (alpha=0.3 for French, 0.7 for English, 0.5 for Japanese):" /-->
<Components:CTextInputAlphaGetNumber id="ti1" />
</mx:HBox>
<mx:HBox>
<!--Label text="int (maxChars=7 for French, 12 for English, 3 for Japanese):" /-->
<Components:CTextInputMaxCharsGetInt id="ti2" />
</mx:HBox>
<mx:HBox>
<!--Label text="uint (selectedColor=blue for French, green for English, red for Japanese):" /-->
<Components:CColorPickerSelectedColorGetUint id="cp1" />
</mx:HBox>
<mx:VBox>
<!--Label text="Boolean (unchecked/checked for French, checked/unchecked for English, both checked for Japanese):" /-->
<Components:CCheckBoxSelectedGetBooleanLeft id="ck1" />
<Components:CCheckBoxSelectedGetBooleanRight id="ck2" />
</mx:VBox>
<mx:HBox>
<!--Label text="StringArray (month names begin with fr, en, or ja):" /-->
<Components:CDateChooserMonthNamesGetStringArray id="dc1" />
</mx:HBox>
<mx:HBox id="img1Container">
<!--Label text="Class with Embed (image is the country's flag.):" /-->
<Components:CImageSourceGetClass id="img1" />
</mx:HBox>
<!--
===================================================================
ResourceBundle Metadata Styles
===================================================================
-->
<!--Label color="0xffffff" text="Style ResourceBundle Metadata tests (resourceManager.getXX()):" /-->
<mx:HBox>
<!--Label text="String (right italicized for French, left one for English, both for Japanese):" /-->
<Components:CLabelFontStyleGetStringLeft id="lbl3" />
<Components:CLabelFontStyleGetStringRight id="lbl4" />
</mx:HBox>
<mx:HBox>
<!--Label text="Number (right tiny for French, left tiny for English, both tiny for Japanese):" /-->
<Components:CLabelFontSizeGetNumberLeft id="lbl5" />
<Components:CLabelFontSizeGetNumberRight id="lbl6" />
</mx:HBox>
<mx:HBox>
<!--Label text="int (3 zeroes for French, 4 for English, 6 for Japanese):" /-->
<Components:CSliderPrecisionGetInt id="slider1" />
</mx:HBox>
<mx:HBox>
<!--Label text="uint (Red for French, blue for English, green for Japanese):" /-->
<Components:CLabelColorGetUint id="lbl7" />
</mx:HBox>
<mx:VBox>
<!--Label text="Boolean (right button's text is lineThrough for French, left button's text is lineThrough for English, both are for Japanese):" /-->
<mx:HBox>
<Components:CFxButtonLineThroughGetBooleanLeft id="btn1" />
<Components:CFxButtonLineThroughGetBooleanRight id="btn2" />
</mx:HBox>
</mx:VBox>
<mx:HBox>
<!--Label text="StringArray (alternating colors are green and blue for French, red and blue for English, white and red for Japanese):" /-->
<Components:CListAlternatingColorsGetStringArray id="list1" />
</mx:HBox>
</mx:VBox>
<mx:VBox>
<mx:HBox>
<!--Label text="Class style using Embed (Button skins are the country's flag):" /-->
<Components:CButtonOverSkinGetClass id="btn3" />
</mx:HBox>
<mx:HBox>
<!--Label text="Class style using ClassReference (French has a backwards check, English has a forwards one, Japanese has a square):" /-->
<Components:CCheckBoxSelectedIconsGetClass id="ck3" />
</mx:HBox>
</mx:VBox>
</mx:HBox>
</s:Application>