Class PagingToolbar<D extends IDataSource<T>,T,S>

Type Parameters:
D - datasource model object type = grid type
T - row/item model object type
All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IMetadataContext<Serializable,Component>, IQueueRegion, IHeaderContributor, IRequestableComponent, IHierarchical<Component>, IClusterable

public class PagingToolbar<D extends IDataSource<T>,T,S> extends AbstractToolbar<D,T,S>
Toolbar that displays a paging navigator and a label with message about which rows are being displayed and their total number in the data table. This toolbar can only be added to DataTable
Author:
Matej Knopp
See Also:
  • Constructor Details

    • PagingToolbar

      public PagingToolbar(DataGrid<D,T,S> grid)
      Constructor
      Parameters:
      grid - data grid
  • Method Details

    • getDataGrid

      public DataGrid<D,T,S> getDataGrid()
      Returns the DataGrid to which this toolbar belongs.
      Returns:
      data grid
    • newNavigationLabel

      protected Component newNavigationLabel(String id)
    • newPagingNavigator

      protected Component newPagingNavigator(String id)
    • onConfigure

      protected void onConfigure()
      Important to prevent early initialization of QueryResult at AbstractPageableView. The isVisible method can be called during an early step in the form process and the QuertyResult initialization can fail if it depend upon form components
      Overrides:
      onConfigure in class Component