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/07/28 13:45:56 UTC

[royale-asjs] branch develop updated: Core: add ITableModel

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

carlosrovira 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 c11d1de  Core: add ITableModel
c11d1de is described below

commit c11d1de73d86866f87166f8804ed8404bb6839d1
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Tue Jul 28 15:45:45 2020 +0200

    Core: add ITableModel
---
 .../projects/Core/src/main/royale/CoreClasses.as   |  1 +
 .../royale/org/apache/royale/core/ITableModel.as   | 55 ++++++++++++++++++++++
 2 files changed, 56 insertions(+)

diff --git a/frameworks/projects/Core/src/main/royale/CoreClasses.as b/frameworks/projects/Core/src/main/royale/CoreClasses.as
index 461b663..0c31d05 100644
--- a/frameworks/projects/Core/src/main/royale/CoreClasses.as
+++ b/frameworks/projects/Core/src/main/royale/CoreClasses.as
@@ -151,6 +151,7 @@ internal class CoreClasses
 	import org.apache.royale.core.ISelectableItemRenderer; ISelectableItemRenderer;
 	import org.apache.royale.core.ISelectable; ISelectable;
 	import org.apache.royale.core.ISelectionModel; ISelectionModel;
+	import org.apache.royale.core.ITableModel; ITableModel;
 	import org.apache.royale.core.IMultiSelectionModel; IMultiSelectionModel;
 	import org.apache.royale.core.IStrand; IStrand;
 	import org.apache.royale.core.IContainerBaseStrandChildrenHost; IContainerBaseStrandChildrenHost;
diff --git a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/ITableModel.as b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/ITableModel.as
new file mode 100644
index 0000000..3eb71b8
--- /dev/null
+++ b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/ITableModel.as
@@ -0,0 +1,55 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package org.apache.royale.core
+{
+    /**
+     *  The IDataGridModel interface describes the minimum set of properties
+     *  available to an DataGrid control.  More sophisticated DataGrid controls
+     *  could have models that extend IDataGridModel.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion Royale 0.10.0
+     */
+	public interface ITableModel extends ISelectionModel, IRollOverModel
+	{
+        /**
+         *  The set of Table Columns.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion Royale 0.10.0
+         */
+		function get columns():Array;
+		function set columns(value:Array):void;
+
+		/**
+		 * The selected item property
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion Royale 0.10.0
+		 */
+		function get selectedItemProperty():Object
+		function set selectedItemProperty(value:Object):void
+	}
+}