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>
protected class MappedColumnConstraint.DelegateColumnData extends java.lang.Object implements ColumnData<M>
Class for converting a ColumnDataSourceto a ColumnDataSource to be used when getting the editor for the delegate ColumnConstraint .
-
-
Constructor Summary
Constructors Constructor Description DelegateColumnData(ColumnData<T> columnDataSource)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetColumnName()Returns the name of the column being filtered.MgetColumnValue(int row)Returns the column value for the given row.intgetCount()Returns the number of column values (unfiltered table row count)java.lang.ObjectgetTableDataSource()Returns the table's DataSource.
-
-
-
Constructor Detail
-
DelegateColumnData
public DelegateColumnData(ColumnData<T> columnDataSource)
Constructor- Parameters:
columnDataSource- the ColumnDataSourcewhose T data will be converted to W data for the delegate editor.
-
-
Method Detail
-
getColumnName
public java.lang.String getColumnName()
Description copied from interface:ColumnDataReturns the name of the column being filtered.- Specified by:
getColumnNamein interfaceColumnData<M>- Returns:
- the name of the column being filtered.
-
getCount
public int getCount()
Description copied from interface:ColumnDataReturns the number of column values (unfiltered table row count)- Specified by:
getCountin interfaceColumnData<M>- Returns:
- the number of column values (unfiltered table row count)
-
getColumnValue
public M getColumnValue(int row)
Description copied from interface:ColumnDataReturns the column value for the given row.- Specified by:
getColumnValuein interfaceColumnData<M>- Parameters:
row- the row for which to get the column value.- Returns:
- the column value for the given row.
-
getTableDataSource
public java.lang.Object getTableDataSource()
Description copied from interface:ColumnDataReturns the table's DataSource.- Specified by:
getTableDataSourcein interfaceColumnData<M>- Returns:
- the table's DataSource.
-
-