T
The type of data in the DataTable.
T
The type of data in the DataTable.
public static ColumnHeaderFilterPlugin<T> create()
T
The type of data in the DataTable.
A new ColumnHeaderFilterPlugin instance.
public void init(DataTable<T> dataTable)
dataTable
The DataTable to which this plugin is attached.
public void onAfterAddHeaders(DataTable<T> dataTable)
dataTable
The DataTable to which the header filters are added.
public void handleEvent(DominoEvent event)
event
The table event to handle.
public TableRowElement getFiltersRowElement()
The TableRowElement containing the header filters.
public int order()
The order value for this plugin.
public void init(DataTable<T> dataTable)
dataTable
The DataTable instance to which this plugin is applied.
public void onHeaderAdded(DataTable<T> dataTable, ColumnConfig<T> column)
dataTable
The DataTable instance to which this plugin is applied.
column
The column configuration to which sorting functionality is added.
public void sort(SortDirection direction, ColumnConfig<T> column)
direction
The sorting direction (ascending or descending).
column
The column to be sorted.
public void handleEvent(DominoEvent event)
event
The event to handle.
public SortPlugin<T> setConfig(SortPluginConfig config)
config
The SortPluginConfig to set.
This SortPlugin instance for method chaining.
public SortPluginConfig getConfig()
The SortPluginConfig.
public SortPlugin<T> configure(Consumer<SortPluginConfig> handler)
handler
The consumer to apply configuration changes.
This SortPlugin instance for method chaining.
public boolean isTriStateSort()
true if tri-state sorting is enabled, false otherwise.
public SortPluginConfig setTriStateSort(boolean triStateSort)
triStateSort
true to enable tri-state sorting, false to disable.
This SortPluginConfig instance for method chaining.
public Supplier<Icon<?>> getAscendingIcon()
The supplier for the ascending sorting icon.
public SortPluginConfig setAscendingIcon(Supplier<Icon<?>> ascendingIcon)
ascendingIcon
The supplier for the ascending sorting icon.
This SortPluginConfig instance for method chaining.
public Supplier<Icon<?>> getDescendingIcon()
The supplier for the descending sorting icon.
public SortPluginConfig setDescendingIcon(Supplier<Icon<?>> descendingIcon)
descendingIcon
The supplier for the descending sorting icon.
This SortPluginConfig instance for method chaining.
public Supplier<Icon<?>> getUnsortedIcon()
The supplier for the unsorted icon.
public SortPluginConfig setUnsortedIcon(Supplier<Icon<?>> unsortedIcon)
unsortedIcon
The supplier for the unsorted icon.
This SortPluginConfig instance for method chaining.
public boolean isShowIconOnSortedColumnOnly()
true if icons are displayed only on the sorted column, false otherwise.
public SortPluginConfig setShowIconOnSortedColumnOnly(boolean showIconOnSortedColumnOnly)
showIconOnSortedColumnOnly
true to display icons only on the sorted column, false otherwise.
This SortPluginConfig instance for method chaining.
public boolean isShowSortOptionsInColumnMenu()
true if sort options are displayed in the column menu, false otherwise
public SortPluginConfig setShowSortOptionsInColumnMenu(boolean showSortOptionsInColumnMenu)
showSortOptionsInColumnMenu
true to display sort options in the column menu, false to hide them
This SortPluginConfig instance for method chaining.
public String getSortAscendingLabel()
the "Sort Ascending" label, or null if not set
public void setSortAscendingLabel(String sortAscendingLabel)
sortAscendingLabel
the label to use for the "Sort Ascending" option
public String getSortDescendingLabel()
the "Sort Descending" label, or null if not set
public void setSortDescendingLabel(String sortDescendingLabel)
sortDescendingLabel
the label to use for the "Sort Descending" option
public String getNoSortLabel()
the "No Sort" label, or null if not set
public void setNoSortLabel(String noSortLabel)
noSortLabel
the label to use for the "No Sort" option