Packagecom.sibirjak.asdpc.listview
Interfacepublic interface IListView extends IBindableView, IView, IDisplayObjectContainer, IDisplayObject, flash.events.IEventDispatcher, IStyleManagerClient, IViewPropertyManagerClient, IControl
SubinterfacesITreeView
ImplementorsListView

ListView public interface.



Public Properties
 PropertyDefined by
 InheritedaddedToStage : Boolean
True, if the View is included in the display list.
IView
 Inheritedalpha : Number
IDisplayObject
  dataSource : *
Sets or returns the list data source.
IListView
  dataSourceAdapterFunction : Function
Sets or returns a custom data source adapter function.
IListView
  deselect : Boolean
Defines or returns the list deselection behaviour.
IListView
  direction : String
Sets or gets the list direction.
IListView
  firstVisibleIndex : int
[read-only] The current scroll postion of the list.
IListView
 Inheritedheight : Number
IDisplayObject
  itemRenderer : Class
[write-only] Sets an item renderer.
IListView
 Inheritedmask : DisplayObject
IDisplayObject
  maxScrollIndex : int
[read-only] The max scroll postion of the list.
IListView
  multiselect : Boolean
Sets or returns the list to be a multiselect list.
IListView
 Inheritedname : String
IDisplayObject
 InheritednumChildren : int
IDisplayObjectContainer
  numItems : uint
[read-only] The number of items currently displayed in the listView.
IListView
 Inheritedparent : DisplayObjectContainer
IDisplayObjectContainer
 InheritedscaleX : Number
IDisplayObject
 InheritedscaleY : Number
IDisplayObject
  select : Boolean
Defines or returns the list selection behaviour.
IListView
  selectedIndex : int
[read-only] The list index of the first selected item.
IListView
  selectedIndices : Array
[read-only] An array of all selected indices.
IListView
  selectedItemData : ListItemData
[read-only] The first selected item.
IListView
  selectedItemsData : Array
[read-only] An array of all selected items data.
IListView
 Inheritedstage : Stage
IDisplayObject
 InheritedstyleManager : StyleManager
The clients StyleManager instance.
IStyleManagerClient
 InheritedviewPropertyManager : ViewPropertyManager
The clients ViewPropertyManager instance.
IViewPropertyManagerClient
 Inheritedvisible : Boolean
IDisplayObject
 Inheritedwidth : Number
IDisplayObject
 Inheritedx : Number
IDisplayObject
 Inheritedy : Number
IDisplayObject
Public Methods
 MethodDefined by
 Inherited
addChild(child:DisplayObject):DisplayObject
IDisplayObjectContainer
 Inherited
addChildAt(child:DisplayObject, index:int):DisplayObject
IDisplayObjectContainer
 Inherited
bindProperty(propertyName:String, listener:Object, listenerPropertyName:String = null):void
Binds a listener (bound listener) to a bindable property.
IBindableView
 Inherited
cleanUp():void
Commands a view to immediately clean up all of its content.
IView
 Inherited
contains(child:DisplayObject):Boolean
IDisplayObjectContainer
  
deselectItemAt(listIndex:uint):void
Deselects the item at the given position.
IListView
 Inherited
getChildAt(index:int):DisplayObject
IDisplayObjectContainer
 Inherited
Returns a list of all default style properties.
IView
  
Returns a ListItemData object for the item at the given index.
IListView
 Inherited
getStyle(property:String):*
Returns a style value for a given style property.
IView
 Inherited
getViewProperty(property:String):*
Gets a property value.
IView
 Inherited
moveTo(x:int, y:int):void
Moves a view.
IView
 Inherited
removeChild(child:DisplayObject):DisplayObject
IDisplayObjectContainer
 Inherited
removeChildAt(index:int):DisplayObject
IDisplayObjectContainer
  
scrollToItemAt(listIndex:uint):void
Scrolls to the specified item.
IListView
  
selectItemAt(listIndex:uint):void
Selects the item at the given position.
IListView
 Inherited
setDefaultStyles(defaultStyles:Array):void
Sets a list of default styles, which are referred to, if no actual style could be found for a property.
IView
 Inherited
setSize(width:int, height:int):void
Sets the view dimensions.
IView
 Inherited
setStyle(property:String, value:Array, selectorChain:Array = null, excludeChain:* = null):void
Sets a style to a client.
IView
 Inherited
setStyles(styles:Array, selectorChain:Array = null, excludeChain:Array = null):void
Convenience method to set a number of styles values at once.
IView
 Inherited
setViewProperty(property:String, value:*):void
Sets a property.
IView
 Inherited
styleManagerStyleChangeHandler(property:String, value:*):void
Notifies the client about a change of a style value for that it defines a default style.
IStyleManagerClient
 Inherited
unbindProperty(propertyName:String, listener:Object, listenerPropertyName:String = null):void
Unbinds a formerly bound listener from a bindable property.
IBindableView
 Inherited
validateNow():void
Commands a view to immediately validate all of its invalidate properties.
IView
Property detail
dataSourceproperty
dataSource:*  [read-write]

Sets or returns the list data source.

Implementation
    public function get dataSource():*
    public function set dataSource(value:*):void
dataSourceAdapterFunctionproperty 
dataSourceAdapterFunction:Function  [read-write]

Sets or returns a custom data source adapter function.

Implementation
    public function get dataSourceAdapterFunction():Function
    public function set dataSourceAdapterFunction(value:Function):void
deselectproperty 
deselect:Boolean  [read-write]

Defines or returns the list deselection behaviour.

If set to false, selected items won't be deselected.

Implementation
    public function get deselect():Boolean
    public function set deselect(value:Boolean):void
directionproperty 
direction:String  [read-write]

Sets or gets the list direction.

Can only be set before the list ist added to the stage.

Implementation
    public function get direction():String
    public function set direction(value:String):void
firstVisibleIndexproperty 
firstVisibleIndex:int  [read-only]

The current scroll postion of the list.

Returns -1, if the list is empty.

Implementation
    public function get firstVisibleIndex():int
itemRendererproperty 
itemRenderer:Class  [write-only]

Sets an item renderer.

Can currently only be set before the list ist added to the stage.

Implementation
    public function set itemRenderer(value:Class):void
maxScrollIndexproperty 
maxScrollIndex:int  [read-only]

The max scroll postion of the list.

Returns -1, if the list is empty.

Implementation
    public function get maxScrollIndex():int
multiselectproperty 
multiselect:Boolean  [read-write]

Sets or returns the list to be a multiselect list.

Does not have effects if select is set to false.

Implementation
    public function get multiselect():Boolean
    public function set multiselect(value:Boolean):void
numItemsproperty 
numItems:uint  [read-only]

The number of items currently displayed in the listView.

Implementation
    public function get numItems():uint
selectproperty 
select:Boolean  [read-write]

Defines or returns the list selection behaviour.

If set to false, items clicked by mouse won't be selected.

Implementation
    public function get select():Boolean
    public function set select(value:Boolean):void
selectedIndexproperty 
selectedIndex:int  [read-only]

The list index of the first selected item.

Always -1, if multiselect is set to true.

Implementation
    public function get selectedIndex():int
selectedIndicesproperty 
selectedIndices:Array  [read-only]

An array of all selected indices.

Always empty, if multiselect is set to false.

Implementation
    public function get selectedIndices():Array
selectedItemDataproperty 
selectedItemData:ListItemData  [read-only]

The first selected item.

Always null, if multiselect is set to true.

Implementation
    public function get selectedItemData():ListItemData
selectedItemsDataproperty 
selectedItemsData:Array  [read-only]

An array of all selected items data.

Always empty, if multiselect is set to false.

Implementation
    public function get selectedItemsData():Array
Method detail
deselectItemAt()method
public function deselectItemAt(listIndex:uint):void

Deselects the item at the given position.

Parameters
listIndex:uint — The index of the item to deselect.
getListItemDataAt()method 
public function getListItemDataAt(listIndex:uint):ListItemData

Returns a ListItemData object for the item at the given index.

Parameters
listIndex:uint

Returns
ListItemData — A ListItemData object for the item at the given index.
scrollToItemAt()method 
public function scrollToItemAt(listIndex:uint):void

Scrolls to the specified item.

Parameters
listIndex:uint — The index of the item to scroll to.
selectItemAt()method 
public function selectItemAt(listIndex:uint):void

Selects the item at the given position.

Parameters
listIndex:uint — The index of the item to select.