You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/08/02 00:44:22 UTC
[royale-asjs] 19/29: containers have labels
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch feature/MXRoyale
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 8b33eb77b2edda5e3352ecec65ea1bc1e8b88f02
Author: Alex Harui <ah...@apache.org>
AuthorDate: Wed Aug 1 09:20:18 2018 -0700
containers have labels
---
.../MXRoyale/src/main/royale/mx/containers/FormItem.as | 4 ++--
.../MXRoyale/src/main/royale/mx/core/Container.as | 17 +++++++++++++++++
2 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/FormItem.as b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/FormItem.as
index e22b0be..7ccbdb6 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/FormItem.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/FormItem.as
@@ -323,7 +323,7 @@ public class FormItem extends Container
* @playerversion AIR 1.1
* @productversion Flex 3
*/
- /*override*/ public function get label():String
+ override public function get label():String
{
return _label;
}
@@ -331,7 +331,7 @@ public class FormItem extends Container
/**
* @private
*/
- /*override*/ public function set label(value:String):void
+ override public function set label(value:String):void
{
_label = value;
labelChanged = true;
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
index 63504f2..baf8adb 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
@@ -562,6 +562,23 @@ public class Container extends UIComponent
if (GOOG::DEBUG)
trace("backgroundColor not implemented");
}
+
+ private var _label:String;
+ /*
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function get label():String
+ {
+ return _label;
+ }
+ public function set label(value:String):void
+ {
+ _label = value;
+ }
+
[Inspectable(category="General")]
/**
* @royaleignorecoercion org.apache.royale.core.WrappedHTMLElement