Class AbstractDynamicTableColumnStub<ROW_TYPE,​COLUMN_TYPE>

  • All Implemented Interfaces:
    DynamicTableColumn<ROW_TYPE,​COLUMN_TYPE,​java.lang.Object>

    public abstract class AbstractDynamicTableColumnStub<ROW_TYPE,​COLUMN_TYPE>
    extends AbstractDynamicTableColumn<ROW_TYPE,​COLUMN_TYPE,​java.lang.Object>
    This class is meant to be used by DynamicTableColumn implementations that do not care about the DATA_SOURCE parameter of DynamicTableColumn. This class will stub the default getValue(Object, Settings, Object, ServiceProvider) method and call a version of the method that does not have the DATA_SOURCE parameter.
    • Constructor Detail

      • AbstractDynamicTableColumnStub

        public AbstractDynamicTableColumnStub()
    • Method Detail

      • getValue

        public COLUMN_TYPE getValue​(ROW_TYPE rowObject,
                                    Settings settings,
                                    java.lang.Object data,
                                    ServiceProvider serviceProvider)
                             throws java.lang.IllegalArgumentException
        Description copied from interface: DynamicTableColumn
        Creates an object that is appropriate for this field (table column) and for the object that is associated with this row of the table.
        Specified by:
        getValue in interface DynamicTableColumn<ROW_TYPE,​COLUMN_TYPE,​java.lang.Object>
        Specified by:
        getValue in class AbstractDynamicTableColumn<ROW_TYPE,​COLUMN_TYPE,​java.lang.Object>
        Parameters:
        rowObject - the object associated with the row in the table.
        settings - field settings
        data - the expected data object, as defined by the DATA_SOURCE type
        serviceProvider - the ServiceProvider associated with the table.
        Returns:
        the object for the model to display in the table cell.
        Throws:
        java.lang.IllegalArgumentException - if the rowObject is not one supported by this class.
      • getValue

        public abstract COLUMN_TYPE getValue​(ROW_TYPE rowObject,
                                             Settings settings,
                                             ServiceProvider serviceProvider)
                                      throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException