You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by al...@apache.org on 2018/05/24 11:09:52 UTC
[royale-asjs] branch feature/MXRoyale updated: Update
SkinnableComponent for DropDownList
This is an automated email from the ASF dual-hosted git repository.
alinakazi pushed a commit to branch feature/MXRoyale
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/feature/MXRoyale by this push:
new e374a0e Update SkinnableComponent for DropDownList
e374a0e is described below
commit e374a0ec605589ccbcbab8095ee3cb3840bd41fe
Author: alinakazi <AL...@GMAIL.COM>
AuthorDate: Thu May 24 16:09:50 2018 +0500
Update SkinnableComponent for DropDownList
---
.../supportClasses/SkinnableComponent.as | 47 ++++++++++++++++++++--
1 file changed, 44 insertions(+), 3 deletions(-)
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/SkinnableComponent.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/SkinnableComponent.as
index 67eb899..5a0b917 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/SkinnableComponent.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/SkinnableComponent.as
@@ -25,9 +25,9 @@ COMPILE::JS
}
/*
-import flash.display.DisplayObject;
-import flash.events.Event;
-import flash.geom.Point;
+import flash.display.DisplayObject;*/
+import org.apache.royale.events.Event;
+/*import flash.geom.Point;
import flash.utils.*;
import mx.core.FlexVersion;
import mx.core.ILayoutElement;
@@ -353,6 +353,47 @@ public class SkinnableComponent extends UIComponent
dataGroupProperties.itemRenderer = value; */
}
+
+ //----------------------------------
+ // skin
+ //----------------------------------
+
+ /**
+ * @private
+ * Storage for skin instance
+ */
+ private var _skin:UIComponent;
+
+ [Bindable("skinChanged")]
+
+ /**
+ * The instance of the skin class for this component instance.
+ * This is a read-only property that gets set automatically when Flex
+ * calls the <code>attachSkin()</code> method.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10
+ * @playerversion AIR 1.5
+ * @productversion Royale 0.9.4
+ */
+ public function get skin():UIComponent
+ {
+ return _skin;
+ }
+
+ /**
+ * @private
+ * Setter for the skin instance. This is so the bindable event
+ * is dispatched
+ */
+ private function setSkin(value:UIComponent):void
+ {
+ if (value === _skin)
+ return;
+
+ _skin = value;
+ dispatchEvent(new Event("skinChanged"));
+ }
}
--
To stop receiving notification emails like this one, please contact
alinakazi@apache.org.