Class ListItemModel<T>

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

    public class ListItemModel<T>
    extends java.lang.Object
    implements IModel<T>
    Model for list items.
    See Also:
    ListView, Serialized Form
    • Constructor Detail

      • ListItemModel

        public ListItemModel​(ListView<T> listView,
                             int index)
        Construct
        Parameters:
        listView - The ListView
        index - The index of this model
    • Method Detail

      • getObject

        public T getObject()
        Description copied from interface: IModel
        Gets the model object.
        Specified by:
        getObject in interface IModel<T>
        Returns:
        The model object
      • setObject

        public void setObject​(T object)
        Description copied from interface: IModel
        Sets the model object.
        Specified by:
        setObject in interface IModel<T>
        Parameters:
        object - The model object