true
, the thumb's value is
* committed as it is dragged along the track instead
* of when the thumb button is released.
*
* @default true
*/
Style(name="liveDragging", type="Boolean", inherit="no")
/**
* The SliderBase class 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.
*
* The SliderBase class is a base class for HSlider and VSlider.
*
* @see spark.components.HSlider
* @see spark.components.VSlider
*/
public class SliderBase extends TrackBase implements IFocusManagerComponent
{
include "../../core/Version.as";
//--------------------------------------------------------------------------
//
// Constructor
//
//--------------------------------------------------------------------------
/**
* Constructor.
*/
public function SliderBase():void;
//--------------------------------------------------------------------------
//
// Skin parts
//
//--------------------------------------------------------------------------
SkinPart(required="false", type="mx.core.IDataRenderer")
/**
* A skin part that defines a dataTip that displays a formatted version of
* the current value. The dataTip appears while the thumb is being dragged.
* This is a dynamic skin part and must be of type IFactory.
*/
public var dataTip:IFactory;
//--------------------------------------------------------------------------
//
// Properties
//
//--------------------------------------------------------------------------
//---------------------------------
// dataTipformatFunction
//---------------------------------
/**
* Callback function that formats the data tip text.
* The function takes a single Number as an argument
* and returns a formatted String.
*
* The function has the following signature:
** funcName(value:Number):Object ** *
The following example prefixes the data tip text with a dollar sign and
* formats the text using the dataTipPrecision
* of a SliderBase Control named 'slide':
* import mx.formatters.NumberBase; * function myDataTipFormatter(value:Number):Object { * var dataFormatter:NumberBase = new NumberBase(".", ",", ".", ""); * return "$ " + dataFormatter.formatPrecision(String(value), slide.dataTipPrecision); * } ** * @default undefined */ public function get dataTipFormatFunction():Function; public function set dataTipFormatFunction(value:Function):void; //--------------------------------- // dataTipPrecision //--------------------------------- /** * Number of decimal places to use for the data tip text. * A value of 0 means to round all values to an integer. * This value is ignored if
dataTipFormatFunction
is defined.
*
* @default 2
*/
public var dataTipPrecision:int;
//----------------------------------
// pendingValue
//----------------------------------
/**
* The value the slider will have when the mouse button is released. This property
* also holds the temporary values set during an animation of the thumb if
* the liveDragging
style is true; the real value is only set
* when the animation ends.
*
* If the liveDragging
style is false, then the slider's value is only set
* when the mouse button is released. The value is not updated while the slider thumb is
* being dragged.
This property is updated when the slider thumb moves, even if
* liveDragging
is false.
true
, shows a data tip during user interaction
* containing the current value of the slider. In addition, the skinPart,
* dataTip
, must be defined in the skin in order to
* display a data tip.
* @default true
*/
public var showDataTip:Boolean;
//--------------------------------------------------------------------------
//
// Methods
//
//--------------------------------------------------------------------------
/**
* Used to position the data tip when it is visible. Subclasses must implement
* this function.
*
* @param dataTipInstance The dataTip
instance to update and position
* @param initialPosition The initial position of the dataTip
in the skin
*/
protected function updateDataTip(dataTipInstance:IDataRenderer, initialPosition:Point):void
}
}
## B Features
----
## Additional Implementation Details
----
none
## Prototype Work
----
* Working prototype of HSlider, CircularSlider
## Compiler Work
----
none
## Web Tier Compiler Impact
----
none
## Flex Feature Dependencies
----
* Depends on Range.
## Backwards Compatibility
----
### Syntax changes
None - New Class
### Behavior
None
### Warnings/Deprecation
None
## Accessibility
----
Support Halo equivalent.
## Performance
----
none.
## Globalization
----
none
## Localization
----
### Compiler Features
none.
## QA
----
Yes.
----