interface org.aswing.ListModel

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. @author paling

Instance Fields

function addListDataListener(l:ListDataListener): Void

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

function getElementAt(index:Int): Dynamic

Returns the value at the specified index.

function getSize(): Int

Returns the length of the list.

function removeListDataListener(l:ListDataListener): Void

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