Package docking.widgets.table.constraint
Class MappedColumnConstraint.DelegateColumnData
java.lang.Object
docking.widgets.table.constraint.MappedColumnConstraint.DelegateColumnData
- All Implemented Interfaces:
ColumnData<M>
- Enclosing class:
MappedColumnConstraint<T,
M>
Class for converting a ColumnDataSource<T> to a ColumnDataSource<W> to be used when
getting the editor for the delegateColumnConstraint<W>.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the column being filtered.getColumnValue
(int row) Returns the column value for the given row.int
getCount()
Returns the number of column values (unfiltered table row count)Returns the table's DataSource.
-
Constructor Details
-
DelegateColumnData
Constructor- Parameters:
columnDataSource
- theColumnDataSource<T> whose T data will be converted to W data for the delegate editor.
-
-
Method Details
-
getColumnName
Description copied from interface:ColumnData
Returns the name of the column being filtered.- Specified by:
getColumnName
in interfaceColumnData<M>
- Returns:
- the name of the column being filtered.
-
getCount
public int getCount()Description copied from interface:ColumnData
Returns the number of column values (unfiltered table row count)- Specified by:
getCount
in interfaceColumnData<M>
- Returns:
- the number of column values (unfiltered table row count)
-
getColumnValue
Description copied from interface:ColumnData
Returns the column value for the given row.- Specified by:
getColumnValue
in interfaceColumnData<M>
- Parameters:
row
- the row for which to get the column value.- Returns:
- the column value for the given row.
-
getTableDataSource
Description copied from interface:ColumnData
Returns the table's DataSource.- Specified by:
getTableDataSource
in interfaceColumnData<M>
- Returns:
- the table's DataSource.
-