Class FVTableModel
- java.lang.Object
 - 
- javax.swing.table.AbstractTableModel
 - 
- ghidra.framework.main.logviewer.ui.FVTableModel
 
 
 
- 
- All Implemented Interfaces:
 java.io.Serializable,javax.swing.table.TableModel
public class FVTableModel extends javax.swing.table.AbstractTableModelThe model that backs theFVTabletable. This model defines 4 columns: date, time, log level, and the message.- See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static intDATE_COLstatic intLEVEL_COLstatic intMESSAGE_COLstatic intTIME_COL 
- 
Constructor Summary
Constructors Constructor Description FVTableModel() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRow(java.lang.String row, boolean notify)Adds a row to the model.voidaddRow(java.lang.String row, int index, boolean notify)Adds a row to the modelvoidaddRowsToBottom(java.util.List<java.lang.String> rows)Adds a list of rows to the model and fires off a notification.voidaddRowsToTop(java.util.List<java.lang.String> rows)Adds a list of rows to the model and fires off a notification.voidclear()Clears all lines from the model and fires off a notification.java.lang.Class<?>getColumnClass(int columnIndex)intgetColumnCount()java.lang.StringgetColumnName(int column)intgetRowCount()java.lang.ObjectgetValueAt(int rowIndex, int columnIndex)voidremoveRowsFromBottom(int count)Removes a set of rows from the bottom of the view.voidremoveRowsFromTop(int count)Removes a set of rows from the top of the view.- 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt 
 - 
 
 - 
 
- 
- 
Field Detail
- 
DATE_COL
public static final int DATE_COL
- See Also:
 - Constant Field Values
 
 
- 
TIME_COL
public static final int TIME_COL
- See Also:
 - Constant Field Values
 
 
- 
LEVEL_COL
public static final int LEVEL_COL
- See Also:
 - Constant Field Values
 
 
- 
MESSAGE_COL
public static final int MESSAGE_COL
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getRowCount
public int getRowCount()
 
- 
getColumnCount
public int getColumnCount()
 
- 
getColumnName
public java.lang.String getColumnName(int column)
- Specified by:
 getColumnNamein interfacejavax.swing.table.TableModel- Overrides:
 getColumnNamein classjavax.swing.table.AbstractTableModel
 
- 
getColumnClass
public java.lang.Class<?> getColumnClass(int columnIndex)
- Specified by:
 getColumnClassin interfacejavax.swing.table.TableModel- Overrides:
 getColumnClassin classjavax.swing.table.AbstractTableModel
 
- 
getValueAt
public java.lang.Object getValueAt(int rowIndex, int columnIndex) 
- 
addRow
public void addRow(java.lang.String row, boolean notify)Adds a row to the model.- Parameters:
 row- the data to addnotify- if true, a notification will be sent to subscribers
 
- 
addRow
public void addRow(java.lang.String row, int index, boolean notify)Adds a row to the model- Parameters:
 row- the data to addindex- the position within the model to add this tonotify- if true, a notification will be sent to subscribers
 
- 
addRowsToTop
public void addRowsToTop(java.util.List<java.lang.String> rows)
Adds a list of rows to the model and fires off a notification.- Parameters:
 rows-
 
- 
addRowsToBottom
public void addRowsToBottom(java.util.List<java.lang.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. 
 - 
 
 -