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 2021/03/22 11:43:00 UTC

[royale-asjs] branch develop updated: findStringLoop and itemToLabel added in spark list and listBase

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

alinakazi 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 328052c  findStringLoop and itemToLabel added in spark list and listBase
328052c is described below

commit 328052c371f592cb4b8effd5657ab09d72129dfe
Author: alinakazi <al...@gmail.com>
AuthorDate: Mon Mar 22 16:42:49 2021 +0500

    findStringLoop and itemToLabel added in spark list and listBase
---
 .../projects/SparkRoyale/src/main/royale/spark/components/List.as | 4 ++--
 .../src/main/royale/spark/components/supportClasses/ListBase.as   | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/List.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/List.as
index c18cd7c..e20ea63 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/List.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/List.as
@@ -2833,7 +2833,7 @@ public class List extends ListBase implements IFocusManagerComponent
     /**
      *  @private
      */
-    /* mx_internal function findStringLoop(str:String, startIndex:int, stopIndex:int):Number
+    public function findStringLoop(str:String, startIndex:int, stopIndex:int):Number
     {
         // Try to find the item based on the start and stop indices
         for (startIndex; startIndex != stopIndex; startIndex++)
@@ -2847,7 +2847,7 @@ public class List extends ListBase implements IFocusManagerComponent
             }
         }
         return -1;
-    } */
+    } 
     
     /**
      *  @private
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as
index e322980..e1562dc 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as
@@ -39,8 +39,8 @@ import spark.components.supportClasses.RegExPatterns;
 import spark.events.IndexChangeEvent;
 import spark.events.ListEvent;
 import spark.events.RendererExistenceEvent;
-import spark.layouts.supportClasses.LayoutBase;
-import spark.utils.LabelUtil;*/
+import spark.layouts.supportClasses.LayoutBase;*/
+import spark.utils.LabelUtil;
 import mx.collections.IList;
 import mx.core.IFactory;
 import mx.core.mx_internal;
@@ -1447,11 +1447,11 @@ public class ListBase  extends SkinnableContainer
      *  @playerversion AIR 1.5
      *  @productversion Royale 0.9.4
      */
-    /* override public function itemToLabel(item:Object):String
+    public function itemToLabel(item:Object):String
     {
         return LabelUtil.itemToLabel(item, labelField, labelFunction);
     }
-     */
+     
     //--------------------------------------------------------------------------
     //
     //  Methods