org.zkoss.zkplus.databind
Class BindingListModelMap<K,V>

java.lang.Object
  extended by org.zkoss.zul.AbstractListModel<java.util.Map.Entry<K,V>>
      extended by org.zkoss.zul.ListModelMap<K,V>
          extended by org.zkoss.zkplus.databind.BindingListModelMap<K,V>
All Implemented Interfaces:
java.io.Serializable, java.util.Map<K,V>, BindingListModel<java.util.Map.Entry<K,V>>, BindingListModelExt<java.util.Map.Entry<K,V>>, Selectable<java.util.Map.Entry<K,V>>, Sortable<java.util.Map.Entry<K,V>>, ListModel<java.util.Map.Entry<K,V>>

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

public class BindingListModelMap<K,V>
extends ListModelMap<K,V>
implements BindingListModelExt<java.util.Map.Entry<K,V>>, 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 Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class org.zkoss.zul.ListModelMap
_map
 
Fields inherited from class org.zkoss.zul.AbstractListModel
_selection
 
Constructor Summary
BindingListModelMap(java.util.Map<K,V> map, boolean live)
          Deprecated.  
 
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.ListModelMap
addSelection, clear, clone, containsKey, containsValue, entrySet, equals, fireSelectionEvent, get, getElementAt, getInnerMap, getSize, getSortDirection, hashCode, indexOf, indexOfKey, isEmpty, keySet, put, putAll, readSelection, remove, removeSelection, size, sort, toString, values, writeSelection
 
Methods inherited from class org.zkoss.zul.AbstractListModel
addListDataListener, addToSelection, clearSelection, fireEvent, getSelection, isMultiple, isSelected, isSelectionEmpty, newEmptySelection, removeAllSelection, removeFromSelection, removeListDataListener, retainAllSelection, setMultiple, setSelection
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.zkoss.zkplus.databind.BindingListModel
indexOf
 
Methods inherited from interface org.zkoss.zul.ListModel
addListDataListener, getElementAt, getSize, removeListDataListener
 

Constructor Detail

BindingListModelMap

public BindingListModelMap(java.util.Map<K,V> map,
                           boolean live)
Deprecated. 
Since:
3.0.5
Method Detail

isDistinct

public boolean isDistinct()
Deprecated. 
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<java.util.Map.Entry<K,V>>
Returns:
true if all objects inside this ListModel is distinct; otherwise, return false.

indexesOf

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

Specified by:
indexesOf in interface BindingListModelExt<java.util.Map.Entry<K,V>>
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. SourceForge.net Logo