| java.lang.Object org.zkoss.zul.AbstractListModel org.zkoss.zul.ListModelMap
All known Subclasses: org.zkoss.zkplus.databind.BindingListModelMap,
ListModelMap | public ListModelMap(Map map, boolean live)(Code) | | Constructor.
Parameters: map - the map to represent Parameters: live - whether to have a 'live' ListModel on top ofthe specified map.If false, the content of the specified map is copied.If true, this object is a 'facade' of the specified map,i.e., when you add or remove items from this ListModelMap,the inner "live" map would be changed accordingly.However, it is not a good idea to modify map if it is passed to this method with live is true,since Listbox is not smart enough to hanle it.Instead, modify it thru this object. since: 2.4.0 |
ListModelMap | public ListModelMap()(Code) | | Constructor.
|
ListModelMap | public ListModelMap(Map map)(Code) | | Constructor.
It mades a copy of the specified map (i.e., not live).
|
ListModelMap | public ListModelMap(int initialCapacity)(Code) | | Constructor.
Parameters: initialCapacity - the initial capacity for this ListModelMap. |
ListModelMap | public ListModelMap(int initialCapacity, float loadFactor)(Code) | | Constructor.
Parameters: initialCapacity - the initial capacity for this ListModelMap. Parameters: loadFactor - the loadFactor to increase capacity of this ListModelMap. |
clear | public void clear()(Code) | | |
containsValue | public boolean containsValue(Object value)(Code) | | |
getElementAt | public Object getElementAt(int j)(Code) | | Returns the entry (Map.Entry) at the specified index.
|
getInnerMap | public Map getInnerMap()(Code) | | Get the inner real Map.
|
getSize | public int getSize()(Code) | | |
hashCode | public int hashCode()(Code) | | |
indexOf | public int indexOf(Object o)(Code) | | Returns the index of the specified object based on the entry
(Map.Entry).
Parameters: o - the object to look for. It must be an instance of Map.Entry. |
indexOfKey | public int indexOfKey(Object o)(Code) | | Returns the index of the specified object based on the key.
Parameters: o - the key to look for |
isEmpty | public boolean isEmpty()(Code) | | |
sort | public void sort(Comparator cmpr, boolean ascending)(Code) | | Sorts the data.
Parameters: cmpr - the comparator. Parameters: ascending - whether to sort in the ascending order.It is ignored since this implementation uses cmprt to compare. |
|
|