Package | com.ghostwire.ui.controls |
Class | public class uiVSlider |
Inheritance | uiVSlider ![]() ![]() ![]() |
uiVSlider
component allows the user to select a value within a range by sliding a
thumb along a vertical track.
You cannot change the orientation of a uiVSlider
instance - it is always vertical. If
you need a horizontal slider, use the uiSlider
class.
The value
of a uiVSlider
moves from lower to higher values as the thumb
moves from bottom-to-top (ie the minimum
is at the bottom, maximum
is at
the top). You may set the inverted
property to true
if you wish to
reverse the positions of the minimum
and maximum
values.
"padding" Property
Always 0
- attempting to set this property will throw an error.
"range" Property
You need to access the values represented by the component via the range
property.
For example, range.value
, range.minimum
, range.maximum
, etc.
"skin" Property
The default value is "VSlider"
and the asset(s) used are:
VSlider.png VSliderThumb.png
Events
The slider itself will not dispatch events related to the range values. Listen for events that are
dispatched by the uiRange
object instead.
Key Navigation
While the component has focus, the user may use the END
key to move the thumb to the
range.maximum
position and the HOME
key to the range.minimum
position. The arrow keys can also be used to increment/decrement the value. Holding down the
SHIFT
key uses the range.page
value for increment/decrement.
~ This class is available in Aspire UI Components Lite Edition ~
See also
Method | Defined by | ||
---|---|---|---|
Constructor - creates a new
uiVSlider instance. | uiVSlider | ||
![]() |
invalidate(type:String):void
Invalidates this component's "size", "display", "layout" or "textstyle".
| uiComponent | |
![]() |
move(x:Number, y:Number, noEvent:Boolean = false):void
Moves the component to the specified position, disregarding its allocation.
| uiComponent | |
![]() |
removeAllChildren(all:Boolean = false):void
Removes all children from this component.
| uiComponent | |
![]() |
setFocus(flag:Boolean = true):void
Gives this component instance the focus; the component must be on the display list and has its
tabEnabled property set to true , otherwise this method will fail
silently. | uiComponent | |
![]() |
setSize(width:Number, height:Number, noEvent:Boolean = false):void
Sets this component's size to the specified
width and height . | uiComponent | |
![]() |
setVisible(value:Boolean, noEvent:Boolean = false):void
Sets the visibility of this component instance, dispatching a "show" or "hide" event accordingly.
| uiComponent | |
![]() |
validateNow():void
Validates and render the component instance, and any component instances with
depth higher than itself in the validation queue, immediately. | uiComponent |
uiVSlider | () | constructor |
public function uiVSlider(range:uiRange = null)
Constructor - creates a new uiVSlider
instance.
range:uiRange (default = null ) — [Optional] A uiRange object specifying the initial value and limits of
the slider
|