public class EmptyListIsSpecialWrapperModel<T> extends Object implements org.apache.wicket.model.IModel<List<T>>
If the user enters greater than zero options, they are passed to the wrapped model. Otherwise, if the user doesn't enter any options, some "default" list is set in the wrapped model. The "default" list may be null.
Constructor and Description |
---|
EmptyListIsSpecialWrapperModel(List<T> e,
org.apache.wicket.model.IModel<List<T>> m) |
Modifier and Type | Method and Description |
---|---|
void |
detach() |
List<T> |
getObject()
Returns data to user i.e.
|
void |
setObject(List<T> userData) |