|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.wicket.jquery.ui.form.autocomplete.AutoCompleteUtils
public class AutoCompleteUtils
Provides simple utils that can be used in AutoCompleteTextField.getChoices(String)
Constructor Summary | |
---|---|
AutoCompleteUtils()
|
Method Summary | ||
---|---|---|
static
|
contains(String search,
List<T> list)
Returns a sub list of items of type T having their textual representation (toString()) containing the search criteria The max size of the sub list is MAX |
|
static
|
contains(String search,
List<T> list,
int max)
Returns a sub list of items of type T having their textual representation (toString()) containing the search criteria |
|
static
|
startsWith(String search,
List<T> list)
Returns a sub list of items of type T having their textual representation (toString()) starting with the search criteria The max size of the sub list is MAX |
|
static
|
startsWith(String search,
List<T> list,
int max)
Returns a sub list of items of type T having their textual representation (toString()) starting with the search criteria |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AutoCompleteUtils()
Method Detail |
---|
public static <T> List<T> contains(String search, List<T> list)
MAX
T
- the typesearch
- search criterialist
- reference list
public static <T> List<T> contains(String search, List<T> list, int max)
T
- the typesearch
- search criterialist
- reference listmax
- max size of the sub list to be returned
public static <T> List<T> startsWith(String search, List<T> list)
MAX
T
- the typesearch
- search criterialist
- reference list
public static <T> List<T> startsWith(String search, List<T> list, int max)
T
- the typesearch
- search criterialist
- reference listmax
- max size of the sub list to be returned
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |