|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wicketstuff.select2.Response<T>
T - type of choice objectpublic class Response<T>
Response that will be sent to Select2 after it queries for matching choices.
| Constructor Summary | |
|---|---|
Response()
|
|
| Method Summary | ||
|---|---|---|
|
add(Z choice)
Adds a choice to the collection |
|
Response<T> |
addAll(Collection<? extends T> choice)
Adds choices to the collection |
|
Boolean |
getHasMore()
|
|
List<T> |
getResults()
|
|
Iterator<T> |
iterator()
|
|
Response<T> |
setHasMore(Boolean more)
Sets the more flag used to tell Select2 whether or not there are more results
available. |
|
Response<T> |
setResults(List<T> results)
Sets the results collection. |
|
int |
size()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Response()
| Method Detail |
|---|
public List<T> getResults()
public Response<T> setResults(List<T> results)
add(Object) and addAll(Collection) methods.
results -
this for chainingpublic Boolean getHasMore()
mode flag used to tell Select2 whether or not there are more results
available.public Response<T> setHasMore(Boolean more)
more flag used to tell Select2 whether or not there are more results
available.
more - more flag
this for chainingpublic Response<T> addAll(Collection<? extends T> choice)
choice -
this for chainingpublic <Z extends T> Response<T> add(Z choice)
choice -
this for chainingpublic Iterator<T> iterator()
iterator in interface Iterable<T>public int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||