flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject git commit: [flex-sdk] [refs/heads/develop] - FLEX-28012 Added localisation support for "Required"
Date Sun, 18 Aug 2013 16:43:09 GMT
Updated Branches:
  refs/heads/develop da4cb4f71 -> 593da7511


FLEX-28012 Added localisation support for "Required"


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/593da751
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/593da751
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/593da751

Branch: refs/heads/develop
Commit: 593da75114562fdc2a6ca368d8eae98e372a0aee
Parents: da4cb4f
Author: Justin Mclean <jmclean@apache.org>
Authored: Mon Aug 19 02:38:38 2013 +1000
Committer: Justin Mclean <jmclean@apache.org>
Committed: Mon Aug 19 02:38:38 2013 +1000

----------------------------------------------------------------------
 .../spark/bundles/da_DK/components.properties   |  2 ++
 .../spark/bundles/de_CH/components.properties   |  2 ++
 .../spark/bundles/de_DE/components.properties   |  2 ++
 .../spark/bundles/el_GR/components.properties   |  3 +-
 .../spark/bundles/en_AU/components.properties   |  2 ++
 .../spark/bundles/en_CA/components.properties   |  2 ++
 .../spark/bundles/en_GB/components.properties   |  2 ++
 .../spark/bundles/en_US/components.properties   |  2 ++
 .../spark/bundles/es_ES/components.properties   |  2 ++
 .../spark/bundles/fi_FI/components.properties   |  2 ++
 .../spark/bundles/fr_CH/components.properties   |  2 ++
 .../spark/bundles/fr_FR/components.properties   |  2 ++
 .../spark/bundles/it_IT/components.properties   |  2 ++
 .../spark/bundles/ja_JP/components.properties   |  2 ++
 .../spark/bundles/ko_KR/components.properties   |  2 ++
 .../spark/bundles/nb_NO/components.properties   |  2 ++
 .../spark/bundles/nl_NL/components.properties   |  2 ++
 .../spark/bundles/pt_BR/components.properties   |  2 ++
 .../spark/bundles/pt_PT/components.properties   |  2 ++
 .../spark/bundles/ru_RU/components.properties   |  2 ++
 .../spark/bundles/sv_SE/components.properties   |  2 ++
 .../spark/bundles/zh_CN/components.properties   |  3 ++
 .../spark/bundles/zh_TW/components.properties   |  3 ++
 .../src/spark/skins/spark/FormItemSkin.mxml     | 34 +++++++++++++++----
 .../spark/skins/spark/StackedFormItemSkin.mxml  | 35 ++++++++++++++++----
 25 files changed, 103 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/593da751/frameworks/projects/spark/bundles/da_DK/components.properties
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/bundles/da_DK/components.properties b/frameworks/projects/spark/bundles/da_DK/components.properties
index d28cbd7..3fdd0e1 100644
--- a/frameworks/projects/spark/bundles/da_DK/components.properties
+++ b/frameworks/projects/spark/bundles/da_DK/components.properties
@@ -98,3 +98,5 @@ toggleSwitchUnselectedLabel=OFF
 # StyleableTextField
 styleSheetError=Denne metode eller egenskab kan ikke bruges i et tekstfelt med et typografiark
 
+# FormItem
+formItemRequired=Nødvendig

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/593da751/frameworks/projects/spark/bundles/de_CH/components.properties
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/bundles/de_CH/components.properties b/frameworks/projects/spark/bundles/de_CH/components.properties
index dc6edd2..357b817 100644
--- a/frameworks/projects/spark/bundles/de_CH/components.properties
+++ b/frameworks/projects/spark/bundles/de_CH/components.properties
@@ -98,3 +98,5 @@ toggleSwitchUnselectedLabel=OFF
 # StyleableTextField
 styleSheetError=Diese Methode oder Eigenschaft kann nicht für ein Textfeld mit einem Stylesheet
verwendet werden.
 
+# FormItem
+formItemRequired=Erforderlich

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/593da751/frameworks/projects/spark/bundles/de_DE/components.properties
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/bundles/de_DE/components.properties b/frameworks/projects/spark/bundles/de_DE/components.properties
index dc6edd2..357b817 100644
--- a/frameworks/projects/spark/bundles/de_DE/components.properties
+++ b/frameworks/projects/spark/bundles/de_DE/components.properties
@@ -98,3 +98,5 @@ toggleSwitchUnselectedLabel=OFF
 # StyleableTextField
 styleSheetError=Diese Methode oder Eigenschaft kann nicht für ein Textfeld mit einem Stylesheet
verwendet werden.
 
+# FormItem
+formItemRequired=Erforderlich

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/593da751/frameworks/projects/spark/bundles/el_GR/components.properties
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/bundles/el_GR/components.properties b/frameworks/projects/spark/bundles/el_GR/components.properties
index 25680ce..2bad2e3 100644
--- a/frameworks/projects/spark/bundles/el_GR/components.properties
+++ b/frameworks/projects/spark/bundles/el_GR/components.properties
@@ -98,4 +98,5 @@ toggleSwitchUnselectedLabel=OFF
 # StyleableTextField
 styleSheetError=This method or property cannot be used on a text field with a style sheet.
 
-
+# FormItem
+formItemRequired=Απαιτείται

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/593da751/frameworks/projects/spark/bundles/en_AU/components.properties
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/bundles/en_AU/components.properties b/frameworks/projects/spark/bundles/en_AU/components.properties
index 43cf8b9..d118251 100644
--- a/frameworks/projects/spark/bundles/en_AU/components.properties
+++ b/frameworks/projects/spark/bundles/en_AU/components.properties
@@ -98,3 +98,5 @@ toggleSwitchUnselectedLabel=OFF
 # StyleableTextField
 styleSheetError=This method or property cannot be used on a text field with a style sheet.
 
+# FormItem
+formItemRequired=Required

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/593da751/frameworks/projects/spark/bundles/en_CA/components.properties
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/bundles/en_CA/components.properties b/frameworks/projects/spark/bundles/en_CA/components.properties
index 43cf8b9..d118251 100644
--- a/frameworks/projects/spark/bundles/en_CA/components.properties
+++ b/frameworks/projects/spark/bundles/en_CA/components.properties
@@ -98,3 +98,5 @@ toggleSwitchUnselectedLabel=OFF
 # StyleableTextField
 styleSheetError=This method or property cannot be used on a text field with a style sheet.
 
+# FormItem
+formItemRequired=Required

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/593da751/frameworks/projects/spark/bundles/en_GB/components.properties
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/bundles/en_GB/components.properties b/frameworks/projects/spark/bundles/en_GB/components.properties
index 43cf8b9..d118251 100644
--- a/frameworks/projects/spark/bundles/en_GB/components.properties
+++ b/frameworks/projects/spark/bundles/en_GB/components.properties
@@ -98,3 +98,5 @@ toggleSwitchUnselectedLabel=OFF
 # StyleableTextField
 styleSheetError=This method or property cannot be used on a text field with a style sheet.
 
+# FormItem
+formItemRequired=Required

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/593da751/frameworks/projects/spark/bundles/en_US/components.properties
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/bundles/en_US/components.properties b/frameworks/projects/spark/bundles/en_US/components.properties
index 43cf8b9..d118251 100644
--- a/frameworks/projects/spark/bundles/en_US/components.properties
+++ b/frameworks/projects/spark/bundles/en_US/components.properties
@@ -98,3 +98,5 @@ toggleSwitchUnselectedLabel=OFF
 # StyleableTextField
 styleSheetError=This method or property cannot be used on a text field with a style sheet.
 
+# FormItem
+formItemRequired=Required

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/593da751/frameworks/projects/spark/bundles/es_ES/components.properties
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/bundles/es_ES/components.properties b/frameworks/projects/spark/bundles/es_ES/components.properties
index c11ebcf..f3e63bb 100644
--- a/frameworks/projects/spark/bundles/es_ES/components.properties
+++ b/frameworks/projects/spark/bundles/es_ES/components.properties
@@ -98,3 +98,5 @@ toggleSwitchUnselectedLabel=OFF
 # StyleableTextField
 styleSheetError=No es posible utilizar este método o esta propiedad en un campo de texto
con una hoja de estilos.
 
+# FormItem
+formItemRequired=Requerido

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/593da751/frameworks/projects/spark/bundles/fi_FI/components.properties
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/bundles/fi_FI/components.properties b/frameworks/projects/spark/bundles/fi_FI/components.properties
index 5f5df83..14ce92c 100644
--- a/frameworks/projects/spark/bundles/fi_FI/components.properties
+++ b/frameworks/projects/spark/bundles/fi_FI/components.properties
@@ -98,3 +98,5 @@ toggleSwitchUnselectedLabel=OFF
 # StyleableTextField
 styleSheetError=Tätä tapaa tai ominaisuutta ei voi käyttää tekstikentässä tyylitiedoston
kanssa.
 
+# FormItem
+formItemRequired=Pakollinen

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/593da751/frameworks/projects/spark/bundles/fr_CH/components.properties
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/bundles/fr_CH/components.properties b/frameworks/projects/spark/bundles/fr_CH/components.properties
index 788ae5e..1924266 100644
--- a/frameworks/projects/spark/bundles/fr_CH/components.properties
+++ b/frameworks/projects/spark/bundles/fr_CH/components.properties
@@ -98,3 +98,5 @@ toggleSwitchUnselectedLabel=OFF
 # StyleableTextField
 styleSheetError=Cette méthode ou propriété ne peut être utilisée sur un champ de texte
avec une feuille de style.
 
+# FormItem
+formItemRequired=Requis

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/593da751/frameworks/projects/spark/bundles/fr_FR/components.properties
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/bundles/fr_FR/components.properties b/frameworks/projects/spark/bundles/fr_FR/components.properties
index 788ae5e..1924266 100644
--- a/frameworks/projects/spark/bundles/fr_FR/components.properties
+++ b/frameworks/projects/spark/bundles/fr_FR/components.properties
@@ -98,3 +98,5 @@ toggleSwitchUnselectedLabel=OFF
 # StyleableTextField
 styleSheetError=Cette méthode ou propriété ne peut être utilisée sur un champ de texte
avec une feuille de style.
 
+# FormItem
+formItemRequired=Requis

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/593da751/frameworks/projects/spark/bundles/it_IT/components.properties
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/bundles/it_IT/components.properties b/frameworks/projects/spark/bundles/it_IT/components.properties
index 6187221..209e207 100644
--- a/frameworks/projects/spark/bundles/it_IT/components.properties
+++ b/frameworks/projects/spark/bundles/it_IT/components.properties
@@ -98,3 +98,5 @@ toggleSwitchUnselectedLabel=OFF
 # StyleableTextField
 styleSheetError=Non è possibile utilizzare questo metodo o questa proprietà in un campo
di testo con foglio di stile.
 
+# FormItem
+formItemRequired=Richiesto

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/593da751/frameworks/projects/spark/bundles/ja_JP/components.properties
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/bundles/ja_JP/components.properties b/frameworks/projects/spark/bundles/ja_JP/components.properties
index 45fec9f..85dc4a6 100644
--- a/frameworks/projects/spark/bundles/ja_JP/components.properties
+++ b/frameworks/projects/spark/bundles/ja_JP/components.properties
@@ -98,3 +98,5 @@ toggleSwitchUnselectedLabel=OFF
 # StyleableTextField
 styleSheetError=このメソッドまたはプロパティは、スタイルシート付きのテキストフィールドでは使用できません。
 
+# FormItem
+formItemRequired=必須

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/593da751/frameworks/projects/spark/bundles/ko_KR/components.properties
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/bundles/ko_KR/components.properties b/frameworks/projects/spark/bundles/ko_KR/components.properties
index 67b96df..fa59f8c 100644
--- a/frameworks/projects/spark/bundles/ko_KR/components.properties
+++ b/frameworks/projects/spark/bundles/ko_KR/components.properties
@@ -98,3 +98,5 @@ toggleSwitchUnselectedLabel=OFF
 # StyleableTextField
 styleSheetError=이 메서드 또는 속성은 스타일 시트를 사용하는 텍스트
필드에 사용할 수 없습니다.
 
+# FormItem
+formItemRequired=필수

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/593da751/frameworks/projects/spark/bundles/nb_NO/components.properties
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/bundles/nb_NO/components.properties b/frameworks/projects/spark/bundles/nb_NO/components.properties
index 5437349..8da6409 100644
--- a/frameworks/projects/spark/bundles/nb_NO/components.properties
+++ b/frameworks/projects/spark/bundles/nb_NO/components.properties
@@ -98,3 +98,5 @@ toggleSwitchUnselectedLabel=OFF
 # StyleableTextField
 styleSheetError=Denne metoden eller egenskapen kan ikke brukes på et tekstfelt med et stilark.
 
+# FormItem
+formItemRequired=Påkrevd

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/593da751/frameworks/projects/spark/bundles/nl_NL/components.properties
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/bundles/nl_NL/components.properties b/frameworks/projects/spark/bundles/nl_NL/components.properties
index de9c41f..d592945 100644
--- a/frameworks/projects/spark/bundles/nl_NL/components.properties
+++ b/frameworks/projects/spark/bundles/nl_NL/components.properties
@@ -98,3 +98,5 @@ toggleSwitchUnselectedLabel=OFF
 # StyleableTextField
 styleSheetError=Deze methode kan niet worden gebruikt voor een tekstveld met een stijlblad.
 
+# FormItem
+formItemRequired=Verplicht

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/593da751/frameworks/projects/spark/bundles/pt_BR/components.properties
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/bundles/pt_BR/components.properties b/frameworks/projects/spark/bundles/pt_BR/components.properties
index deb65b0..b6aaa42 100644
--- a/frameworks/projects/spark/bundles/pt_BR/components.properties
+++ b/frameworks/projects/spark/bundles/pt_BR/components.properties
@@ -98,3 +98,5 @@ toggleSwitchUnselectedLabel=OFF
 # StyleableTextField
 styleSheetError=Não é possível usar este método ou esta propriedade em um campo de texto
com uma folha de estilos.
 
+# FormItem
+formItemRequired=Obrigatório

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/593da751/frameworks/projects/spark/bundles/pt_PT/components.properties
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/bundles/pt_PT/components.properties b/frameworks/projects/spark/bundles/pt_PT/components.properties
index 330b81b..3824457 100644
--- a/frameworks/projects/spark/bundles/pt_PT/components.properties
+++ b/frameworks/projects/spark/bundles/pt_PT/components.properties
@@ -98,3 +98,5 @@ toggleSwitchUnselectedLabel=DESLIGADO
 # StyleableTextField
 styleSheetError=Este método ou propriedade não pode ser usado on campo de texto com uma
folha de estilos.
 
+# FormItem
+formItemRequired=Obrigatório

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/593da751/frameworks/projects/spark/bundles/ru_RU/components.properties
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/bundles/ru_RU/components.properties b/frameworks/projects/spark/bundles/ru_RU/components.properties
index cfe05c4..7ce2bf4 100644
--- a/frameworks/projects/spark/bundles/ru_RU/components.properties
+++ b/frameworks/projects/spark/bundles/ru_RU/components.properties
@@ -98,3 +98,5 @@ toggleSwitchUnselectedLabel=OFF
 # StyleableTextField
 styleSheetError=Этот метод или свойство нельзя применять
к текстовому полю с таблицей стилей.
 
+# FormItem
+formItemRequired=Требуется

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/593da751/frameworks/projects/spark/bundles/sv_SE/components.properties
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/bundles/sv_SE/components.properties b/frameworks/projects/spark/bundles/sv_SE/components.properties
index 4e9af79..d55764e 100644
--- a/frameworks/projects/spark/bundles/sv_SE/components.properties
+++ b/frameworks/projects/spark/bundles/sv_SE/components.properties
@@ -98,3 +98,5 @@ toggleSwitchUnselectedLabel=OFF
 # StyleableTextField
 styleSheetError=Den här metoden eller egenskapen kan inte användas för ett textfält med
en formatmall.
 
+# FormItem
+formItemRequired=Krävs

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/593da751/frameworks/projects/spark/bundles/zh_CN/components.properties
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/bundles/zh_CN/components.properties b/frameworks/projects/spark/bundles/zh_CN/components.properties
index dabbf6d..166b5db 100644
--- a/frameworks/projects/spark/bundles/zh_CN/components.properties
+++ b/frameworks/projects/spark/bundles/zh_CN/components.properties
@@ -98,3 +98,6 @@ toggleSwitchUnselectedLabel=OFF
 # StyleableTextField
 styleSheetError=在具有样式表的文本字段中无法使用此方法或属性。
 
+# FormItem
+formItemRequired=需要
+

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/593da751/frameworks/projects/spark/bundles/zh_TW/components.properties
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/bundles/zh_TW/components.properties b/frameworks/projects/spark/bundles/zh_TW/components.properties
index f6065b4..66c357d 100644
--- a/frameworks/projects/spark/bundles/zh_TW/components.properties
+++ b/frameworks/projects/spark/bundles/zh_TW/components.properties
@@ -98,3 +98,6 @@ toggleSwitchUnselectedLabel=OFF
 # StyleableTextField
 styleSheetError=包含樣式表的文字欄位無法使用此方法或屬性。
 
+# FormItem
+formItemRequired=需要
+

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/593da751/frameworks/projects/spark/src/spark/skins/spark/FormItemSkin.mxml
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/skins/spark/FormItemSkin.mxml b/frameworks/projects/spark/src/spark/skins/spark/FormItemSkin.mxml
index 5614108..9a37b5b 100644
--- a/frameworks/projects/spark/src/spark/skins/spark/FormItemSkin.mxml
+++ b/frameworks/projects/spark/src/spark/skins/spark/FormItemSkin.mxml
@@ -18,10 +18,6 @@
 
 -->
 
-<!-- TODO
-Move the indicator tooltip string to a resource bundle
--->
-
 <!--- The default skin class for the Spark FormItem component.  
 
 @see spark.components.FormItem
@@ -34,7 +30,7 @@ Move the indicator tooltip string to a resource bundle
 <s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009" 
         xmlns:s="library://ns.adobe.com/flex/spark" 
         xmlns:fb="http://ns.adobe.com/flashbuilder/2009"
-        alpha.disabledStates=".5">  
+        alpha.disabledStates=".5" creationComplete="init()">  
     
     <!-- host component -->
     <fx:Metadata>
@@ -47,7 +43,31 @@ Move the indicator tooltip string to a resource bundle
     </fx:Metadata>
     
     <fx:Script fb:purpose="styling">
-        <![CDATA[                
+        <![CDATA[			
+			public function init():void {
+				requiredToolTip = resourceManager.getString("components","formItemRequired");
+			}
+			
+			private var _requiredToolTip:String;
+			/**
+			 *  The tooltip of the label showing when the component is required but nothing has been
entered.
+			 *  Subclasses can set or override this property to customize the selected label.
+			 *  
+			 *  @langversion 3.0
+			 *  @playerversion AIR 3
+			 *  @productversion Flex 4.11
+			 */
+			[Bindable]
+			protected function get requiredToolTip():String 
+			{
+				return _requiredToolTip;
+			}
+			
+			protected function set requiredToolTip(value:String):void
+			{
+				_requiredToolTip = value;
+			}
+			
             /**
              *  @private
              */
@@ -151,7 +171,7 @@ Move the indicator tooltip string to a resource bundle
              height="{Math.max(indicatorDisplay.height, contentGroup.contentHeight)}" includeInLayout="false">
         <!--- @private -->
         <s:Image id="indicatorDisplay" verticalCenter="0"
-                       toolTip="Required" toolTip.errorStates=""
+                       toolTip="{requiredToolTip}" toolTip.errorStates=""
                        includeIn="requiredStates,errorStates"/>
     </s:Group>
         

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/593da751/frameworks/projects/spark/src/spark/skins/spark/StackedFormItemSkin.mxml
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/skins/spark/StackedFormItemSkin.mxml b/frameworks/projects/spark/src/spark/skins/spark/StackedFormItemSkin.mxml
index 49a3b7d..aa54519 100644
--- a/frameworks/projects/spark/src/spark/skins/spark/StackedFormItemSkin.mxml
+++ b/frameworks/projects/spark/src/spark/skins/spark/StackedFormItemSkin.mxml
@@ -18,10 +18,6 @@
 
 -->
 
-<!-- TODO
-Move the indicator tooltip string to a resource bundle
--->
-
 <!--- An alternate skin class for the Spark FormItem component 
 which positions the label above the content.
 
@@ -35,7 +31,7 @@ which positions the label above the content.
 <s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009" 
         xmlns:s="library://ns.adobe.com/flex/spark" 
         xmlns:fb="http://ns.adobe.com/flashbuilder/2009"
-        alpha.disabledStates=".5">
+        alpha.disabledStates=".5" creationComplete="init()">
     
     <!-- host component -->
     <fx:Metadata>
@@ -48,7 +44,32 @@ which positions the label above the content.
     </fx:Metadata>
     
     <fx:Script fb:purpose="styling">
-        <![CDATA[         
+        <![CDATA[ 
+			
+			public function init():void {
+				requiredToolTip = resourceManager.getString("components","formItemRequired");
+			}
+			
+			private var _requiredToolTip:String;
+			/**
+			 *  The tooltip of the label showing when the component is required but nothing has been
entered.
+			 *  Subclasses can set or override this property to customize the selected label.
+			 *  
+			 *  @langversion 3.0
+			 *  @playerversion AIR 3
+			 *  @productversion Flex 4.11
+			 */
+			[Bindable]
+			protected function get requiredToolTip():String 
+			{
+				return _requiredToolTip;
+			}
+			
+			protected function set requiredToolTip(value:String):void
+			{
+				_requiredToolTip = value;
+			}
+			
             /**
              *  @private
              */
@@ -152,7 +173,7 @@ which positions the label above the content.
              height="{Math.max(indicatorDisplay.height, contentGroup.contentHeight)}" includeInLayout="false">
         <!--- @private -->
         <s:Image id="indicatorDisplay" verticalCenter="0"
-                  toolTip="Required" toolTip.errorStates="{hostComponent.errorString}"
+                  toolTip="{requiredToolTip}" toolTip.errorStates="{hostComponent.errorString}"
                   includeIn="requiredStates,errorStates"/>
     </s:Group>
     <!--- @copy spark.components.FormItem#helpContentGroup -->


Mime
View raw message