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 2020/01/10 19:17:54 UTC

[royale-asjs] branch develop updated: implement selectedItem on ColorPicker

This is an automated email from the ASF dual-hosted git repository.

aharui 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 baa8ad8  implement selectedItem on ColorPicker
baa8ad8 is described below

commit baa8ad8cb53d584679e353c6626085cefda1bc99
Author: Alex Harui <ah...@apache.org>
AuthorDate: Fri Jan 10 11:17:33 2020 -0800

    implement selectedItem on ColorPicker
---
 .../projects/MXRoyale/src/main/royale/mx/controls/ColorPicker.as | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ColorPicker.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ColorPicker.as
index 277d258..3db9f5d 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ColorPicker.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ColorPicker.as
@@ -679,7 +679,16 @@ public class ColorPicker extends UIComponent //ComboBase
         */
         (model as IColorModel).color = value;
     }
+    
+    public function get selectedItem():Object
+    {
+        return (model as IColorModel).color;
+    }
 
+    public function set selectedItem(value:Object):void
+    {
+        (model as IColorModel).color = uint(value);
+    }
 }
 
 }