Type Parameters:
T - The model object type
S - the type of the sorting parameter
All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IMetadataContext<Serializable,Component>, IQueueRegion, IHeaderContributor, IPageable, IPageableItems, IRequestableComponent, IHierarchical<Component>, IClusterable

public class DefaultDataTable<T,S> extends DataTable<T,S>
An implementation of the DataTable that aims to solve the 90% usecase by adding navigation, headers, an no-records-found toolbars to a standard DataTable.

The NavigationToolbar and the HeadersToolbar are added as top toolbars, while the NoRecordsToolbar toolbar is added as a bottom toolbar.

Author:
Igor Vaynberg ( ivaynberg )
See Also:
  • Constructor Details

  • Method Details

    • newRowItem

      protected Item<T> newRowItem(String id, int index, IModel<T> model)
      Description copied from class: DataTable
      Factory method for Item container that represents a row in the underlying DataGridView
      Overrides:
      newRowItem in class DataTable<T,S>
      Parameters:
      id - component id for the new data item
      index - the index of the new data item
      model - the model for the new data item.
      Returns:
      DataItem created DataItem
      See Also: