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
commit eaaddbb672cadbf07d2e14c9266a74211ab52045 Author: Carlos Rovira <[email protected]> AuthorDate: Mon Jun 15 18:06:04 2020 +0200 core-itextbutton interface --- .../projects/Core/src/main/royale/CoreClasses.as | 1 + .../royale/org/apache/royale/core/ITextButton.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 b16ddc0..6cf73c5 100644 --- a/frameworks/projects/Core/src/main/royale/CoreClasses.as +++ b/frameworks/projects/Core/src/main/royale/CoreClasses.as @@ -36,6 +36,7 @@ internal class CoreClasses import org.apache.royale.core.ApplicationBase; ApplicationBase; import org.apache.royale.core.IList; IList; import org.apache.royale.core.IIcon; IIcon; + import org.apache.royale.core.ITextButton; ITextButton; import org.apache.royale.core.IIconSupport; IIconSupport; import org.apache.royale.core.ITextInput; ITextInput; import org.apache.royale.html.beads.IListView; IListView; diff --git a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/ITextButton.as b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/ITextButton.as new file mode 100644 index 0000000..29f65bf --- /dev/null +++ b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/ITextButton.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 +{ + /** + * ITextButton interface is implemented by button classes with text property like Button, CheckBox and RadioButton + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion Royale 0.10.0 + */ + public interface ITextButton extends IUIBase + { + /** + * The text of the icon + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion Royale 0.10.0 + */ + function get text():String; + function set text(value:String):void; + + /** + * the span for the label text + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion Royale 0.10.0 + */ + COMPILE::JS + function get spanLabel():HTMLSpanElement; + COMPILE::JS + function set spanLabel(value:HTMLSpanElement):void; + } +}
