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:23:55 UTC

[royale-asjs] branch develop updated: core: add IComboBox interface

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 9a92ba0  core: add IComboBox interface
9a92ba0 is described below

commit 9a92ba0310d354048e1a22552126b58caa22d9d9
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sun Oct 25 18:23:42 2020 +0100

    core: add IComboBox interface
---
 .../main/royale/org/apache/royale/html/ComboBox.as |  8 ++---
 .../projects/Core/src/main/royale/CoreClasses.as   |  1 +
 .../royale/org/apache/royale/core/IComboBox.as     | 37 ++++++++++++++++++++++
 3 files changed, 41 insertions(+), 5 deletions(-)

diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/ComboBox.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/ComboBox.as
index df9401e..464dda0 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/ComboBox.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/ComboBox.as
@@ -18,11 +18,9 @@
 ////////////////////////////////////////////////////////////////////////////////
 package org.apache.royale.html
 {
-    import org.apache.royale.core.IUIBase;
-	import org.apache.royale.core.UIBase;
-
+    import org.apache.royale.core.IComboBox;
     import org.apache.royale.core.IComboBoxModel;
-    import org.apache.royale.html.beads.models.ComboBoxModel;
+    import org.apache.royale.core.UIBase;
 	
 	[Event(name="change", type="org.apache.royale.events.Event")]
 	
@@ -42,7 +40,7 @@ package org.apache.royale.html
 	 *  @playerversion AIR 2.6
 	 *  @productversion Royale 0.0
 	 */
-	public class ComboBox extends UIBase
+	public class ComboBox extends UIBase implements IComboBox
 	{
 		/**
 		 *  Constructor.
diff --git a/frameworks/projects/Core/src/main/royale/CoreClasses.as b/frameworks/projects/Core/src/main/royale/CoreClasses.as
index e9905b1..010dff5 100644
--- a/frameworks/projects/Core/src/main/royale/CoreClasses.as
+++ b/frameworks/projects/Core/src/main/royale/CoreClasses.as
@@ -108,6 +108,7 @@ internal class CoreClasses
 	import org.apache.royale.core.IChild; IChild;
 	import org.apache.royale.core.IChrome; IChrome;
 	import org.apache.royale.core.IColorWithAlphaModel; IColorWithAlphaModel;
+	import org.apache.royale.core.IComboBox; IComboBox;
 	import org.apache.royale.core.IComboBoxModel; IComboBoxModel;
 	import org.apache.royale.core.IContainer; IContainer;
 	import org.apache.royale.core.IContainerView; IContainerView;
diff --git a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/IComboBox.as b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/IComboBox.as
new file mode 100644
index 0000000..ce746ad
--- /dev/null
+++ b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/IComboBox.as
@@ -0,0 +1,37 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 IComboBox interface is implemented by any component that supports being
+	 *  a "ComboBox" 
+     * 
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion Royale 0.9.8
+     */
+	public interface IComboBox extends IParentIUIBase //, IContainer, IStrandWithPresentationModel
+	{
+        // function get model():Object;
+        // function set model(value:Object):void;
+        
+	}
+}