Class 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 ColumnDataSource<T> to a ColumnDataSource<W> to be used when getting the editor for the delegateColumnConstraint<W>.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getColumnName()
      Returns the name of the column being filtered.
      M getColumnValue​(int row)
      Returns the column value for the given row.
      int getCount()
      Returns the number of column values (unfiltered table row count)
      java.lang.Object getTableDataSource()
      Returns the table's DataSource.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DelegateColumnData

        public DelegateColumnData​(ColumnData<T> columnDataSource)
        Constructor
        Parameters:
        columnDataSource - theColumnDataSource<T> whose T data will be converted to W data for the delegate editor.
    • Method Detail

      • getColumnName

        public java.lang.String getColumnName()
        Description copied from interface: ColumnData
        Returns the name of the column being filtered.
        Specified by:
        getColumnName in interface ColumnData<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 interface ColumnData<M>
        Returns:
        the number of column values (unfiltered table row count)
      • getColumnValue

        public M getColumnValue​(int row)
        Description copied from interface: ColumnData
        Returns the column value for the given row.
        Specified by:
        getColumnValue in interface ColumnData<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: ColumnData
        Returns the table's DataSource.
        Specified by:
        getTableDataSource in interface ColumnData<M>
        Returns:
        the table's DataSource.