org.zkoss.zul
Class AbstractListModel

java.lang.Object
  extended by org.zkoss.zul.AbstractListModel
All Implemented Interfaces:
java.io.Serializable, ListModel
Direct Known Subclasses:
ListModelArray, ListModelList, ListModelMap, ListModelSet, SimpleListModel

public abstract class AbstractListModel
extends java.lang.Object
implements ListModel, java.io.Serializable

A skeletal implementation for ListModel.

Author:
tomyeh
See Also:
Serialized Form

Constructor Summary
AbstractListModel()
           
 
Method Summary
 void addListDataListener(ListDataListener l)
          Adds a listener to the list that's notified each time a change to the data model occurs.
protected  void fireEvent(int type, int index0, int index1)
          Fires a ListDataEvent for all registered listener (thru addListDataListener(org.zkoss.zul.event.ListDataListener).
 void removeListDataListener(ListDataListener l)
          Removes a listener from the list that's notified each time a change to the data model occurs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.zkoss.zul.ListModel
getElementAt, getSize
 

Constructor Detail

AbstractListModel

public AbstractListModel()
Method Detail

fireEvent

protected void fireEvent(int type,
                         int index0,
                         int index1)
Fires a ListDataEvent for all registered listener (thru addListDataListener(org.zkoss.zul.event.ListDataListener).

Note: you can invoke this method only in an event listener.


addListDataListener

public void addListDataListener(ListDataListener l)
Description copied from interface: ListModel
Adds a listener to the list that's notified each time a change to the data model occurs.

Specified by:
addListDataListener in interface ListModel

removeListDataListener

public void removeListDataListener(ListDataListener l)
Description copied from interface: ListModel
Removes a listener from the list that's notified each time a change to the data model occurs.

Specified by:
removeListDataListener in interface ListModel


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.