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

harbs 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 0e4b504788 Added interfaces
0e4b504788 is described below

commit 0e4b5047880f164c871c0c24e46b71168f7eaf65
Author: Harbs <[email protected]>
AuthorDate: Wed Mar 11 11:42:48 2026 +0200

    Added interfaces
---
 .../projects/Core/src/main/royale/CoreClasses.as   |  2 ++
 .../royale/org/apache/royale/core/IHasLabel.as     | 35 ++++++++++++++++++++++
 .../main/royale/org/apache/royale/core/IHasText.as | 26 ++++++++++++++++
 3 files changed, 63 insertions(+)

diff --git a/frameworks/projects/Core/src/main/royale/CoreClasses.as 
b/frameworks/projects/Core/src/main/royale/CoreClasses.as
index bc12a1fc65..e60d91986b 100644
--- a/frameworks/projects/Core/src/main/royale/CoreClasses.as
+++ b/frameworks/projects/Core/src/main/royale/CoreClasses.as
@@ -36,6 +36,8 @@ internal class CoreClasses
        import org.apache.royale.core.ApplicationBase; ApplicationBase;
        import org.apache.royale.core.ILabeledData; ILabeledData;
        import org.apache.royale.core.IList; IList;
+       import org.apache.royale.core.IHasLabel; IHasLabel;
+       import org.apache.royale.core.IHasText; IHasText;
        import org.apache.royale.core.IIcon; IIcon;
        import org.apache.royale.core.ITextButton; ITextButton;
        import org.apache.royale.core.IIconSupport; IIconSupport;
diff --git 
a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/IHasLabel.as 
b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/IHasLabel.as
new file mode 100644
index 0000000000..f067a1c1f2
--- /dev/null
+++ 
b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/IHasLabel.as
@@ -0,0 +1,35 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 IHasLabel interface describes the minimum set of properties
+        *  available to control that has a label.
+        *  
+        *  @langversion 3.0
+        *  @playerversion Flash 10.2
+        *  @playerversion AIR 2.6
+        *  @productversion Royale 0.9.13
+        */
+       public interface IHasLabel
+       {
+               function get label():String;
+               function set label(value:String):void;
+       }
+}
\ No newline at end of file
diff --git 
a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/IHasText.as 
b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/IHasText.as
new file mode 100644
index 0000000000..b3250d8248
--- /dev/null
+++ 
b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/IHasText.as
@@ -0,0 +1,26 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+       public interface IHasText
+       {
+               function get text():String;
+               function set text(value:String):void;
+       }
+}
\ No newline at end of file

Reply via email to