Package org.zkoss.zul
Interface ListSubModel<E>
- All Known Implementing Classes:
SimpleListModel
public interface ListSubModel<E>
An extra interface that can be implemented with
ListModel to control
the extract of the combobox.- Since:
- 3.0.2
- Author:
- jumperchen
-
Method Summary
Modifier and TypeMethodDescriptiongetSubModel(Object value, int nRows) Returns the subset of list model data that the subset data is extract from combobox's list model data.
-
Method Details
-
getSubModel
Returns the subset of list model data that the subset data is extract from combobox's list model data. It is usually used for implementation of auto-complete.- Parameters:
value- the object is used to find that the content is consistent within list model data.nRows- the number of rows suggested to return (as the returned ListModel instance). It's a suggestion for developer to follow. If non-positive, it means the maximal allowed rows is decided by the implementation of ListSubmodel.- Since:
- 3.0.2
-