Class DefaultEnumeratedColumnProgramTableModel<C extends Enum<C> & EnumeratedTableColumn<C,R>, R>

All Implemented Interfaces:
ConfigurableColumnTableModel, DynamicColumnTableModel<R>, EnumeratedColumnProgramTableModel<R>, EnumeratedColumnTableModel<R>, RowObjectTableModel<R>, SelectionStorage<R>, SortedTableModel, VariableColumnTableModel, ProgramTableModel, Serializable, EventListener, ChangeListener, TableModel

public class DefaultEnumeratedColumnProgramTableModel<C extends Enum<C> & EnumeratedTableColumn<C,R>, R> extends DefaultEnumeratedColumnTableModel<C,R> implements EnumeratedColumnProgramTableModel<R>
See Also:
  • Field Details

  • Constructor Details

    • DefaultEnumeratedColumnProgramTableModel

      public DefaultEnumeratedColumnProgramTableModel(PluginTool tool, String name, Class<C> colType, C selColumn)
  • Method Details

    • 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.

      Specified by:
      getProgramLocation in interface ProgramTableModel
      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.
      Specified by:
      getProgramSelection in interface ProgramTableModel
      Parameters:
      rows - the currently selected rows.
      Returns:
      a program selection
    • getProgram

      public Program getProgram()
      Description copied from interface: ProgramTableModel
      Returns the program associated with this ProgramTableModel.
      Specified by:
      getProgram in interface ProgramTableModel
      Returns:
      the program associated with this ProgramTableModel.
    • setProgram

      public void setProgram(Program program)
      Specified by:
      setProgram in interface EnumeratedColumnProgramTableModel<C extends Enum<C> & EnumeratedTableColumn<C,R>>