ListModel

This interface defines the methods that components like Listbox and Grid use to get the content of items.

Interface Name

org.zkoss.zul.ListModel

Methods

Name

Description

Return Data Type

AddListDataListener

(ListDataListener l)

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

void

getElementAt(int index)

Returns the value at the specified index.

java.lang.Object

getSize()

Returns the length of the list.

int

removeListDataListener(ListDataListener l)

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

void