Class ListItemModel<T>

java.lang.Object
org.apache.wicket.markup.html.list.ListItemModel<T>
Type Parameters:
T - Model object type
All Implemented Interfaces:
Serializable, IDetachable, IModel<T>, IClusterable

public class ListItemModel<T> extends Object implements IModel<T>
Model for list items.
See Also:
  • Constructor Details

    • ListItemModel

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

    • 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