Class ListModel<T>

  • Type Parameters:
    T - type of object inside list
    All Implemented Interfaces:
    java.io.Serializable, IDetachable, IModel<java.util.List<T>>, IObjectClassAwareModel<java.util.List<T>>, org.apache.wicket.util.io.IClusterable

    public class ListModel<T>
    extends GenericBaseModel<java.util.List<T>>
    Based on Model but for lists of serializable objects.
    Author:
    Timo Rantalaiho
    See Also:
    Serialized Form
    • Constructor Detail

      • ListModel

        public ListModel()
        Creates empty model
      • ListModel

        public ListModel​(java.util.List<T> list)
        Creates model that will contain list
        Parameters:
        list -
    • Method Detail

      • createSerializableVersionOf

        protected java.util.List<T> createSerializableVersionOf​(java.util.List<T> object)
        Description copied from class: GenericBaseModel
        Creates a serializable version of the object. The object is usually a collection.
        Specified by:
        createSerializableVersionOf in class GenericBaseModel<java.util.List<T>>
        Returns:
        serializable version of object