org.zkoss.zkplus.databind
Class BindingListModelList<E>
java.lang.Object
org.zkoss.zul.AbstractListModel<E>
org.zkoss.zul.ListModelList<E>
org.zkoss.zkplus.databind.BindingListModelList<E>
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>, BindingListModel<E>, BindingListModelExt<E>, Selectable<E>, Sortable<E>, ListModel<E>
public class BindingListModelList<E>
- extends ListModelList<E>
- implements BindingListModelExt<E>, java.io.Serializable
This is the BindingListModel
as a List
to be used with
Listbox
, Grid
,
and DataBinder
.
Add or remove the contents of this model as a List would cause the associated Listbox or Grid to change accordingly.
Make as public class since 3.0.5
Support BindingListModelEx since 3.1
- Author:
- Henri Chen
- See Also:
BindingListModel
,
ListModel
,
ListModelList
,
Serialized Form
Method Summary |
int[] |
indexesOf(java.lang.Object elm)
Returns indexes of the given object inside a ListModel. |
boolean |
isDistinct()
Returns true if all objects inside this ListModel is distinct. |
Methods inherited from class org.zkoss.zul.ListModelList |
add, add, addAll, addAll, addSelection, clear, clone, contains, containsAll, equals, fireSelectionEvent, get, getElementAt, getInnerList, getSize, getSortDirection, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, removeSelection, retainAll, set, size, sort, subList, 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 |
BindingListModelList
public BindingListModelList(java.util.List<E> list,
boolean live,
boolean distinct)
- Since:
- 3.1
BindingListModelList
public BindingListModelList(java.util.List<E> list,
boolean live)
- Since:
- 3.0.5
isDistinct
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>
- Returns:
- true if all objects inside this ListModel is distinct; otherwise, return false.
indexesOf
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>
- Parameters:
elm
- the specified object
- Returns:
- indexes that contains the given object; return empty array if none found.
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.