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 cba1d00  Added getStyle in DataGridColumn.as
cba1d00 is described below

commit cba1d007af1301489d8a851aec3575beddf408a1
Author: pashminakazi <[email protected]>
AuthorDate: Fri Sep 18 22:53:30 2020 +0500

    Added getStyle in DataGridColumn.as
    
    In Flex getStyle function was added in CSSStyleDeclaration and 
DataGridColumn was extending CSSStyleDeclaration
    In Royale DataGridColumn is extending EventDispatcher when I added getStyle 
function in EventDispatcher it will cause Error so I added getStyle function in 
DataGridColumn.as
---
 .../mx/controls/dataGridClasses/DataGridColumn.as  | 39 +++++++++++++++++++++-
 1 file changed, 38 insertions(+), 1 deletion(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/dataGridClasses/DataGridColumn.as
 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/dataGridClasses/DataGridColumn.as
index 83539e6..3c023b9 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/dataGridClasses/DataGridColumn.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/dataGridClasses/DataGridColumn.as
@@ -19,7 +19,7 @@
 
 package mx.controls.dataGridClasses
 {
-
+import org.apache.royale.core.ValuesManager;
 /*
 import flash.display.DisplayObject;
 import flash.events.Event;
@@ -855,6 +855,43 @@ public class DataGridColumn extends 
org.apache.royale.html.supportClasses.DataGr
             }
         }
     }
+        private var o:Object;
+               public function getStyle(styleProp:String):*
+        {
+        var v:*;
+        
+        if (o == null)
+        {
+            if (defaultFactory != null)
+            {
+                defaultFactory.prototype = {};
+                o = new defaultFactory();
+            }
+        }
+        if (o != null)
+        {
+            v = o[styleProp];
+            if (v !== undefined)
+                return v;
+        }
+        var values:Object = ValuesManager.valuesImpl["values"]; // assume 
AllCSSValuesImpl
+        
+        return v;
+        }
+               
+               private var _defaultFactory:Function;
+               public function get defaultFactory():Function
+       {
+         return _defaultFactory;
+       }
+    
+    /**
+     *  @private
+     */ 
+        public function set defaultFactory(f:Function):void
+       {
+         _defaultFactory = f;
+       }
 }
 
 }

Reply via email to