You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by al...@apache.org on 2018/05/14 09:59:30 UTC
[royale-asjs] branch feature/MXRoyale updated: Spark
ToggleButton.as Added
This is an automated email from the ASF dual-hosted git repository.
alinakazi pushed a commit to branch feature/MXRoyale
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/feature/MXRoyale by this push:
new 181da38 Spark ToggleButton.as Added
181da38 is described below
commit 181da388335e4a898dc9476bc30359fec285604f
Author: alinakazi <AL...@GMAIL.COM>
AuthorDate: Mon May 14 02:59:28 2018 -0700
Spark ToggleButton.as Added
---
.../main/royale/spark/components/ToggleButton.as | 117 +++++++++++++++++++++
1 file changed, 117 insertions(+)
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/ToggleButton.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/ToggleButton.as
new file mode 100644
index 0000000..17832ec
--- /dev/null
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/ToggleButton.as
@@ -0,0 +1,117 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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 spark.components
+{
+
+import spark.components.supportClasses.ToggleButtonBase;
+
+[Exclude(name="textAlign", kind="style")]
+
+//[IconFile("ToggleButton.png")]
+
+/**
+ * Because this component does not define a skin for the mobile theme, Adobe
+ * recommends that you not use it in a mobile application. Alternatively, you
+ * can define your own mobile skin for the component. For more information,
+ * see <a href="http://help.adobe.com/en_US/flex/mobileapps/WS19f279b149e7481c698e85712b3011fe73-8000.html">Basics of mobile skinning</a>.
+ */
+[DiscouragedForProfile("mobileDevice")]
+
+/**
+ * The ToggleButton component defines a toggle button.
+ * Clicking the button toggles it between the up and an down states.
+ * If you click the button while it is in the up state,
+ * it toggles to the down state. You must click the button again
+ * to toggle it back to the up state.
+ *
+ * <p>You can get or set this state programmatically
+ * by using the <code>selected</code> property.</p>
+ *
+ * <p>To use this component in a list-based component, such as a List or DataGrid,
+ * create an item renderer.
+ * For information about creating an item renderer, see
+ * <a href="http://help.adobe.com/en_US/flex/using/WS4bebcd66a74275c3-fc6548e124e49b51c4-8000.html">
+ * Custom Spark item renderers</a>. </p>
+ *
+ * <p>The ToggleButton control has the following default characteristics:</p>
+ * <table class="innertable">
+ * <tr>
+ * <th>Characteristic</th>
+ * <th>Description</th>
+ * </tr>
+ * <tr>
+ * <td>Default size</td>
+ * <td>Wide enough to display the text label of the control</td>
+ * </tr>
+ * <tr>
+ * <td>Minimum size</td>
+ * <td>21 pixels wide and 21 pixels high</td>
+ * </tr>
+ * <tr>
+ * <td>Maximum size</td>
+ * <td>10000 pixels wide and 10000 pixels high</td>
+ * </tr>
+ * <tr>
+ * <td>Default skin class</td>
+ * <td>spark.skins.spark.ToggleButtonSkin</td>
+ * </tr>
+ * </table>
+ *
+ * @mxml
+ *
+ * <p>The <code><s:ToggleButton></code> tag inherits all of the tag
+ * attributes of its superclass and adds no tag attributes:</p>
+ *
+ * <pre>
+ * <s:ToggleButton/>
+ * </pre>
+ *
+ * @see spark.skins.spark.ToggleButtonSkin
+ * @includeExample examples/ToggleButtonExample.mxml
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10
+ * @playerversion AIR 1.5
+ * @productversion Royale 0.9.4
+ */
+public class ToggleButton extends ToggleButtonBase
+{
+ // include "../core/Version.as";
+
+ //--------------------------------------------------------------------------
+ //
+ // Constructor
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * Constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10
+ * @playerversion AIR 1.5
+ * @productversion Royale 0.9.4
+ */
+ public function ToggleButton()
+ {
+ super();
+ }
+}
+}
--
To stop receiving notification emails like this one, please contact
alinakazi@apache.org.