org.zkoss.zkplus.databind
Class BindingListModelMap
java.lang.Object
org.zkoss.zul.AbstractListModel<java.util.Map.Entry<K,V>>
org.zkoss.zul.ListModelMap
org.zkoss.zkplus.databind.BindingListModelMap
- All Implemented Interfaces:
- java.io.Serializable, java.util.Map, BindingListModel, BindingListModelExt, Selectable, Sortable, ListModel
public class BindingListModelMap
- extends ListModelMap
- implements BindingListModelExt, java.io.Serializable
This is the BindingListModel as a Map to be used with
Listbox, Grid,
and DataBinder.
Add or remove the contents of this model as a Map 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,
BindingListModelExt,
ListModel,
ListModelMap,
Serialized Form
| Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
|
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.ListModelMap |
clear, containsKey, containsValue, entrySet, equals, get, getElementAt, getInnerMap, getSize, hashCode, indexOf, indexOfKey, isEmpty, keySet, put, putAll, remove, size, sort, toString, values |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
BindingListModelMap
public BindingListModelMap(java.util.Map map,
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
- 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
- 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.