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 2019/08/23 09:16:35 UTC

[royale-asjs] branch develop updated: jewel-button: rename BasicButton to SimpleButton

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 4a3cb88  jewel-button: rename BasicButton to SimpleButton
4a3cb88 is described below

commit 4a3cb8864d2df2ba4e028e07d9cda9215373c42c
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Fri Aug 23 11:16:28 2019 +0200

    jewel-button: rename BasicButton to SimpleButton
---
 .../TourDeJewel/src/main/royale/ButtonPlayGround.mxml    |  2 +-
 .../projects/Jewel/src/main/resources/jewel-manifest.xml |  2 +-
 .../src/main/royale/org/apache/royale/jewel/Button.as    |  6 +++---
 .../button/{BasicButton.as => SimpleButton.as}           | 16 ++++++++--------
 4 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/examples/royale/TourDeJewel/src/main/royale/ButtonPlayGround.mxml b/examples/royale/TourDeJewel/src/main/royale/ButtonPlayGround.mxml
index 4a79c80..3a50dce 100644
--- a/examples/royale/TourDeJewel/src/main/royale/ButtonPlayGround.mxml
+++ b/examples/royale/TourDeJewel/src/main/royale/ButtonPlayGround.mxml
@@ -67,7 +67,7 @@ limitations under the License.
 					</j:beads>
 				</j:Button>
 
-				<j:BasicButton emphasis="{Button.EMPHASIZED}"/>
+				<j:SimpleButton emphasis="{Button.EMPHASIZED}"/>
 			</j:Card>
 		</j:GridCell>
 		<j:GridCell desktopNumerator="1" desktopDenominator="2" tabletNumerator="1" tabletDenominator="2" phoneNumerator="1" phoneDenominator="1">
diff --git a/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml b/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
index 7480994..2231fe6 100644
--- a/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
+++ b/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
@@ -43,7 +43,7 @@
     <component id="TableHeaderCell" class="org.apache.royale.jewel.supportClasses.table.TableHeaderCell"/>
     <component id="TableColumn" class="org.apache.royale.jewel.supportClasses.table.TableColumn"/>
 
-    <component id="BasicButton" class="org.apache.royale.jewel.supportClasses.button.BasicButton"/>
+    <component id="SimpleButton" class="org.apache.royale.jewel.supportClasses.button.SimpleButton"/>
     <component id="Button" class="org.apache.royale.jewel.Button"/>
     <component id="IconButton" class="org.apache.royale.jewel.IconButton"/>
     <component id="ToggleButton" class="org.apache.royale.jewel.ToggleButton"/>
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Button.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Button.as
index c8d2d46..f6ddf7a 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Button.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Button.as
@@ -23,12 +23,12 @@ package org.apache.royale.jewel
     import org.apache.royale.core.ITextModel;
     }
 
-    import org.apache.royale.jewel.supportClasses.button.BasicButton;
+    import org.apache.royale.jewel.supportClasses.button.SimpleButton;
 
     [DefaultProperty("text")]
 
     /**
-     *  The Jewel Button class adds text capabilities to Jewel BasicButton.
+     *  The Jewel Button class adds text capabilities to Jewel SimpleButton.
      * 
      *  Button is a commonly used rectangular button with text inside. It looks like it can be pressed 
      *  and allow users to take actions, and make choices, with a single click or tap. It typically
@@ -40,7 +40,7 @@ package org.apache.royale.jewel
      *  @playerversion AIR 2.6
      *  @productversion Royale 0.9.4
      */
-    public class Button extends BasicButton
+    public class Button extends SimpleButton
     {
         public static const PRIMARY:String = "primary";
         public static const SECONDARY:String = "secondary";
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/supportClasses/button/BasicButton.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/supportClasses/button/SimpleButton.as
similarity index 94%
rename from frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/supportClasses/button/BasicButton.as
rename to frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/supportClasses/button/SimpleButton.as
index 8f245f5..5a95fdd 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/supportClasses/button/BasicButton.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/supportClasses/button/SimpleButton.as
@@ -141,10 +141,10 @@ package org.apache.royale.jewel.supportClasses.button
 	[Event(name="doubleClick", type="org.apache.royale.events.MouseEvent")]
 
     /**
-     *  The Jewel BasicButton class is a simple button.  Use Jewel Button for
+     *  The Jewel SimpleButton class is a simple button.  Use Jewel Button for
      *  buttons that should show text.
      * 
-     *  BasicButton is a commonly used rectangular button. It looks like it can be pressed 
+     *  SimpleButton is a commonly used rectangular button. It looks like it can be pressed 
      *  and allow users to take actions, and make choices, with a single click or tap. It typically
      *  use event listeners to perform an action when the user interact with the control. When a user
      *  clicks the mouse or tap with the finger this control it dispatches a click event.
@@ -158,7 +158,7 @@ package org.apache.royale.jewel.supportClasses.button
      *  @productversion Royale 0.9.6
      */
     COMPILE::SWF
-	public class BasicButton extends UIButtonBase implements IStrand, IUIBase, IEventDispatcher, IClassSelectorListSupport
+	public class SimpleButton extends UIButtonBase implements IStrand, IUIBase, IEventDispatcher, IClassSelectorListSupport
 	{
         public static const PRIMARY:String = "primary";
         public static const SECONDARY:String = "secondary";
@@ -172,7 +172,7 @@ package org.apache.royale.jewel.supportClasses.button
          *  @playerversion AIR 2.6
          *  @productversion Royale 0.9.6
          */
-		public function BasicButton()
+		public function SimpleButton()
 		{
 			super();
 
@@ -280,10 +280,10 @@ package org.apache.royale.jewel.supportClasses.button
     }
 
     /**
-     *  The Jewel BasicButton class is a simple button.  Use Jewel Button for
+     *  The Jewel SimpleButton class is a simple button.  Use Jewel Button for
      *  buttons that should show text.
      * 
-     *  BasicButton is a commonly used rectangular button. It looks like it can be pressed 
+     *  SimpleButton is a commonly used rectangular button. It looks like it can be pressed 
      *  and allow users to take actions, and make choices, with a single click or tap. It typically
      *  use event listeners to perform an action when the user interact with the control. When a user
      *  clicks the mouse or tap with the finger this control it dispatches a click event.
@@ -297,7 +297,7 @@ package org.apache.royale.jewel.supportClasses.button
      *  @productversion Royale 0.9.6
      */
     COMPILE::JS
-    public class BasicButton extends StyledUIBase implements IStrand, IUIBase, IEventDispatcher, IClassSelectorListSupport
+    public class SimpleButton extends StyledUIBase implements IStrand, IUIBase, IEventDispatcher, IClassSelectorListSupport
     {
         public static const PRIMARY:String = "primary";
         public static const SECONDARY:String = "secondary";
@@ -311,7 +311,7 @@ package org.apache.royale.jewel.supportClasses.button
          *  @playerversion AIR 2.6
          *  @productversion Royale 0.9.6
          */
-		public function BasicButton()
+		public function SimpleButton()
 		{
 			super();
             typeNames = "jewel button";