You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pu...@apache.org on 2020/12/02 11:39:38 UTC
[royale-asjs] branch develop updated: Update UIComponent.as added
styleDeclaration function
This is an automated email from the ASF dual-hosted git repository.
pushminakazi pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new 0f2877f Update UIComponent.as added styleDeclaration function
0f2877f is described below
commit 0f2877fe6c33f2e6ef1e1da3bd14c00f56795bcb
Author: pashminakazi <42...@users.noreply.github.com>
AuthorDate: Wed Dec 2 16:39:29 2020 +0500
Update UIComponent.as added styleDeclaration function
---
.../src/main/royale/mx/core/UIComponent.as | 39 ++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
index dab341c..f924fcc 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
@@ -107,6 +107,7 @@ import mx.events.ValidationResultEvent;
import org.apache.royale.utils.MXMLDataInterpreter;
import mx.managers.IFocusManagerComponent;
import mx.events.FocusEvent;
+import mx.styles.CSSStyleDeclaration;
import org.apache.royale.utils.ClassSelectorList;
@@ -6427,6 +6428,44 @@ COMPILE::JS
if (c !== null)
g.endFill();
}
+
+ //----------------------------------
+ // styleDeclaration
+ //----------------------------------
+
+ /**
+ * @private
+ * Storage for the styleDeclaration property.
+ */
+ private var _styleDeclaration:CSSStyleDeclaration;
+
+ [Inspectable(environment="none")]
+
+ /**
+ * Storage for the inline inheriting styles on this object.
+ * This CSSStyleDeclaration is created the first time that
+ * the <code>setStyle()</code> method
+ * is called on this component to set an inheriting style.
+ * Developers typically never need to access this property directly.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function get styleDeclaration():CSSStyleDeclaration
+ {
+ return _styleDeclaration;
+ }
+
+ /**
+ * @private
+ */
+ public function set styleDeclaration(value:CSSStyleDeclaration):void
+ {
+ _styleDeclaration = value;
+ }
+
}