Class BindingListModelSet<E>

  extended by org.zkoss.zul.AbstractListModel<E>
      extended by org.zkoss.zul.ListModelSet<E>
          extended by org.zkoss.zkplus.databind.BindingListModelSet<E>
All Implemented Interfaces:, java.lang.Iterable<E>, java.util.Collection<E>, java.util.Set<E>, BindingListModel<E>, BindingListModelExt<E>, Selectable<E>, Sortable<E>, ListModel<E>

Deprecated. As of release 7.0.0, replace with new ZK binding.

public class BindingListModelSet<E>
extends ListModelSet<E>
implements BindingListModelExt<E>,

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

Make as public class since 3.0.5

Support BindingListModelEx since 3.1

Henri Chen
See Also:
BindingListModel, ListModel, ListModelSet, Serialized Form

Field Summary
Fields inherited from class org.zkoss.zul.ListModelSet
Fields inherited from class org.zkoss.zul.AbstractListModel
Constructor Summary
BindingListModelSet(java.util.Set<E> set, boolean live)
Method Summary
 int[] indexesOf(java.lang.Object elm)
          Deprecated. Returns indexes of the given object inside a ListModel.
 boolean isDistinct()
          Deprecated. Returns true if all objects inside this ListModel is distinct.
Methods inherited from class org.zkoss.zul.ListModelSet
add, addAll, addSelection, clear, clone, contains, containsAll, equals, fireSelectionEvent, getElementAt, getInnerSet, getSize, getSortDirection, hashCode, indexOf, isEmpty, iterator, remove, removeAll, removeSelection, retainAll, size, sort, toArray, toArray, toString
Methods inherited from class org.zkoss.zul.AbstractListModel
addListDataListener, addToSelection, clearSelection, fireEvent, getSelection, isMultiple, isSelected, isSelectionEmpty, newEmptySelection, readSelection, removeAllSelection, removeFromSelection, removeListDataListener, retainAllSelection, setMultiple, setSelection, writeSelection
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.zkoss.zkplus.databind.BindingListModel
Methods inherited from interface org.zkoss.zul.ListModel
addListDataListener, getElementAt, getSize, removeListDataListener

Constructor Detail


public BindingListModelSet(java.util.Set<E> set,
                           boolean live)
Method Detail


public boolean isDistinct()
Description copied from interface: BindingListModelExt
Returns true if all objects inside this ListModel is distinct. This is for DataBinder performance so there is no need to scan the whole ListModel as long as find one.

Specified by:
isDistinct in interface BindingListModelExt<E>
true if all objects inside this ListModel is distinct; otherwise, return false.


public int[] indexesOf(java.lang.Object elm)
Description copied from interface: BindingListModelExt
Returns indexes of the given object inside a ListModel.

Specified by:
indexesOf in interface BindingListModelExt<E>
elm - the specified object
indexes that contains the given object; return empty array if none found.

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