| //////////////////////////////////////////////////////////////////////////////// |
| // |
| // 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 mx.controls |
| { |
| |
| 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><mx:HSlider></code> tag inherits all of the tag attributes |
| * of its superclass, and adds the following tag attribute:</p> |
| * |
| * <pre> |
| * <mx:HSlider |
| * <strong>Styles</strong> |
| * dataTipPlacement="top" |
| * /> |
| * </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() |
| { |
| super(); |
| |
| // Slider variables. |
| direction = SliderDirection.HORIZONTAL; |
| } |
| } |
| |
| } |