Class FVTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
ghidra.framework.main.logviewer.ui.FVTableModel
- All Implemented Interfaces:
Serializable
,TableModel
The model that backs the
FVTable
table. This model defines 4 columns: date,
time, log level, and the message.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a row to the model.void
Adds a row to the modelvoid
addRowsToBottom
(List<String> rows) Adds a list of rows to the model and fires off a notification.void
addRowsToTop
(List<String> rows) Adds a list of rows to the model and fires off a notification.void
clear()
Clears all lines from the model and fires off a notification.Class
<?> getColumnClass
(int columnIndex) int
getColumnName
(int column) int
getValueAt
(int rowIndex, int columnIndex) void
removeRowsFromBottom
(int count) Removes a set of rows from the bottom of the view.void
removeRowsFromTop
(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 Details
-
DATE_COL
public static final int DATE_COL- See Also:
-
TIME_COL
public static final int TIME_COL- See Also:
-
LEVEL_COL
public static final int LEVEL_COL- See Also:
-
MESSAGE_COL
public static final int MESSAGE_COL- See Also:
-
-
Constructor Details
-
FVTableModel
public FVTableModel()
-
-
Method Details
-
getRowCount
public int getRowCount() -
getColumnCount
public int getColumnCount() -
getColumnName
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
getColumnClass
- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
-
getValueAt
-
addRow
Adds a row to the model.- Parameters:
row
- the data to addnotify
- if true, a notification will be sent to subscribers
-
addRow
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
Adds a list of rows to the model and fires off a notification.- Parameters:
rows
-
-
addRowsToBottom
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.
-