flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [1/8] git commit: [flex-sdk] [refs/heads/release4.14.0] - need to fix colorname now that baseclass also sets it
Date Wed, 14 Jan 2015 20:54:34 GMT
Repository: flex-sdk
Updated Branches:
  refs/heads/release4.14.0 dcdd698ed -> 54589da77


need to fix colorname now that baseclass also sets it


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

Branch: refs/heads/release4.14.0
Commit: 4e974b8dd8cc99431c71c91db0643e2eb0c9ec59
Parents: dcdd698
Author: Alex Harui <aharui@apache.org>
Authored: Wed Jan 14 12:52:49 2015 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Wed Jan 14 12:52:49 2015 -0800

----------------------------------------------------------------------
 .../calendarClasses/DateSpinnerItemRenderer.as  | 22 ++++++++++++++++++++
 1 file changed, 22 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/4e974b8d/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/DateSpinnerItemRenderer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/DateSpinnerItemRenderer.as
b/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/DateSpinnerItemRenderer.as
index 19d2481..eefc4cb 100644
--- a/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/DateSpinnerItemRenderer.as
+++ b/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/DateSpinnerItemRenderer.as
@@ -150,5 +150,27 @@ public class DateSpinnerItemRenderer extends SpinnerListItemRenderer
             labelDisplay.alpha = enabled ? 1 : .5;
         }        
     }
+    
+    override public function set selected(value:Boolean):void
+    {
+        var oldValue:Boolean = selected;
+        super.selected = value;
+        if(oldValue != selected)
+        {
+            try
+            {
+                if (data["_emphasized_"] != undefined)
+                    _colorName = "accentColor"; // highlighted item
+                else
+                    _colorName = "color"; // reset to use standard color
+            }
+            catch (e:Error)
+            {
+                // Do nothing
+            }
+            setTextProperties();
+        }
+    }
+
 }
 }
\ No newline at end of file


Mime
View raw message