| Package | qnx.fuse.ui.slider |
| Class | public class SliderBase |
| Inheritance | SliderBase UIComponent flash.display.MovieClip |
| Subclasses | Slider, ToggleSwitch |
Slider and VolumeSlider classes.
Do not instantiate this class. Instead, use the Slider or VolumeSlider class.
See also
| Method | Defined By | ||
|---|---|---|---|
Do not instantiate this class. | SliderBase | ||
![]() | childChanged(resizedChild:DisplayObject = null):Boolean
Notifies the UIComponent that one or more of its children has changed in a manner
that may affect this object's layout. | UIComponent | |
![]() | destroy():void
Call this method when you want to have your object collected by the garbage collector. | UIComponent | |
![]() | getSizeOptions():int | UIComponent | |
![]() | invalidateDisplayList():void
Calling this method results in a call to the components validateDisplayList() method before the display list is rendered. | UIComponent | |
![]() | invalidateProperties():void
Calling this method results in a call to the components validateProperties() method before the display list is rendered. | UIComponent | |
![]() | measure(availableWidth:Number, availableHeight:Number):LayoutMeasurement | UIComponent | |
![]() | setActualSize(w:Number, h:Number):void
Sets the width and height of the object without setting
the explicitWidth and explicitHeight. | UIComponent | |
setFillSkin(skin:Object):void
Sets the fill skin for the slider. | SliderBase | ||
![]() | setLayoutBounds(bounds:Rectangle):void
Sets the receiver's size and location to the rectangular area specified
by the arguments. | UIComponent | |
![]() | setPosition(x:Number, y:Number):void
Sets the x and y position of the component. | UIComponent | |
setThumbSkin(skin:Object):void
Sets the skin for the slider thumb button. | SliderBase | ||
setTrackSkin(skin:Object):void
Sets the skin for the track of the slider. | SliderBase | ||
![]() | validateDisplayList():void
Validates the display list of the component by calling the updateDisplayList(). | UIComponent | |
![]() | validateNow():void
Validates the component immediately by calling validateProperties(), validateSizes(), and validateDisplayList() if necessary. | UIComponent | |
![]() | validateProperties():void
Validates the properties of the component by calling the commitProperties() method. | UIComponent | |
| Method | Defined By | ||
|---|---|---|---|
![]() | commitProperties():void
Process properties of the component. | UIComponent | |
![]() | commitState():void
Process the state of the component. | UIComponent | |
doMeasure(availableWidth:Number, availableHeight:Number):LayoutMeasurement [override]
Measures the size of the component so that it can be reported to the layout framework for laying the component out properly. | SliderBase | ||
drawFill():void
Draws the fill of the slider. | SliderBase | ||
![]() | flushCache():void
Invoked as part of parentLayoutChanged. | UIComponent | |
![]() | onAdded():void
Called when the instance is added to the stage. | UIComponent | |
![]() | onRemoved():void
Called when the instance is removed from the stage. | UIComponent | |
![]() | parentLayoutChanged():void
Invalidates the parent's size and display list if includeInLayout property is set to true. | UIComponent | |
thumbPositionChanged():void
Called when the position of the thumb on the x axis has changed. | SliderBase | ||
thumbPressed():void
Called when the thumb has been pressed by the user. | SliderBase | ||
thumbReleased():void
Called when the thumb has been released by the user. | SliderBase | ||
trackPressed():void
Called when the thumb has been pressed by the user. | SliderBase | ||
![]() | updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
Sets the size and position of the children of the component. | UIComponent | |
| SliderBase | () | Constructor |
public function SliderBase()Do not instantiate this class.
| doMeasure | () | method |
override protected function doMeasure(availableWidth:Number, availableHeight:Number):LayoutMeasurementMeasures the size of the component so that it can be reported to the layout framework for laying the component out properly.
Parameters
availableWidth:Number — The avaliable size in the x dimension dictated by the measurements of the parent. Controls should not exceed this size.
| |
availableHeight:Number — The avaliable size in the y dimension dictated by the measurements of the parent. Controls should not exceed this size.
|
LayoutMeasurement |
| drawFill | () | method |
protected function drawFill():voidDraws the fill of the slider. The default implentation sets the width of the fill based on a percenatge of the track width.
| setFillSkin | () | method |
public function setFillSkin(skin:Object):voidSets the fill skin for the slider. The fill skin is the area of the track to the left of the slider thumb button (in a horizontal slider) that represents the current value of the slider.
You can pass in a qualified class name String, or the actual class.
In either instance the class that is used must implement the ISkin interface.
Note: Do not pass in an instance of a skin class. This may cause unexpected behavior.
Parameters
skin:Object — The fill skin to set.
|
| setThumbSkin | () | method |
public function setThumbSkin(skin:Object):voidSets the skin for the slider thumb button. The thumb is the button that the user moves along the track to change the value of the slider.
You can pass in a qualified class name String, or the actual class.
In either instance the class that is used must implement the ISkin interface.
Note: Do not pass in an instance of a skin class. This may cause unexpected behavior.
Parameters
skin:Object — The button skin to set.
|
| setTrackSkin | () | method |
public function setTrackSkin(skin:Object):voidSets the skin for the track of the slider. The track is the vertical or horizontal line that the thumb button moves along.
You can pass in a qualified class name String, or the actual class.
In either instance the class that is used must implement the ISkin interface.
Note: Do not pass in an instance of a skin class. This may cause unexpected behavior.
Parameters
skin:Object — The track skin to set.
|
| thumbPositionChanged | () | method |
protected function thumbPositionChanged():voidCalled when the position of the thumb on the x axis has changed. Occurs when the user drags the thumb or has clicked on the track. You can override this method if you wish to have elements update themselves based on the value property.
| thumbPressed | () | method |
protected function thumbPressed():voidCalled when the thumb has been pressed by the user.
You can override this method to perform custom actions when the user presses the thumb.
| thumbReleased | () | method |
protected function thumbReleased():voidCalled when the thumb has been released by the user.
You can override this method to perform custom actions when the user has released the thumb.
| trackPressed | () | method |
protected function trackPressed():voidCalled when the thumb has been pressed by the user.
You can override this method to perform custom actions when the user presses the thumb. The default implementation of this method moves the thumb to where the user has pressed and initiates a drag operation.