royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject [royale-asjs] branch feature/new_merge updated: This solves most of the dataGroup issues
Date Tue, 04 Sep 2018 07:11:52 GMT
This is an automated email from the ASF dual-hosted git repository.

harbs pushed a commit to branch feature/new_merge
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/feature/new_merge by this push:
     new 0854974  This solves most of the dataGroup issues
0854974 is described below

commit 08549749cb04396bc4fdb36b6f5d174b3fe6e863
Author: Harbs <harbs@in-tools.com>
AuthorDate: Tue Sep 4 10:11:42 2018 +0300

    This solves most of the dataGroup issues
---
 .../apache/royale/jewel/beads/views/ListView.as    | 48 ++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ListView.as
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ListView.as
index b42efdf..c61a12d 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ListView.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ListView.as
@@ -26,6 +26,10 @@ package org.apache.royale.jewel.beads.views
 	import org.apache.royale.events.Event;
 	import org.apache.royale.events.IEventDispatcher;
 	import org.apache.royale.html.beads.DataContainerView;
+	import org.apache.royale.core.IItemRendererParent;
+	import org.apache.royale.core.IContentView;
+	import org.apache.royale.utils.loadBeadFromValuesManager;
+	import org.apache.royale.core.ILayoutView;
 
 	/**
 	 *  The ListView class creates the visual elements of the org.apache.royale.jewel.List
@@ -46,6 +50,37 @@ package org.apache.royale.jewel.beads.views
 			super();
 		}
 
+		/**
+		 *  @copy org.apache.royale.core.IBead#strand
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion Royale 0.9.4
+		 */
+		override public function set strand(value:IStrand):void
+		{
+			super.strand = value;
+
+		}
+		private var _dataGroup:IItemRendererParent;
+		/**
+		 * @royaleignorecoercion org.apache.royale.core.IItemRendererParent
+		 */
+		override public function get dataGroup():IItemRendererParent
+		{
+			if(!_dataGroup)
+			{
+				var c:ILayoutView = contentView;
+				if(c && c is IItemRendererParent)
+					_dataGroup = c as IItemRendererParent;
+				else
+					_dataGroup = super.dataGroup;
+			}
+			return _dataGroup;
+		}
+
+
 		protected var listModel:ISelectionModel;
 
 		protected var lastSelectedIndex:int = -1;
@@ -123,6 +158,19 @@ package org.apache.royale.jewel.beads.views
 			_strand = value;
 			super.strand = value;
 		}
+		private var _dataGroup:IItemRendererParent;
+		override public function get dataGroup():IItemRendererParent
+		{
+			if(!_dataGroup)
+			{
+				var c:ILayoutView = contentView;
+				if(c && c is IItemRendererParent)
+					_dataGroup = c as IItemRendererParent;
+				else
+					_dataGroup = super.dataGroup;
+			}
+			return _dataGroup;
+		}
 
 		/**
 		 * @private


Mime
View raw message