Packageorg.aswing
Interfacepublic interface ListModel
SubinterfacesMutableListModel

ListMode is a MVC pattern's mode for List UI, different List UI can connected to a same mode to view the mode's data. When the mode's data changed the mode should fire a event to all its ListDataListeners.



Public Methods
 MethodDefined by
  
Adds a listener to the list that's notified each time a change to the data model occurs.
ListModel
  
getElementAt(index:int):*
Returns the value at the specified index.
ListModel
  
getSize():int
Returns the length of the list.
ListModel
  
Removes a listener from the list that's notified each time a change to the data model occurs.
ListModel
Method detail
addListDataListener()method
public function addListDataListener(l:ListDataListener):void

Adds a listener to the list that's notified each time a change to the data model occurs.

Parameters
l:ListDataListener
getElementAt()method 
public function getElementAt(index:int):*

Returns the value at the specified index.

Parameters
index:int

Returns
*
getSize()method 
public function getSize():int

Returns the length of the list.

Returns
int
removeListDataListener()method 
public function removeListDataListener(l:ListDataListener):void

Removes a listener from the list that's notified each time a change to the data model occurs.

Parameters
l:ListDataListener