org.zkoss.zkplus.databind
Class BindingListModelListModel

java.lang.Object
  extended by org.zkoss.zkplus.databind.BindingListModelListModel
All Implemented Interfaces:
java.io.Serializable, BindingListModel, ListModel

public class BindingListModelListModel
extends java.lang.Object
implements BindingListModel, java.io.Serializable

This is the BindingListModel as a ListModel to be used with Listbox, Grid, and DataBinder. Add or remove the contents of this model as a ListModel would cause the associated Listbox or Grid to change accordingly.

Since:
5.0.8
Author:
peterkuo
See Also:
Serialized Form

Field Summary
protected  ListModel _model
           
 
Constructor Summary
BindingListModelListModel(ListModel model)
           
 
Method Summary
 void addListDataListener(ListDataListener l)
          Adds a listener to the list that's notified each time a change to the data model occurs.
 java.lang.Object getElementAt(int index)
          Returns the value at the specified index.
 ListModel getInnerModel()
           
 int getSize()
          Returns the length of the list.
 int indexOf(java.lang.Object obj)
          Returns index of the given object inside a ListModel.
 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
 

Field Detail

_model

protected ListModel _model
Constructor Detail

BindingListModelListModel

public BindingListModelListModel(ListModel model)
Method Detail

indexOf

public int indexOf(java.lang.Object obj)
Description copied from interface: BindingListModel
Returns index of the given object inside a ListModel.

Specified by:
indexOf in interface BindingListModel

getElementAt

public java.lang.Object getElementAt(int index)
Description copied from interface: ListModel
Returns the value at the specified index.

Specified by:
getElementAt in interface ListModel

getSize

public int getSize()
Description copied from interface: ListModel
Returns the length of the list.

Specified by:
getSize in interface ListModel

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

getInnerModel

public ListModel getInnerModel()


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo