Packagelunas.core
Classpublic class AbstractScrollbar
InheritanceAbstractScrollbar Inheritance AbstractProgressbar Inheritance AbstractProgress Inheritance AbstractComponent Inheritance CoreSprite Inheritance flash.display.Sprite
ImplementsIScrollbar
SubclassesSimpleScrollbar

This class provides a skeletal implementation of all the IScrollbar display components, to minimize the effort required to implement this interface.



Public Properties
 PropertyDefined by
 InheritedautoResetPosition : Boolean = false
This flag indicates of the position is auto reset.
AbstractProgress
  bar : Sprite
The bar display of the scrollbar.
AbstractScrollbar
 Inheritedborder : EdgeMetrics
Indicates the thickness, in pixels, of the four edge regions around a visual component.
AbstractComponent
 Inheritedbubbles : Boolean = true
Indicates if the events use bubbling when are dispatched.
AbstractComponent
 Inheritedbuilder : IBuilder
Indicates the IBuilder reference of this instance.
AbstractComponent
 InheritedcomponentInspectorSetting : Boolean
Initialize when the Flash component settings are initialized (only in Flash with a compiled component).
AbstractComponent
 Inheriteddirection : String
Indicates the direction value of this object (default value is Direction.HORIZONTAL).
AbstractProgressbar
 Inheritedenabled : Boolean
Indicates the enabled state of the component.
AbstractComponent
 Inheritedgroup : Boolean
Indicates with a boolean if this object is grouped.
AbstractComponent
 InheritedgroupName : String
Indicates the name of the group of this object.
AbstractComponent
 Inheritedh : Number
(read-only) Indicates the virtual height value of this component.
AbstractComponent
 Inheritedid : *
Returns the id of this object.
CoreSprite
  invert : Boolean
Indicates if the layout direction of the thumb is invert.
AbstractScrollbar
 InheritedisConfigurable : Boolean
Indicates if the display is configurable.
CoreSprite
  isDragging : Boolean
[read-only] (read-only) Indicates if the bar is dragging.
AbstractScrollbar
  lineScrollSize : Number
Determines how much the scrollbar's value will change when one of the arrow buttons is clicked.
AbstractScrollbar
 InheritedmaxHeight : Number
This property defined the maximum height of this component.
AbstractComponent
 Inheritedmaximum : Number
(Read-write) The maximum value of this scrollbar.
AbstractProgress
 InheritedmaxWidth : Number
This property defined the maximum width of this component.
AbstractComponent
 InheritedminHeight : Number
This property defined the mimimun height of this component.
AbstractComponent
 Inheritedminimum : Number
(Read-write) The minimum value of this scrollbar.
AbstractProgress
 InheritedminWidth : Number
This property defined the mimimun width of this component.
AbstractComponent
  pageSize : Number
Determines the amount the value will change if the user clicks above or below the thumb.
AbstractScrollbar
 Inheritedposition : Number
Indicates the position of the progress bar.
AbstractProgress
 Inheritedstyle : IStyle
Returns the style of this component.
AbstractComponent
  thumb : Sprite
The thumb display of the scrollbar.
AbstractScrollbar
  thumbSize : Number
Determinates the size of the thumb.
AbstractScrollbar
 Inheritedw : Number
(read-only) Indicates the virtual width value of this component.
AbstractComponent
Protected Properties
 PropertyDefined by
 Inherited_h : Number = 0
The protected virtual height value of the component.
AbstractComponent
 Inherited_max : Number = 100
The max value of the progress.
AbstractProgress
 Inherited_min : Number = 0
The min value of the progress.
AbstractProgress
 Inherited_position : Number = 0
The position value of the bar.
AbstractProgress
 Inherited_w : Number = 0
The protected virtual width value of the component.
AbstractComponent
Public Methods
 MethodDefined by
  
AbstractScrollbar(direction:String = "vertical", id:Boolean = null, isConfigurable:String = "false", name:* = null)
Creates a new AbstractProgressbar instance.
AbstractScrollbar
 Inherited
doLater():void
Launch an event with a delayed interval.
AbstractComponent
  
dragging(... args):void
Invoked when the bar is dragging.
AbstractScrollbar
 Inherited
draw(... arguments):void
Draw the view of the component.
AbstractComponent
 Inherited
Returns the IBuilder constructor use to initialize this component.
AbstractComponent
 Inherited
Returns the internal ILogger reference of this ILogable object.
CoreSprite
 Inherited
Returns the IStyle constructor use to initialize this component.
AbstractComponent
 Inherited
Invoked when the group property or the groupName property changed.
AbstractComponent
 Inherited
hashCode():uint
Returns a hashcode value for the object.
CoreSprite
 Inherited
hide():void
Hides the component.
AbstractComponent
 Inherited
initialize():void
Initialize the component.
AbstractComponent
 Inherited
isLocked():Boolean
Returns true if the object is locked.
CoreSprite
 Inherited
isVisible():Boolean
Returns true if the component is visible.
AbstractComponent
 Inherited
lock():void
Locks the object.
CoreSprite
 Inherited
move(x:Number, y:Number):void
Moves the component.
AbstractComponent
 Inherited
Notify a change in this component.
AbstractComponent
  
notifyDrag():void
Dispatchs an event when the user drag the bar.
AbstractScrollbar
 Inherited
Notify an event when the enabled property is changed.
AbstractComponent
 Inherited
Notify an event when you resize the component.
AbstractComponent
  
Dispatchs an event when the user start to drag the bar.
AbstractScrollbar
  
Dispatchs an event when the user stop to drag the bar.
AbstractScrollbar
 Inherited
refresh(init:*):void
Refresh the component with an object of initialization.
AbstractComponent
 Inherited
resetLock():void
Reset the lock security of the display.
CoreSprite
 Inherited
setLogger(log:ILogger = null):void
Sets the internal ILogger reference of this ILogable object.
CoreSprite
 Inherited
setPosition(value:Number, noEvent:Boolean = false, flag:Boolean = false):void
Sets the position of the progress bar.
AbstractProgress
 Inherited
setSize(w:Number, h:Number):void
Sets the virtuals width and height of the component.
AbstractComponent
 Inherited
setStyle(... args):void
Sets the style property on the style declaration or object.
AbstractComponent
 Inherited
setup():void
Setup the IConfigurable object.
CoreSprite
 Inherited
show():void
Shows the component.
AbstractComponent
  
startDragging(e:Event = null):void
Invoked when the user start to drag the bar.
AbstractScrollbar
  
stopDragging(e:Event = null):void
Invoked when the user stop to drag the bar.
AbstractScrollbar
 Inherited
toString():String
Returns the String representation of this object.
CoreSprite
 Inherited
unlock():void
Unlocks the display.
CoreSprite
 Inherited
update():void
Updates the component.
AbstractComponent
 Inherited
viewChanged():void
Invoked when the view of the display is changed.
AbstractProgress
 Inherited
viewDestroyed(e:Event = null):void
Invoked when the component is destroyed with a removeMovieClip.
AbstractComponent
 Inherited
viewEnabled():void
Invoked when the enabled property of the component change.
AbstractComponent
  
viewPositionChanged(flag:Boolean = false):void
Invoked when the position value of the bar is changed.
AbstractScrollbar
 Inherited
viewResize():void
Invoked when the component is resized.
AbstractComponent
 Inherited
viewStyleChanged(e:Event = null):void
Invoked when the component IStyle changed.
AbstractComponent
Protected Methods
 MethodDefined by
  
_fireButtonEvent(type:String):void
Dispatchs a ButtonEvent with the specified type.
AbstractScrollbar
 Inherited
addedToStage(e:Event = null):void
Invoked when the display is added to the stage.
CoreSprite
 Inherited
fireComponentEvent(type:String):void
Dispatchs a ComponentEvent with the specified type.
AbstractComponent
 Inherited
removedFromStage(e:Event = null):void
Invoked when the display is removed from the stage.
CoreSprite
Property detail
barproperty
bar:Sprite  [read-write]

The bar display of the scrollbar.

Implementation
    public function get bar():Sprite
    public function set bar(value:Sprite):void
invertproperty 
invert:Boolean  [read-write]

Indicates if the layout direction of the thumb is invert.

Implementation
    public function get invert():Boolean
    public function set invert(value:Boolean):void
isDraggingproperty 
isDragging:Boolean  [read-only]

(read-only) Indicates if the bar is dragging.

Implementation
    public function get isDragging():Boolean
lineScrollSizeproperty 
lineScrollSize:Number  [read-write]

Determines how much the scrollbar's value will change when one of the arrow buttons is clicked. If the scrollbar is being used to control something like a text area, this should probably be set to one, to cause the text to scroll one line. If it is scrolling a picture or movie clip, it should probably be set to a larger amount.

Implementation
    public function get lineScrollSize():Number
    public function set lineScrollSize(value:Number):void
pageSizeproperty 
pageSize:Number  [read-write]

Determines the amount the value will change if the user clicks above or below the thumb. If this amount is 0 the thumb will move with the lineScrollSize value.

Implementation
    public function get pageSize():Number
    public function set pageSize(value:Number):void
thumbproperty 
thumb:Sprite  [read-write]

The thumb display of the scrollbar.

Implementation
    public function get thumb():Sprite
    public function set thumb(value:Sprite):void
thumbSizeproperty 
thumbSize:Number  [read-write]

Determinates the size of the thumb.

Implementation
    public function get thumbSize():Number
    public function set thumbSize(value:Number):void
Constructor detail
AbstractScrollbar()constructor
public function AbstractScrollbar(direction:String = "vertical", id:Boolean = null, isConfigurable:String = "false", name:* = null)

Creates a new AbstractProgressbar instance.

Parameters
direction:String (default = "vertical") — The direction value of the bar (see Direction).
 
id:Boolean (default = null) — Indicates the id of the object.
 
isConfigurable:String (default = "false") — This flag indicates if the IConfigurable object is register in the ConfigCollector.
 
name:* (default = null) — Indicates the instance name of the object.
Method detail
_fireButtonEvent()method
protected function _fireButtonEvent(type:String):void

Dispatchs a ButtonEvent with the specified type.

Parameters
type:String
dragging()method 
public function dragging(... args):void

Invoked when the bar is dragging.

Parameters
... args
notifyDrag()method 
public function notifyDrag():void

Dispatchs an event when the user drag the bar.

notifyStartDrag()method 
public function notifyStartDrag():void

Dispatchs an event when the user start to drag the bar.

notifyStopDrag()method 
public function notifyStopDrag():void

Dispatchs an event when the user stop to drag the bar.

startDragging()method 
public function startDragging(e:Event = null):void

Invoked when the user start to drag the bar.

Parameters
e:Event (default = null)
stopDragging()method 
public function stopDragging(e:Event = null):void

Invoked when the user stop to drag the bar.

Parameters
e:Event (default = null)
viewPositionChanged()method 
public override function viewPositionChanged(flag:Boolean = false):void

Invoked when the position value of the bar is changed.

Parameters
flag:Boolean (default = false)