portal.comp.list
Class ListDataModelAdapter

java.lang.Object
  extended byportal.comp.list.ListDataModelAdapter
All Implemented Interfaces:
ListDataModel, Model, java.io.Serializable
Direct Known Subclasses:
DefaultListDataModel

public abstract class ListDataModelAdapter
extends java.lang.Object
implements ListDataModel

A utility class for data binding. It takes care of listener registration and management with convenience methods for listener notification, allowing the developer to completely concentrate on the data binding effort.

Author:
bderidder
See Also:
Serialized Form

Constructor Summary
ListDataModelAdapter()
           
 
Method Summary
 void addListDataModelListener(ListDataModelListener listener)
           
protected  void notifyItemInserted(StringModel newValue, int newIndex)
           
protected  void notifyItemRemoved(StringModel oldValue, int oldIndex)
           
protected  void notifyListCleared()
           
 void removeListDataModelListener(ListDataModelListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface portal.comp.list.ListDataModel
addElement, addElement, addElementAt, addElementAt, clear, getElementAt, getSize, removeElement
 

Constructor Detail

ListDataModelAdapter

public ListDataModelAdapter()
Method Detail

addListDataModelListener

public final void addListDataModelListener(ListDataModelListener listener)
Specified by:
addListDataModelListener in interface ListDataModel

removeListDataModelListener

public final void removeListDataModelListener(ListDataModelListener listener)
Specified by:
removeListDataModelListener in interface ListDataModel

notifyItemRemoved

protected final void notifyItemRemoved(StringModel oldValue,
                                       int oldIndex)

notifyItemInserted

protected final void notifyItemInserted(StringModel newValue,
                                        int newIndex)

notifyListCleared

protected final void notifyListCleared()