Package ghidra.util.table
Interface ProgramTableModel
- 
- All Known Implementing Classes:
 AddressArrayTableModel,AddressBasedTableModel,AddressPreviewTableModel,AddressSetTableModel,AlignedObjectBasedPreviewTableModel,CustomLoadingAddressTableModel,GhidraProgramTableModel,IncomingReferencesTableModel,ProgramLocationPreviewTableModel,ReferencesFromTableModel,TableChooserTableModel
public interface ProgramTableModelAn interface for translating table rows and columns into program locations and selections. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProgramgetProgram()Returns the program associated with this ProgramTableModel.ProgramLocationgetProgramLocation(int row, int column)Returns a program location corresponding the given row and column.ProgramSelectiongetProgramSelection(int[] rows)Returns a program selection corresponding to the specified row index array. 
 - 
 
- 
- 
Method Detail
- 
getProgramLocation
ProgramLocation getProgramLocation(int row, int column)
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
ProgramSelection getProgramSelection(int[] rows)
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.
 
 
 - 
 
 -