Packagefeathers.layout
Interfacepublic interface ISpinnerLayout extends ILayout, IFeathersEventDispatcher
Implementors HorizontalSpinnerLayout, VerticalSpinnerLayout

Product Version : Feathers 2.1.0

A layout for the SpinnerList component.

See also

feathers.controls.SpinnerList


Public Properties
 PropertyDefined By
 InheritedrequiresLayoutOnScroll : Boolean
[read-only] Determines if the container calls layout() when the scroll position changes.
ILayout
  selectionBounds : Rectangle
[read-only] A rectangle indicating the bounds of the selected item.
ISpinnerLayout
  snapInterval : Number
[read-only] The interval, in pixels, between snapping points.
ISpinnerLayout
Public Methods
 MethodDefined By
 Inherited
addEventListener(type:String, listener:Function):void
Adds a listener for an event type.
IFeathersEventDispatcher
 Inherited
calculateNavigationDestination(items:Vector.<DisplayObject>, index:int, keyCode:uint, bounds:LayoutBoundsResult):int
Using the current index and a key press, calculates the new index.
ILayout
 Inherited
dispatchEvent(event:Event):void
Dispatches an event to all listeners added for the specified event type.
IFeathersEventDispatcher
 Inherited
dispatchEventWith(type:String, bubbles:Boolean = false, data:Object = null):void
Dispatches an event from the pool with the specified to all listeners for the specified event type.
IFeathersEventDispatcher
 Inherited
getNearestScrollPositionForIndex(index:int, scrollX:Number, scrollY:Number, items:Vector.<DisplayObject>, x:Number, y:Number, width:Number, height:Number, result:Point = null):Point
Calculates the scroll position nearest to the current scroll position that will display the full bounds of the item within the view port.
ILayout
 Inherited
getScrollPositionForIndex(index:int, items:Vector.<DisplayObject>, x:Number, y:Number, width:Number, height:Number, result:Point = null):Point
Using the item dimensions, calculates a scroll position that will ensure that the item at a given index will be visible within the specified bounds.
ILayout
 Inherited
hasEventListener(type:String, listener:Function = null):Boolean
Checks if a listener has been added for the specified event type.
IFeathersEventDispatcher
 Inherited
layout(items:Vector.<DisplayObject>, viewPortBounds:ViewPortBounds = null, result:LayoutBoundsResult = null):LayoutBoundsResult
Positions (and possibly resizes) the supplied items within the optional bounds argument.
ILayout
 Inherited
removeEventListener(type:String, listener:Function):void
Removes a listener for an event type.
IFeathersEventDispatcher
 Inherited
removeEventListeners(type:String = null):void
Removes all listeners for an event type.
IFeathersEventDispatcher
Property Detail
selectionBoundsproperty
selectionBounds:Rectangle  [read-only]

A rectangle indicating the bounds of the selected item. Used by the SpinnerList to position its selection overlay skin.


Implementation
    public function get selectionBounds():Rectangle
snapIntervalproperty 
snapInterval:Number  [read-only]

The interval, in pixels, between snapping points.


Implementation
    public function get snapInterval():Number