| java.lang.Object org.zkoss.zul.AbstractListModel org.zkoss.zul.ListModelSet
All known Subclasses: org.zkoss.zkplus.databind.BindingListModelSet,
ListModelSet | public ListModelSet(Set set, boolean live)(Code) | | Constructor
Parameters: set - the set to represent Parameters: live - whether to have a 'live' ListModel on top ofthe specified set.If false, the content of the specified set is copied.If true, this object is a 'facade' of the specified set,i.e., when you add or remove items from this ListModelSet,the inner "live" set would be changed accordingly.However, it is not a good idea to modify set 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 |
ListModelSet | public ListModelSet()(Code) | | Constructor.
|
ListModelSet | public ListModelSet(Collection c)(Code) | | Constructor.
It mades a copy of the specified collection (i.e., not live).
|
ListModelSet | public ListModelSet(Object[] array)(Code) | | Constructor.
It mades a copy of the specified array (i.e., not live).
since: 2.4.1 |
ListModelSet | public ListModelSet(int initialCapacity)(Code) | | Constructor.
Parameters: initialCapacity - the initial capacity for this ListModelSet. |
ListModelSet | public ListModelSet(int initialCapacity, float loadFactor)(Code) | | Constructor.
Parameters: initialCapacity - the initial capacity for this ListModelMap. Parameters: loadFactor - the loadFactor to increase capacity of this ListModelMap. |
add | public boolean add(Object o)(Code) | | This implementation optimized on the LinkedHashSet(which guaratee the sequence of the added item).
Other implementation needs one more linier search.
|
addAll | public boolean addAll(Collection c)(Code) | | This implementation optimized on the LinkedHashSet(which
guaratee the sequence of the added item).
Other implementation needs one more linier search.
|
clear | public void clear()(Code) | | |
getInnerSet | public Set getInnerSet()(Code) | | Get the inner real set.
|
getSize | public int getSize()(Code) | | |
hashCode | public int hashCode()(Code) | | |
indexOf | public int indexOf(Object o)(Code) | | Returns the index of the specified object, or -1 if not found.
|
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. |
|
|