Package ontopoly.models
Class ListModel<T,V>
java.lang.Object
org.apache.wicket.model.LoadableDetachableModel<List<T>>
ontopoly.models.ListModel<T,V>
- All Implemented Interfaces:
Serializable,org.apache.wicket.IClusterable,org.apache.wicket.model.IDetachable,org.apache.wicket.model.IModel<List<T>>
public abstract class ListModel<T,V>
extends org.apache.wicket.model.LoadableDetachableModel<List<T>>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract TgetObjectFor(V object) This method will be called for each value in the containing collection.load()makeCollection(int size) Make new collection instance.Methods inherited from class org.apache.wicket.model.LoadableDetachableModel
detach, getObject, isAttached, onAttach, onDetach, setObject, toString
-
Constructor Details
-
ListModel
-
-
Method Details
-
load
-
makeCollection
Make new collection instance.- Parameters:
size- the size of the collection to create.- Returns:
- return new collection
-
getObjectFor
This method will be called for each value in the containing collection. The result will be part of the final model collection.- Parameters:
object- the object to wrap- Returns:
- the wrapper object
-