| Package | com.sibirjak.asdpc.listview |
| Interface | public interface IListView extends IBindableView, IView, IDisplayObjectContainer, IDisplayObject, flash.events.IEventDispatcher, IStyleManagerClient, IViewPropertyManagerClient, IControl |
| Subinterfaces | ITreeView |
| Implementors | ListView |
| Property | Defined by | ||
|---|---|---|---|
![]() | addedToStage : Boolean
True, if the View is included in the display list.
| IView | |
![]() | alpha : 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 | ||
![]() | height : Number | IDisplayObject | |
| itemRenderer : Class [write-only]
Sets an item renderer.
| IListView | ||
![]() | mask : 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 | ||
![]() | name : String | IDisplayObject | |
![]() | numChildren : int | IDisplayObjectContainer | |
| numItems : uint [read-only]
The number of items currently displayed in the listView.
| IListView | ||
![]() | parent : DisplayObjectContainer | IDisplayObjectContainer | |
![]() | scaleX : Number | IDisplayObject | |
![]() | scaleY : 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 | ||
![]() | stage : Stage | IDisplayObject | |
![]() | styleManager : StyleManager
The clients StyleManager instance.
| IStyleManagerClient | |
![]() | viewPropertyManager : ViewPropertyManager
The clients ViewPropertyManager instance.
| IViewPropertyManagerClient | |
![]() | visible : Boolean | IDisplayObject | |
![]() | width : Number | IDisplayObject | |
![]() | x : Number | IDisplayObject | |
![]() | y : Number | IDisplayObject | |
| Method | Defined by | ||
|---|---|---|---|
![]() |
addChild(child:DisplayObject):DisplayObject
| IDisplayObjectContainer | |
![]() |
addChildAt(child:DisplayObject, index:int):DisplayObject
| IDisplayObjectContainer | |
![]() |
bindProperty(propertyName:String, listener:Object, listenerPropertyName:String = null):void
Binds a listener (bound listener) to a bindable property.
| IBindableView | |
![]() |
cleanUp():void
Commands a view to immediately clean up all of its content.
| IView | |
![]() |
contains(child:DisplayObject):Boolean
| IDisplayObjectContainer | |
|
deselectItemAt(listIndex:uint):void
Deselects the item at the given position.
| IListView | ||
![]() |
getChildAt(index:int):DisplayObject
| IDisplayObjectContainer | |
![]() |
getDefaultStyles():Array
Returns a list of all default style properties.
| IView | |
|
getListItemDataAt(listIndex:uint):ListItemData
Returns a ListItemData object for the item at the given index.
| IListView | ||
![]() |
getStyle(property:String):*
Returns a style value for a given style property.
| IView | |
![]() |
getViewProperty(property:String):*
Gets a property value.
| IView | |
![]() |
moveTo(x:int, y:int):void
Moves a view.
| IView | |
![]() |
removeChild(child:DisplayObject):DisplayObject
| IDisplayObjectContainer | |
![]() |
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 | ||
![]() |
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 | |
![]() |
setSize(width:int, height:int):void
Sets the view dimensions.
| IView | |
![]() |
setStyle(property:String, value:Array, selectorChain:Array = null, excludeChain:* = null):void
Sets a style to a client.
| IView | |
![]() |
setStyles(styles:Array, selectorChain:Array = null, excludeChain:Array = null):void
Convenience method to set a number of styles values at once.
| IView | |
![]() |
setViewProperty(property:String, value:*):void
Sets a property.
| IView | |
![]() |
styleManagerStyleChangeHandler(property:String, value:*):void
Notifies the client about a change of a style value for that it
defines a default style.
| IStyleManagerClient | |
![]() |
unbindProperty(propertyName:String, listener:Object, listenerPropertyName:String = null):void
Unbinds a formerly bound listener from a bindable property.
| IBindableView | |
![]() |
validateNow():void
Commands a view to immediately validate all of its
invalidate properties.
| IView | |
| dataSource | property |
dataSource:* [read-write]Sets or returns the list data source.
Implementation public function get dataSource():*
public function set dataSource(value:*):void
| dataSourceAdapterFunction | property |
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
| deselect | property |
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
| direction | property |
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
| firstVisibleIndex | property |
firstVisibleIndex:int [read-only]The current scroll postion of the list.
Returns -1, if the list is empty.
Implementation public function get firstVisibleIndex():int
| itemRenderer | property |
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
| maxScrollIndex | property |
maxScrollIndex:int [read-only]The max scroll postion of the list.
Returns -1, if the list is empty.
Implementation public function get maxScrollIndex():int
| multiselect | property |
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
| numItems | property |
numItems:uint [read-only]The number of items currently displayed in the listView.
Implementation public function get numItems():uint
| select | property |
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
| selectedIndex | property |
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
| selectedIndices | property |
selectedIndices:Array [read-only]An array of all selected indices.
Always empty, if multiselect is set to false.
Implementation public function get selectedIndices():Array
| selectedItemData | property |
selectedItemData:ListItemData [read-only]The first selected item.
Always null, if multiselect is set to true.
Implementation public function get selectedItemData():ListItemData
| selectedItemsData | property |
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
| deselectItemAt | () | method |
public function deselectItemAt(listIndex:uint):voidDeselects the item at the given position.
ParameterslistIndex:uint — The index of the item to deselect.
|
| getListItemDataAt | () | method |
public function getListItemDataAt(listIndex:uint):ListItemDataReturns a ListItemData object for the item at the given index.
ParameterslistIndex:uint |
ListItemData —
A ListItemData object for the item at the given index.
|
| scrollToItemAt | () | method |
public function scrollToItemAt(listIndex:uint):voidScrolls to the specified item.
ParameterslistIndex:uint — The index of the item to scroll to.
|
| selectItemAt | () | method |
public function selectItemAt(listIndex:uint):voidSelects the item at the given position.
ParameterslistIndex:uint — The index of the item to select.
|