Packagecom.sibirjak.asdpc.listview
Classpublic class ListItemData
SubclassesTreeNodeData

Plain data object representing list item data and list item state.



Public Properties
 PropertyDefined by
  item : *
[read-only] The item.
ListItemData
  itemIndex : uint
[read-only] The position of the item in the containing collection.
ListItemData
  itemKey : *
[read-only] The key of the item if the containing collection is an IMap.
ListItemData
  listIndex : int
[read-only] The position of the item in the listView.
ListItemData
  parentItem : *
[read-only] The item's containing collection.
ListItemData
  selected : Boolean
[read-only] True if the list item is selected.
ListItemData
Property detail
itemproperty
item:*  [read-only]

The item.

Implementation
    public function get item():*
itemIndexproperty 
itemIndex:uint  [read-only]

The position of the item in the containing collection.

ListView: Returns the position of the item in the listView's data source.

TreeView: Returns the position of the item in the parent nodes data source. The first child of the root node will have a listIndex of 2 and an itemIndex of 1.

Implementation
    public function get itemIndex():uint
itemKeyproperty 
itemKey:*  [read-only]

The key of the item if the containing collection is an IMap.

Implementation
    public function get itemKey():*
listIndexproperty 
listIndex:int  [read-only]

The position of the item in the listView.

Implementation
    public function get listIndex():int
parentItemproperty 
parentItem:*  [read-only]

The item's containing collection.

ListView: Returns the listView's data source.

TreeView: Returns the parent nodes data source.

Implementation
    public function get parentItem():*
selectedproperty 
selected:Boolean  [read-only]

True if the list item is selected.

Implementation
    public function get selected():Boolean
Method detail
setItem_internal()method
asdpc_internal function setItem_internal(item:*):void

Sets the item.

Parameters
item:* — The item.
setItemIndex_internal()method 
asdpc_internal function setItemIndex_internal(itemIndex:uint):void

Sets the item index.

Parameters
itemIndex:uint — The item index.
setItemKey_internal()method 
asdpc_internal function setItemKey_internal(itemKey:*):void

Sets the item key.

Parameters
itemKey:* — The item key.
setListIndex_internal()method 
asdpc_internal function setListIndex_internal(listIndex:uint):void

Sets the list index.

Parameters
listIndex:uint — The list index.
setParentItem_internal()method 
asdpc_internal function setParentItem_internal(parentItem:*):void

Sets the parent collection.

Parameters
parentItem:* — The parent collection.
setSelected_internal()method 
asdpc_internal function setSelected_internal(selected:Boolean):void

Sets the selected flag.

Parameters
selected:Boolean — The selected flag.