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.TableModel
A model that provides access to table columns that are "configurable," whether by way ofSettings
object, 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 Settings
getColumnSettings(int index)
Returns settings for the specified column index.SettingsDefinition[]
getColumnSettingsDefinitions(int index)
Returns settings definitions for the specified column index.int
getMaxLines(int index)
Gets the maximum number of text display lines needed for any given cell within the specified column.javax.swing.table.TableCellRenderer
getRenderer(int columnIndex)
void
setAllColumnSettings(Settings[] settings)
Allows for the bulk setting of Settings.void
setColumnSettings(int index, Settings newSettings)
A convenience method to set bulk column setting information for a group of columns at one time (this saves repeated rebuilding when settings are changing for multiple columns at once).
-
-
-
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.
-
setColumnSettings
void setColumnSettings(int index, Settings newSettings)
A convenience method to set bulk column setting information for a group of columns at one time (this saves repeated rebuilding when settings are changing for multiple columns at once).- Parameters:
index
- the column indexnewSettings
- A list of pair objects that contain the column index of the column to which the new settings apply and the new settings object.
-
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.- See Also:
setColumnSettings(int, Settings)
-
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)
-
-