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

pushminakazi 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 d952596  Update HSlider.as
d952596 is described below

commit d9525960595f19e11945554de1e991212e316db5
Author: pashminakazi <[email protected]>
AuthorDate: Mon Sep 21 18:31:21 2020 +0500

    Update HSlider.as
---
 .../src/main/royale/mx/controls/HSlider.as         | 137 +++++++++++++++++++--
 1 file changed, 129 insertions(+), 8 deletions(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/HSlider.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/HSlider.as
index 718c610..68df3ec 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/HSlider.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/HSlider.as
@@ -16,17 +16,138 @@
 //  limitations under the License.
 //
 
////////////////////////////////////////////////////////////////////////////////
+
 package mx.controls
 {
-       import org.apache.royale.express.HSlider;
 
-       public class HSlider extends org.apache.royale.express.HSlider //Slider
+import mx.controls.sliderClasses.Slider;
+import mx.controls.sliderClasses.SliderDirection;
+
+//--------------------------------------
+//  Styles
+//--------------------------------------
+
+/**
+ *  The location of the data tip relative to the thumb.
+ *  Possible values are <code>"left"</code>, <code>"right"</code>,
+ *  <code>"top"</code>, and <code>"bottom"</code>.
+ *
+ *  @default "top"
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="dataTipPlacement", type="String", 
enumeration="left,top,right,bottom", inherit="no")]
+
+//--------------------------------------
+//  Excluded APIs
+//--------------------------------------
+
+[Exclude(name="direction", kind="property")]
+
+//--------------------------------------
+//  Other metadata
+//--------------------------------------
+
+[DefaultBindingProperty(source="value", destination="labels")]
+
+[DefaultTriggerEvent("change")]
+
+//[IconFile("HSlider.png")]
+
+[Alternative(replacement="spark.components.HSlider", since="4.0")]
+
+/**    
+ *  The HSlider control lets users select a value by moving
+ *  a slider thumb between the end points of the slider track.
+ *  The current value of the slider is determined by the relative
+ *  location of the thumb between the end points of the slider,
+ *  corresponding to the slider's minimum and maximum values.
+ *
+ *  <p>The slider may allow a continuous range of values between its
+ *  minimum and maximum values or it may be restricted to values
+ *  at specific intervals between the minimum and maximum value.
+ *  It may show tick marks at specified intervals along the track. These
+ *  tick marks are independent of the allowed values of the slider. The slider
+ *  may also use a data tip to display its current value.</p>
+ *     
+ *  <p>The HSlider control has a horizontal direction.
+ *  The slider track stretches from left to right, and the labels
+ *  and tick marks are placed at the top or bottom of the track.</p>
+ *  
+ *  <p>The HSlider control has the following default characteristics:</p>
+ *     <table class="innertable">
+ *        <tr>
+ *           <th>Characteristic</th>
+ *           <th>Description</th>
+ *        </tr>
+ *        <tr>
+ *           <td>Default size</td>
+ *           <td>250 pixels wide, high enough to hold the slider and any 
associated labels</td>
+ *        </tr>
+ *        <tr>
+ *           <td>Minimum size</td>
+ *           <td>None</td>
+ *        </tr>
+ *        <tr>
+ *           <td>Maximum size</td>
+ *           <td>None</td>
+ *        </tr>
+ *     </table>
+ *
+ *  @mxml
+ *  
+ *  <p>The <code>&lt;mx:HSlider&gt;</code> tag inherits all of the tag 
attributes
+ *  of its superclass, and adds the following tag attribute:</p>
+ * 
+ *  <pre>
+ *  &lt;mx:HSlider
+ *    <strong>Styles</strong>
+ *    dataTipPlacement="top"
+ *  /&gt;
+ *  </pre>
+ *  </p>
+ *  
+ *  @includeExample examples/SimpleImageHSlider.mxml
+ *     
+ *  @see mx.controls.VSlider
+ *  @see mx.controls.sliderClasses.Slider
+ *  @see mx.controls.sliderClasses.SliderThumb
+ *  @see mx.controls.sliderClasses.SliderDataTip
+ *  @see mx.controls.sliderClasses.SliderLabel
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public class HSlider extends Slider
+{
+       //include "../core/Version.as";
+               
+       
//--------------------------------------------------------------------------
+       //
+       //  Constructor
+       //
+       
//--------------------------------------------------------------------------
+
+       /**
+        *  Constructor.
+        *  
+        *  @langversion 3.0
+        *  @playerversion Flash 9
+        *  @playerversion AIR 1.1
+        *  @productversion Flex 3
+        */
+       public function HSlider()
        {
-               public function HSlider()
-               {
-                       super();
-                       
-                       typeNames = "HSlider";
-               }
+               super();
+               
+               // Slider variables.
+               direction = SliderDirection.HORIZONTAL;
        }
 }
+
+}

Reply via email to