Class FVTableModel

java.lang.Object
javax.swing.table.AbstractTableModel
ghidra.framework.main.logviewer.ui.FVTableModel
All Implemented Interfaces:
Serializable, TableModel

public class FVTableModel extends AbstractTableModel
The model that backs the FVTable table. This model defines 4 columns: date, time, log level, and the message.
See Also:
  • Field Details

  • Constructor Details

    • FVTableModel

      public FVTableModel()
  • Method Details

    • getRowCount

      public int getRowCount()
    • getColumnCount

      public int getColumnCount()
    • getColumnName

      public String getColumnName(int column)
      Specified by:
      getColumnName in interface TableModel
      Overrides:
      getColumnName in class AbstractTableModel
    • getColumnClass

      public Class<?> getColumnClass(int columnIndex)
      Specified by:
      getColumnClass in interface TableModel
      Overrides:
      getColumnClass in class AbstractTableModel
    • getValueAt

      public Object getValueAt(int rowIndex, int columnIndex)
    • addRow

      public void addRow(String row, boolean notify)
      Adds a row to the model.
      Parameters:
      row - the data to add
      notify - if true, a notification will be sent to subscribers
    • addRow

      public void addRow(String row, int index, boolean notify)
      Adds a row to the model
      Parameters:
      row - the data to add
      index - the position within the model to add this to
      notify - if true, a notification will be sent to subscribers
    • addRowsToTop

      public void addRowsToTop(List<String> rows)
      Adds a list of rows to the model and fires off a notification.
      Parameters:
      rows -
    • addRowsToBottom

      public void addRowsToBottom(List<String> rows)
      Adds a list of rows to the model and fires off a notification.
      Parameters:
      rows -
    • removeRowsFromBottom

      public void removeRowsFromBottom(int count)
      Removes a set of rows from the bottom of the view.
      Parameters:
      count - the number of rows to remove
    • removeRowsFromTop

      public void removeRowsFromTop(int count)
      Removes a set of rows from the top of the view.
      Parameters:
      count - the number of rows to remove
    • clear

      public void clear()
      Clears all lines from the model and fires off a notification.