blob: 01166bee44dd475e1ddace71b36446c177ce4154 [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>
<s:states>
<s:State name="setOne" />
<s:State name="setTwo" />
</s:states>
<mx:HBox includeIn="setOne">
<mx: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>
<!-- Fields needed by RTL_ResourceBundleMetadata_3Locales.mxml -->
<!--
There are many custom classes so that we can call ResetComponent and still
have our binding expressions.
-->
<!--
===================================================================
ResourceBundle Metadata Properties
===================================================================
-->
<mx:Label includeIn="setOne" color="0xffffff" text="Property ResourceBundle Metadata tests (resourceManager.getXX()):" />
<mx:HBox includeIn="setOne">
<mx:Label text="Framework string:" />
<Components:CLabelTextGetStringFramework id="lbl1" />
</mx:HBox>
<mx:HBox includeIn="setOne">
<mx:Label text="Non-framework string, as a property:" />
<Components:CLabelTextGetStringCustom id="lbl2" />
</mx:HBox>
<mx:HBox includeIn="setOne">
<mx:Label text="Number (alpha=0.3 for French, 0.7 for English, 0.5 for Japanese):" />
<Components:CTextInputAlphaGetNumber id="ti1" />
</mx:HBox>
<mx:HBox includeIn="setOne">
<mx:Label text="int (maxChars=7 for French, 12 for English, 3 for Japanese):" />
<Components:CTextInputMaxCharsGetInt id="ti2" />
</mx:HBox>
<mx:HBox includeIn="setOne">
<mx:Label text="uint (selectedColor=blue for French, green for English, red for Japanese):" />
<Components:CColorPickerSelectedColorGetUint id="cp1" />
</mx:HBox>
<mx:HBox includeIn="setOne">
<mx:Label text="Boolean (unchecked/checked for French, checked/unchecked for English, both checked for Japanese):" />
<Components:CCheckBoxSelectedGetBooleanLeft id="ck1" />
<Components:CCheckBoxSelectedGetBooleanRight id="ck2" />
</mx:HBox>
<mx:HBox includeIn="setOne">
<mx:Label text="StringArray (month names begin with fr, en, or ja):" />
<Components:CDateChooserMonthNamesGetStringArray id="dc1" />
</mx:HBox>
<mx:HBox id="img1Container" includeIn="setOne">
<mx:Label text="Class with Embed (image is the country's flag.):" />
<Components:CImageSourceGetClass id="img1" />
</mx:HBox>
<!--
===================================================================
ResourceBundle Metadata Styles
===================================================================
-->
<mx:Label includeIn="setTwo" color="0xffffff" text="Style ResourceBundle Metadata tests (resourceManager.getXX()):" />
<mx:HBox includeIn="setTwo">
<mx: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 includeIn="setTwo">
<mx: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 includeIn="setTwo">
<mx:Label text="int (3 zeroes for French, 4 for English, 6 for Japanese):" />
<Components:CSliderPrecisionGetInt id="slider1" />
</mx:HBox>
<mx:HBox includeIn="setTwo">
<mx:Label text="uint (Red for French, blue for English, green for Japanese):" />
<Components:CLabelColorGetUint id="lbl7" />
</mx:HBox>
<!-- Left's lineThrough is false, right's lineThrough is true, for French. -->
<!-- Left's lineThrough is true, right's lineThrough is false, for English. -->
<!-- Both have lineThrough = true for Japanese. -->
<mx:HBox includeIn="setTwo">
<mx:Label text="Boolean:." />
<mx:HBox>
<Components:CFxButtonLineThroughGetBooleanLeft id="btn1" />
<Components:CFxButtonLineThroughGetBooleanRight id="btn2" />
</mx:HBox>
</mx:HBox>
<mx:HBox includeIn="setTwo">
<mx:Label text="StringArray (alternating colors are green/blue for French, red/blue for English, white/red for Japanese):" />
<Components:CListAlternatingColorsGetStringArray id="list1" />
</mx:HBox>
<mx:HBox includeIn="setTwo">
<mx:Label text="Class style using Embed (Button skins are the country's flag):" />
<Components:CButtonOverSkinGetClass id="btn3" />
</mx:HBox>
<mx:HBox includeIn="setTwo">
<mx: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>
</s:Application>