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/09/12 11:55:48 UTC
[royale-asjs] branch develop updated: core: new IDataGridHeader
interface (header could be just ButtonBar or IconButtonBar, ToggleButtonBar,
...)
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 909b428 core: new IDataGridHeader interface (header could be just ButtonBar or IconButtonBar, ToggleButtonBar,...)
909b428 is described below
commit 909b428b4f56c62ee87d56af0e4288b80f32eeec
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sat Sep 12 13:55:36 2020 +0200
core: new IDataGridHeader interface (header could be just ButtonBar or IconButtonBar, ToggleButtonBar,...)
---
.../projects/Core/src/main/royale/CoreClasses.as | 1 +
.../org/apache/royale/core/IDataGridHeader.as | 64 ++++++++++++++++++++++
2 files changed, 65 insertions(+)
diff --git a/frameworks/projects/Core/src/main/royale/CoreClasses.as b/frameworks/projects/Core/src/main/royale/CoreClasses.as
index 1af3007..3dba2f9 100644
--- a/frameworks/projects/Core/src/main/royale/CoreClasses.as
+++ b/frameworks/projects/Core/src/main/royale/CoreClasses.as
@@ -284,6 +284,7 @@ internal class CoreClasses
import org.apache.royale.core.IMenuBarModel; IMenuBarModel;
import org.apache.royale.core.IDataGridModel; IDataGridModel;
+ import org.apache.royale.core.IDataGridHeader; IDataGridHeader;
import org.apache.royale.core.IDataGridPresentationModel; IDataGridPresentationModel;
import org.apache.royale.core.IDateChooserModelWithChangeCheck; IDateChooserModelWithChangeCheck;
import org.apache.royale.core.ParentDocumentBead; ParentDocumentBead;
diff --git a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/IDataGridHeader.as b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/IDataGridHeader.as
new file mode 100644
index 0000000..dce0f5c
--- /dev/null
+++ b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/IDataGridHeader.as
@@ -0,0 +1,64 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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 IDataGridHeader is a marker interface that defines the header
+ * component part in a DataGrid.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.9.8
+ */
+ public interface IDataGridHeader extends IUIBase, IStrandWithModel
+ {
+ /**
+ * The set of choices displayed in the ComboBox's
+ * dropdown. The dataProvider can be a simple
+ * array or vector if the set of choices is not
+ * going to be modified (except by wholesale
+ * replacement of the dataProvider). To use
+ * different kinds of data sets, you may need to
+ * provide an alternate "mapping" bead that
+ * iterates the dataProvider, generates item
+ * renderers and assigns a data item to the
+ * item renderers.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.0
+ */
+ function get dataProvider():Object;
+ function set dataProvider(value:Object):void;
+
+ /**
+ * The property on the data item that the item renderer
+ * should renderer.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.0
+ */
+ function get labelField():String;
+ function set labelField(value:String):void;
+ }
+}