minimum
and maximum
properties.
* The value
property
* is always constrained to be between the current minimum
and
* maximum
, and the minimum
,
* and maximum
are always constrained
* to be in the proper numerical order, such that
* (minimum <= value <= maximum)
is true
.
* If the value of the snapInterval
property is not 0,
* then the value
property is also constrained to be a multiple of
* snapInterval
.
*
* Range is a base class for various controls that require range * functionality, including TrackBase and Spinner.
* * @see spark.components.supportClasses.TrackBase * @see spark.components.Spinner */ public class Range extends SkinnableComponent { include "../core/Version.as"; //-------------------------------------------------------------------------- // // Constructor // //-------------------------------------------------------------------------- /** * Constructor. */ public function Range():void; //-------------------------------------------------------------------------- // // Properties // //-------------------------------------------------------------------------- //--------------------------------- // maximum //--------------------------------- /** * The maximum validvalue
.
*
* Changes to the value property are constrained
* by commitProperties()
to be less than or equal to
* maximum with the nearestValidValue()
method.
value
.
*
* Changes to the value property are constrained
* by commitProperties()
to be greater than or equal to
* minimum with the nearestValidValue()
method.
value
property
* changes when the changeValueByStep()
method is called. It must
* be a multiple of snapInterval
, unless
* snapInterval
is 0.
* If stepSize
* is not a multiple, it is rounded to the nearest
* multiple that is greater than or equal to snapInterval
.
*
* @default 1
*/
public function get stepSize():Number;
public function set stepSize(value:Number):void;
//---------------------------------
// value
//---------------------------------
Bindable(event="valueCommit")
/**
* The current value for this range.
*
* Changes to the value property are constrained
* by commitProperties()
to be greater than or equal to
* the minimum
property, less than or equal to the maximum
property, and a
* multiple of snapInterval
with the nearestValidValue()
* method.
If the value of this property is zero, then valid values are only constrained * to be between minimum and maximum inclusive.
* *This property also constrains valid values for the stepSize
property when set.
* If this property is not explicitly set and stepSize
is set,
* then snapInterval
defaults to stepSize
.
interval
that's
* closest to value
, unless value
is closer to the maximum limit,
* in which case the maximum is returned.
*
* If interval
is equal to 0, the value is clipped to the minimum and maximum
* limits.
The valid values for a range are defined by the sum of the minimum
property
* with multiples of the interval
and also defined to be less than or equal to the
* maximum
property.
*
* The maximum need not be a multiple of snapInterval
.
For example, if minimum
is equal to 1, maximum
is equal to 6,
* and snapInterval
is equal to 2, the valid
* values for the Range are 1, 3, 5, 6.
*
* Similarly, if minimum
is equal to 2, maximum
is equal to 9,
* and snapInterval
is equal to 1.5, the valid
* values for the Range are 2, 3.5, 5, 6.5, 8, and 9.
value
property and
* dispatches a valueCommit
event if the property changes.
*
* All updates to the value
property cause a call to this method.
This method assumes that the caller has already used the nearestValidValue()
method
* to constrain the value parameter
value
property.
*/
protected function setValue(value:Number):void;
/**
* Increases or decreases value
by stepSize
.
*
* @param increase If true, adds stepSize
to value
, otherwise, subtracts it.
*/
public function changeValueByStep(increase:Boolean = true):void;
}
}
## B Features
----
## Additional Implementation Details
----
none
## Prototype Work
----
## Compiler Work
----
none
## Web Tier Compiler Impact
----
none
## Flex Feature Dependencies
----
## Backwards Compatibility
----
### Syntax changes
None - New Class
### Behavior
None
### Warnings/Deprecation
None
## Accessibility
----
Support Halo equivalent.
## Performance
----
none.
## Globalization
----
none
## Localization
----
### Compiler Features
none.
## Documentation
----
Yes.
## QA
----
Yes.
----