Package docking.widgets.table
Interface ConfigurableColumnTableModel
- All Superinterfaces:
TableModel
- All Known Subinterfaces:
DynamicColumnTableModel<ROW_TYPE>
- All Known Implementing Classes:
AddressArrayTableModel
,AddressBasedTableModel
,AddressPreviewTableModel
,AddressSetTableModel
,AlignedObjectBasedPreviewTableModel
,AnyObjectTableModel
,CustomLoadingAddressTableModel
,DbSmallTableModel
,EmptyThreadedTableModel
,FunctionXrefsTableModel
,GDynamicColumnTableModel
,GhidraProgramTableModel
,IncomingReferencesTableModel
,MemoryMatchTableModel
,ProgramLocationPreviewTableModel
,ProjectDataTableModel
,ReferencesFromTableModel
,SetEquateTableModel
,TableChooserTableModel
,ThemeColorTableModel
,ThemeFontTableModel
,ThemeIconTableModel
,ThreadedTableModel
,ThreadedTableModelStub
A model that provides access to table columns that are "configurable," whether by way of
Settings
object, or by the implementations and how they were written (like supplying
custom renderers and such).-
Method Summary
Modifier and TypeMethodDescriptiongetColumnSettings
(int index) Returns settings for the specified column indexgetColumnSettingsDefinitions
(int index) Returns settings definitions for the specified column indexgetHeaderRenderer
(int columnIndex) Returns the header cell renderer for the given columnint
getMaxLines
(int index) Gets the maximum number of text display lines needed for any given cell within the specified columngetRenderer
(int columnIndex) Returns the table cell renderer for the given columnvoid
setAllColumnSettings
(Settings[] settings) Allows for the bulk setting of Settings.Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
-
Method Details
-
getColumnSettings
Returns settings for the specified column index- Parameters:
index
- column index- Returns:
- column settings.
-
getColumnSettingsDefinitions
Returns settings definitions for the specified column index- Parameters:
index
- column index- Returns:
- column settings definitions.
-
setAllColumnSettings
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
Returns the table cell renderer for the given column- Parameters:
columnIndex
- the index of the column- Returns:
- the renderer
-
getHeaderRenderer
Returns the header cell renderer for the given column- Parameters:
columnIndex
- the index of the column- Returns:
- the renderer
-