Package docking.widgets.table
Interface ConfigurableColumnTableModel
-
- All Superinterfaces:
javax.swing.table.TableModel
- All Known Subinterfaces:
DynamicColumnTableModel<ROW_TYPE>
- All Known Implementing Classes:
AddressArrayTableModel,AddressBasedTableModel,AddressPreviewTableModel,AddressSetTableModel,AlignedObjectBasedPreviewTableModel,AnyObjectTableModel,CustomLoadingAddressTableModel,EmptyThreadedTableModel,GDynamicColumnTableModel,GhidraProgramTableModel,IncomingReferencesTableModel,ProgramLocationPreviewTableModel,ProjectDataTableModel,ReferencesFromTableModel,SetEquateTableModel,TableChooserTableModel,ThreadedTableModel,ThreadedTableModelStub
public interface ConfigurableColumnTableModel extends javax.swing.table.TableModelA model that provides access to table columns that are "configurable," whether by way ofSettingsobject, or by the implementations and how they were written (like supplying custom renderers and such).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SettingsgetColumnSettings(int index)Returns settings for the specified column indexSettingsDefinition[]getColumnSettingsDefinitions(int index)Returns settings definitions for the specified column indexintgetMaxLines(int index)Gets the maximum number of text display lines needed for any given cell within the specified columnjavax.swing.table.TableCellRenderergetRenderer(int columnIndex)Returns the table cell renderer for the given columnvoidsetAllColumnSettings(Settings[] settings)Allows for the bulk setting of Settings.
-
-
-
Method Detail
-
getColumnSettings
Settings getColumnSettings(int index)
Returns settings for the specified column index- Parameters:
index- column index- Returns:
- column settings.
-
getColumnSettingsDefinitions
SettingsDefinition[] getColumnSettingsDefinitions(int index)
Returns settings definitions for the specified column index- Parameters:
index- column index- Returns:
- column settings definitions.
-
setAllColumnSettings
void setAllColumnSettings(Settings[] settings)
Allows for the bulk setting of Settings. This prevents excessive event notification when all settings need to be changed.- Parameters:
settings- An array of Settings that contains Settings for each column where the index of the Settings in the array is the index of the column in the model
-
getMaxLines
int getMaxLines(int index)
Gets the maximum number of text display lines needed for any given cell within the specified column- Parameters:
index- column field index- Returns:
- maximum number of lines needed for specified column
-
getRenderer
javax.swing.table.TableCellRenderer getRenderer(int columnIndex)
Returns the table cell renderer for the given column- Parameters:
columnIndex- the index of the column- Returns:
- the renderer
-
-