Class ListItem<T>

Type Parameters:
T - Model object type
All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IGenericComponent<T,ListItem<T>>, IMetadataContext<Serializable,Component>, IHeaderContributor, IRequestableComponent, IHierarchical<Component>, IClusterable
Direct Known Subclasses:
Item, OddEvenListItem

public class ListItem<T> extends LoopItem implements IGenericComponent<T,ListItem<T>>
Container that holds components in a ListView.
Author:
Jonathan Locke
See Also:
  • Constructor Details

    • ListItem

      public ListItem(String id, int index, IModel<T> model)
      Parameters:
      id - component id
      index - relative index of this item in the pageable view
      model - model for this item
    • ListItem

      public ListItem(int index, IModel<T> model)
      A constructor which uses the index and the list provided to create a ListItem. This constructor is the default one.
      Parameters:
      index - The index of the item
      model - The model object of the item
    • ListItem

      public ListItem(String id, int index)
      Constructor
      Parameters:
      id - component id
      index - relative index of this item in the pageable view