| java.lang.Object org.zkoss.zul.AbstractListModel org.zkoss.zul.ListModelList
All known Subclasses: org.zkoss.zkplus.databind.BindingListModelList,
ListModelList | public ListModelList(List list, boolean live)(Code) | | Constructor
Parameters: list - the list to represent Parameters: live - whether to have a 'live' ListModel on top ofthe specified list.If false, the content of the specified list is copied.If true, this object is a 'facade' of the specified list,i.e., when you add or remove items from this ListModelList,the inner "live" list would be changed accordingly.However, it is not a good idea to modify list 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 |
ListModelList | public ListModelList()(Code) | | Constructor.
|
ListModelList | public ListModelList(Collection c)(Code) | | Constructor.
It mades a copy of the specified collection (i.e., not live).
|
ListModelList | public ListModelList(Object[] array)(Code) | | Constructor.
It mades a copy of the specified array (i.e., not live).
since: 2.4.1 |
ListModelList | public ListModelList(int initialCapacity)(Code) | | Constructor.
Parameters: initialCapacity - the initial capacity for this ListModelList. |
clear | public void clear()(Code) | | |
getInnerList | public List getInnerList()(Code) | | Get the inner real List.
|
getSize | public int getSize()(Code) | | |
hashCode | public int hashCode()(Code) | | |
isEmpty | public boolean isEmpty()(Code) | | |
removeRange | public void removeRange(int fromIndex, int toIndex)(Code) | | Remove from fromIndex(inclusive) to toIndex(exclusive). If fromIndex equals toIndex,
this methods do nothing.
Parameters: fromIndex - the begin index (inclusive) to be removed. Parameters: toIndex - the end index (exclusive) to be removed. |
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. |
subList | public List subList(int fromIndex, int toIndex)(Code) | | |
|
|