Package org.zkoss.zul
Interface ListModel<E>
- All Known Implementing Classes:
AbstractListModel,GroupsListModel,ListModelArray,ListModelList,ListModelMap,ListModelSet,SimpleListModel
public interface ListModel<E>
This interface defines the methods that components like
Listbox
and Grid use to get the content of items.
If the list model is used with sortable listbox or grid,
the developer must also implement Sortable.
To use with Listbox and other components that
supports the selection, Selectable must be implemented too.
For more information, please refer to ZK Developer's Reference: List Model
- Author:
- tomyeh
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a listener to the list that's notified each time a change to the data model occurs.getElementAt(int index) Returns the value at the specified index.default List<ListDataListener>Returns all listeners.intgetSize()Returns the length of the list.voidRemoves a listener from the list that's notified each time a change to the data model occurs.
-
Method Details
-
getElementAt
Returns the value at the specified index. -
getSize
int getSize()Returns the length of the list. -
addListDataListener
Adds a listener to the list that's notified each time a change to the data model occurs. -
removeListDataListener
Removes a listener from the list that's notified each time a change to the data model occurs. -
getListDataListeners
Returns all listeners.
-