Class AddressBasedTableModel<ROW_TYPE>

All Implemented Interfaces:
ConfigurableColumnTableModel, DynamicColumnTableModel<ROW_TYPE>, RowObjectFilterModel<ROW_TYPE>, RowObjectTableModel<ROW_TYPE>, SelectionStorage<ROW_TYPE>, SortedTableModel, VariableColumnTableModel, ProgramTableModel, Serializable, EventListener, ChangeListener, TableModel
Direct Known Subclasses:
AddressPreviewTableModel, AlignedObjectBasedPreviewTableModel, IncomingReferencesTableModel, ProgramLocationPreviewTableModel, ReferencesFromTableModel, TableChooserTableModel

public abstract class AddressBasedTableModel<ROW_TYPE> extends GhidraProgramTableModel<ROW_TYPE>
See Also:
  • Constructor Details

  • Method Details

    • getAddress

      public abstract Address getAddress(int row)
      Overrides:
      getAddress in class GhidraProgramTableModel<ROW_TYPE>
    • createTableColumnDescriptor

      protected TableColumnDescriptor<ROW_TYPE> createTableColumnDescriptor()
      Specified by:
      createTableColumnDescriptor in class GDynamicColumnTableModel<ROW_TYPE,Program>
    • getProgramLocation

      public ProgramLocation getProgramLocation(int row, int column)
      Description copied from interface: ProgramTableModel
      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 row
      column - the column in the model's index
      Returns:
      a program location corresponding the given row and column
    • getProgramSelection

      public ProgramSelection getProgramSelection(int[] rows)
      Description copied from interface: ProgramTableModel
      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