1. Domino UI
  2. Data table
  3. Table summary
Top Summary Docs

Table summary

The SummaryPlugin class is used to display summary rows in a DataTable . Summary rows provide aggregate information about the data in the table.

Usage Example:

 
 DataTable< Employee>  dataTable = DataTable.create(dataList);
 SummaryPlugin< Employee, SummaryData>  summaryPlugin = new SummaryPlugin<> ();
 dataTable.addPlugin(summaryPlugin);
 summaryPlugin.setSummaryRecords(summaryDataList);
 

T

The type of data in the DataTable.

S

The type of data in the summary row.

Examples

Table summary Show data aggregation and summary in the table footer.

API Docs: SummaryPlugin

Public methods

public void init(DataTable<T> dataTable)
Initializes the SummaryPlugin with the DataTable.

dataTable

The DataTable to which this plugin is added.

public void onFooterAdded(DataTable<T> datatable)
Invoked when the footer is added to the DataTable.

datatable

The DataTable to which the footer is added.

public SummaryPlugin<T, S> setSummaryRecords(Collection<S> records)
Sets the summary records to be displayed in the DataTable. Any existing summary rows are removed and replaced with new ones based on the provided records.

records

A collection of summary records.



Returns:

This SummaryPlugin instance.

public SummaryPlugin<T, S> setConfig(SummaryPluginConfig config)
Sets the configuration for the SummaryPlugin.

config

The SummaryPlugin to set.



Returns:

The SummaryPlugin instance.

public SummaryPluginConfig getConfig()
Gets the current configuration of the SummaryPlugin.

Returns:

The current SummaryPluginConfig.

public int order()
Specifies the order in which this plugin should be applied relative to other plugins. Plugins with lower order values are applied first.

Returns:

The order value for this plugin.

We are a group of passionate people who love what we do

Donate & Support Us