Package docking.widgets.table
Class AbstractDynamicTableColumnStub<ROW_TYPE,COLUMN_TYPE>
- java.lang.Object
-
- docking.widgets.table.AbstractDynamicTableColumn<ROW_TYPE,COLUMN_TYPE,java.lang.Object>
-
- docking.widgets.table.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 defaultgetValue(Object, Settings, Object, ServiceProvider)
method and call a version of the method that does not have the DATA_SOURCE parameter.
-
-
Field Summary
-
Fields inherited from class docking.widgets.table.AbstractDynamicTableColumn
FLOATING_POINT_PRECISION_SETTING, FLOATING_POINT_SETTINGS_DEFINITIONS, INTEGER_RADIX_SETTING, INTEGER_SETTINGS_DEFINITIONS, INTEGER_SIGNEDNESS_MODE_SETTING, NO_SETTINGS_DEFINITIONS
-
-
Constructor Summary
Constructors Constructor Description AbstractDynamicTableColumnStub()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract COLUMN_TYPE
getValue(ROW_TYPE rowObject, Settings settings, ServiceProvider serviceProvider)
COLUMN_TYPE
getValue(ROW_TYPE rowObject, Settings settings, java.lang.Object data, ServiceProvider serviceProvider)
Creates an object that is appropriate for this field (table column) and for the object that is associated with this row of the table.-
Methods inherited from class docking.widgets.table.AbstractDynamicTableColumn
equals, getColumnClass, getColumnDescription, getColumnDisplayName, getColumnName, getColumnPreferredWidth, getColumnRenderer, getComparator, getMaxLines, getSettingsDefinitions, getSupportedRowType, getUniqueIdentifier, hashCode, toString
-
-
-
-
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 interfaceDynamicTableColumn<ROW_TYPE,COLUMN_TYPE,java.lang.Object>
- Specified by:
getValue
in classAbstractDynamicTableColumn<ROW_TYPE,COLUMN_TYPE,java.lang.Object>
- Parameters:
rowObject
- the object associated with the row in the table.settings
- field settingsdata
- the expected data object, as defined by the DATA_SOURCE typeserviceProvider
- theServiceProvider
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
-
-