Package ghidra.util.table
Interface ProgramTableModel
- All Known Implementing Classes:
AddressArrayTableModel
,AddressBasedTableModel
,AddressPreviewTableModel
,AddressSetTableModel
,AlignedObjectBasedPreviewTableModel
,CustomLoadingAddressTableModel
,FunctionXrefsTableModel
,GhidraProgramTableModel
,IncomingReferencesTableModel
,ProgramLocationPreviewTableModel
,ReferencesFromTableModel
,TableChooserTableModel
public interface ProgramTableModel
An interface for translating table rows and columns
into program locations and selections.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the program associated with this ProgramTableModel.getProgramLocation
(int row, int column) Returns a program location corresponding the given row and column.getProgramSelection
(int[] rows) Returns a program selection corresponding to the specified row index array.
-
Method Details
-
getProgramLocation
Returns a program location corresponding the given row and column. Motivation: Given a table that has a column that contains addresses. If the user clicks on this column, then it would be nice to have the CodeBrowser navigate to this address.- Parameters:
row
- the rowcolumn
- the column- Returns:
- a program location corresponding the given row and column
-
getProgramSelection
Returns a program selection corresponding to the specified row index array. This array will contain the currently selected rows.- Parameters:
rows
- the currently selected rows.- Returns:
- a program selection
-
getProgram
Program getProgram()Returns the program associated with this ProgramTableModel.- Returns:
- the program associated with this ProgramTableModel.
-