Class ListModel<T>

    • Constructor Detail

      • ListModel

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

        public ListModel()
    • Method Detail

      • of

        public static <C> IModel<java.util.List<C>> of​(java.util.List<C> list)
        Factory method for models that contain list. This factory method will automatically rebuild a nonserializable list into a serializable ArrayList.
        Type Parameters:
        C - model type
        Parameters:
        list - The list, which may or may not be Serializable
        Returns:
        A IModel object wrapping the Set
      • newSerializableCollectionOf

        protected java.util.List<T> newSerializableCollectionOf​(java.util.List<T> object)
        Creates a serializable version of the object. The object is usually a collection.
        Specified by:
        newSerializableCollectionOf in class GenericCollectionModel<java.util.List<T>>
        Parameters:
        object - the object
        Returns:
        serializable version of object