Package ghidra.app.tablechooser
Class ColumnDisplayDynamicTableColumnAdapter<COLUMN_TYPE>
- java.lang.Object
-
- docking.widgets.table.AbstractDynamicTableColumn<ROW_TYPE,COLUMN_TYPE,Program>
-
- ghidra.util.table.field.AbstractProgramBasedDynamicTableColumn<AddressableRowObject,COLUMN_TYPE>
-
- ghidra.app.tablechooser.ColumnDisplayDynamicTableColumnAdapter<COLUMN_TYPE>
-
- All Implemented Interfaces:
DynamicTableColumn<AddressableRowObject,COLUMN_TYPE,Program>
,java.util.Comparator<AddressableRowObject>
public class ColumnDisplayDynamicTableColumnAdapter<COLUMN_TYPE> extends AbstractProgramBasedDynamicTableColumn<AddressableRowObject,COLUMN_TYPE> implements java.util.Comparator<AddressableRowObject>
-
-
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 ColumnDisplayDynamicTableColumnAdapter(ColumnDisplay<COLUMN_TYPE> display)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(AddressableRowObject o1, AddressableRowObject o2)
java.lang.Class<COLUMN_TYPE>
getColumnClass()
Determines the class of object that is associated with this field (column).java.lang.String
getColumnName()
Determines the unique column heading that may be used to identify a column instance.COLUMN_TYPE
getValue(AddressableRowObject rowObject, Settings settings, Program program, 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, getColumnDescription, getColumnDisplayName, getColumnPreferredWidth, getColumnRenderer, getComparator, getMaxLines, getSettingsDefinitions, getSupportedRowType, getUniqueIdentifier, hashCode, toString
-
-
-
-
Constructor Detail
-
ColumnDisplayDynamicTableColumnAdapter
public ColumnDisplayDynamicTableColumnAdapter(ColumnDisplay<COLUMN_TYPE> display)
-
-
Method Detail
-
getColumnClass
public java.lang.Class<COLUMN_TYPE> getColumnClass()
Description copied from interface:DynamicTableColumn
Determines the class of object that is associated with this field (column).- Specified by:
getColumnClass
in interfaceDynamicTableColumn<AddressableRowObject,COLUMN_TYPE,Program>
- Overrides:
getColumnClass
in classAbstractDynamicTableColumn<AddressableRowObject,COLUMN_TYPE,Program>
- Returns:
- the column class
-
getColumnName
public java.lang.String getColumnName()
Description copied from interface:DynamicTableColumn
Determines the unique column heading that may be used to identify a column instance. This name must be non-changing and is used to save/restore state information.- Specified by:
getColumnName
in interfaceDynamicTableColumn<AddressableRowObject,COLUMN_TYPE,Program>
- Specified by:
getColumnName
in classAbstractDynamicTableColumn<AddressableRowObject,COLUMN_TYPE,Program>
- Returns:
- the field instance name.
-
getValue
public COLUMN_TYPE getValue(AddressableRowObject rowObject, Settings settings, Program program, 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<AddressableRowObject,COLUMN_TYPE,Program>
- Specified by:
getValue
in classAbstractDynamicTableColumn<AddressableRowObject,COLUMN_TYPE,Program>
- Parameters:
rowObject
- the object associated with the row in the table.settings
- field settingsprogram
- 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.
-
compare
public int compare(AddressableRowObject o1, AddressableRowObject o2)
- Specified by:
compare
in interfacejava.util.Comparator<COLUMN_TYPE>
-
-