Package docking.widgets.table
Class AbstractDynamicTableColumnStub<ROW_TYPE,COLUMN_TYPE>
java.lang.Object
docking.widgets.table.AbstractDynamicTableColumn<ROW_TYPE,COLUMN_TYPE,Object>
docking.widgets.table.AbstractDynamicTableColumnStub<ROW_TYPE,COLUMN_TYPE>
- Type Parameters:
ROW_TYPE
- the row typeCOLUMN_TYPE
- the column type
- All Implemented Interfaces:
DynamicTableColumn<ROW_TYPE,
COLUMN_TYPE, Object>
- Direct Known Subclasses:
BinaryColumnAdapter
,BooleanColumnAdapter
,ByteColumnAdapter
,IntegerColumnAdapter
,LongColumnAdapter
,ShortColumnAdapter
,StringColumnAdapter
public abstract class AbstractDynamicTableColumnStub<ROW_TYPE,COLUMN_TYPE>
extends AbstractDynamicTableColumn<ROW_TYPE,COLUMN_TYPE,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.
Subclasses are not discoverable. To create discoverable columns for the framework, you must
extends DynamicTableColumnExtensionPoint
.
-
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
-
Method Summary
Modifier and TypeMethodDescriptionabstract COLUMN_TYPE
getValue
(ROW_TYPE rowObject, Settings settings, ServiceProvider serviceProvider) getValue
(ROW_TYPE rowObject, Settings settings, 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, getComparator, getHeaderRenderer, getMaxLines, getSettingsDefinitions, getSupportedRowType, getUniqueIdentifier, hashCode, toString
-
Constructor Details
-
AbstractDynamicTableColumnStub
public AbstractDynamicTableColumnStub()
-
-
Method Details
-
getValue
public COLUMN_TYPE getValue(ROW_TYPE rowObject, Settings settings, Object data, ServiceProvider serviceProvider) throws 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, Object> - Specified by:
getValue
in classAbstractDynamicTableColumn<ROW_TYPE,
COLUMN_TYPE, 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:
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 IllegalArgumentException - Throws:
IllegalArgumentException
-