org.zkoss.zul
Interface ListSubModel

All Known Implementing Classes:
SimpleListModel

public interface ListSubModel

An extra interface that can be implemented with ListModel to control the extract of the combobox.

Since:
3.0.2
Author:
jumperchen

Method Summary
 ListModel getSubModel(java.lang.Object value, int nRows)
          Returns the subset of list model data that the subset data is extract from combobox's list model data.
 

Method Detail

getSubModel

ListModel getSubModel(java.lang.Object value,
                      int nRows)
Returns the subset of list model data that the subset data is extract from combobox's list model data. It is ususally used for implmentation 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 nonpositive, it means the maximal allowed rows is decided by the implementation of ListSubmodel.
Since:
3.0.2


Copyright © 2005-2009 Potix Corporation. All Rights Reserved. SourceForge.net Logo