You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/10/25 17:17:40 UTC
[royale-asjs] branch dgchanges updated: dgview to idatagrid
This is an automated email from the ASF dual-hosted git repository.
carlosrovira pushed a commit to branch dgchanges
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/dgchanges by this push:
new 4003f6d dgview to idatagrid
4003f6d is described below
commit 4003f6da99f1f26fc421fe571931ba462991d699
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sun Oct 25 18:17:28 2020 +0100
dgview to idatagrid
---
.../org/apache/royale/jewel/beads/views/DataGridView.as | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DataGridView.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DataGridView.as
index 7dc9141..7e45cf3 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DataGridView.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DataGridView.as
@@ -28,8 +28,10 @@ package org.apache.royale.jewel.beads.views
import org.apache.royale.core.IDataGridHeader;
import org.apache.royale.core.IDataGridModel;
import org.apache.royale.core.IDataProviderModel;
+ import org.apache.royale.core.IItemRendererProvider;
import org.apache.royale.core.IParent;
import org.apache.royale.core.IStrand;
+ import org.apache.royale.core.IStrandWithModel;
import org.apache.royale.core.IUIBase;
import org.apache.royale.core.StyledUIBase;
import org.apache.royale.core.ValuesManager;
@@ -39,7 +41,6 @@ package org.apache.royale.jewel.beads.views
import org.apache.royale.html.beads.GroupView;
import org.apache.royale.html.beads.IDataGridView;
import org.apache.royale.html.beads.LabelFunction;
- import org.apache.royale.jewel.DataGrid;
import org.apache.royale.jewel.beads.models.DataGridColumnListPresentationModel;
import org.apache.royale.jewel.supportClasses.datagrid.IDataGridColumn;
import org.apache.royale.jewel.supportClasses.datagrid.IDataGridColumnList;
@@ -47,10 +48,9 @@ package org.apache.royale.jewel.beads.views
import org.apache.royale.utils.IEmphasis;
import org.apache.royale.utils.loadBeadFromValuesManager;
import org.apache.royale.utils.observeElementSize;
- import org.apache.royale.core.IStrandWithModel;
/**
- * The DataGridView class is the visual bead for the org.apache.royale.jewel.DataGrid.
+ * The DataGridView class is the visual bead for the org.apache.royale.core.IDataGrid.
* This class constructs the items that make the DataGrid: Lists for each column and a
* org.apache.royale.jewel.ButtonBar for the column headers.
*
@@ -208,7 +208,7 @@ package org.apache.royale.jewel.beads.views
var list:IDataGridColumnList = new columnClass();
list.columnInfo = dataGridColumn;
- list.datagrid = _dg as DataGrid;
+ list.datagrid = _dg;
list.emphasis = (_dg as IEmphasis).emphasis;
if (i == 0) {
@@ -225,8 +225,8 @@ package org.apache.royale.jewel.beads.views
// (list as ILayoutChild).percentWidth = 100 / len;
// need to add itemRenderer interface to DataGrid
- if((_dg as DataGrid).itemRenderer)
- list.itemRenderer = (_dg as DataGrid).itemRenderer;
+ if((_dg as IItemRendererProvider).itemRenderer)
+ list.itemRenderer = (_dg as IItemRendererProvider).itemRenderer;
else
list.itemRenderer = dataGridColumn.itemRenderer;
list.labelField = dataGridColumn.dataField;