Class MemoryMatchTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
docking.widgets.table.AbstractGTableModel<MemoryMatch>
docking.widgets.table.AbstractSortedTableModel<MemoryMatch>
docking.widgets.table.GDynamicColumnTableModel<MemoryMatch,Program>
docking.widgets.table.threaded.ThreadedTableModel<MemoryMatch,Program>
ghidra.util.table.GhidraProgramTableModel<MemoryMatch>
ghidra.util.table.AddressBasedTableModel<MemoryMatch>
ghidra.features.base.memsearch.gui.MemoryMatchTableModel
- All Implemented Interfaces:
ConfigurableColumnTableModel,DynamicColumnTableModel<MemoryMatch>,RowObjectFilterModel<MemoryMatch>,RowObjectTableModel<MemoryMatch>,SelectionStorage<MemoryMatch>,SortedTableModel,VariableColumnTableModel,ProgramTableModel,Serializable,EventListener,ChangeListener,TableModel
Table model for memory search results.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassNested classes/interfaces inherited from class docking.widgets.table.threaded.ThreadedTableModel
ThreadedTableModel.IncrementalLoadJobListener -
Field Summary
Fields inherited from class ghidra.util.table.GhidraProgramTableModel
programFields inherited from class docking.widgets.table.threaded.ThreadedTableModel
allData, filteredDataFields inherited from class docking.widgets.table.GDynamicColumnTableModel
columnSettings, serviceProvider, tableColumnsFields inherited from class docking.widgets.table.AbstractSortedTableModel
hasEverSortedFields inherited from class docking.widgets.table.AbstractGTableModel
isDisposed, WIDTH_UNDEFINEDFields inherited from class javax.swing.table.AbstractTableModel
listenerListFields inherited from interface docking.widgets.table.RowObjectFilterModel
SUB_FILTERING_DISABLED_PROPERTYFields inherited from interface docking.widgets.table.SortedTableModel
ASCENDING_ORDER, DESCENDING_ORDER -
Method Summary
Modifier and TypeMethodDescriptionprotected TableColumnDescriptor<MemoryMatch> protected voiddoLoad(Accumulator<MemoryMatch> accumulator, TaskMonitor monitor) The basic method that all children must implement.getAddress(int row) Returns the best Address for the given row.getProgramLocation(int modelRow, int modelColumn) Returns a program location corresponding the given row and column.getProgramSelection(int[] rows) Returns a program selection corresponding to the specified row index array.booleanMethods inherited from class ghidra.util.table.GhidraProgramTableModel
dispose, getAddress, getDataSource, getProgram, getProgramForRow, setProgramMethods inherited from class docking.widgets.table.threaded.ThreadedTableModel
addInitialLoadListener, addInitialLoadListener, addObject, addThreadedTableModelListener, backgroundWorkCancelled, cancelAllUpdates, clearData, createAccumulator, createIncrementalLoadJob, createSortComparator, doFilter, fireTableChanged, getAddRemoveStrategy, getAllData, getModelData, getModelIndex, getModelRow, getName, getRowCount, getRowObjects, getTableFilter, getUnfilteredData, getUnfilteredIndexForRowObject, getUnfilteredRowCount, getUnfilteredRowObjectForIndex, getValueAt, getViewIndex, getViewRow, hasFilter, initializeSorting, isBusy, isFiltered, isLoadIncrementally, reFilter, reload, removeObject, removeThreadedTableModelListener, reSort, setIncrementalTaskMonitor, setModelState, setTableFilter, sort, startInitialLoad, updateNow, updateObjectMethods inherited from class docking.widgets.table.GDynamicColumnTableModel
addTableColumn, addTableColumn, addTableColumns, addTableColumns, createSortComparatorForColumn, disposeDynamicColumnData, getColumn, getColumnClass, getColumnCount, getColumnDescription, getColumnDisplayName, getColumnIndex, getColumnIndex, getColumnName, getColumnSettings, getColumnSettingsDefinitions, getColumnValueForRow, getDefaultColumnCount, getHeaderRenderer, getMaxLines, getPreferredColumnWidth, getRenderer, getTableColumnDescriptor, getUniqueIdentifier, isDefaultColumn, isSortable, isVisibleByDefault, loadDiscoveredTableColumns, reloadColumns, removeTableColumn, removeTableColumns, setAllColumnSettings, stateChangedMethods inherited from class docking.widgets.table.AbstractSortedTableModel
addSortListener, cleanupTableSortState, createSortingContext, getIndexForRowObject, getIndexForRowObject, getPendingSortState, getPrimarySortColumnIndex, getRowIndex, getRowObject, getTableSortState, isSorted, isSortPending, notifyModelSorted, setDefaultTableSortState, setTableSortState, sortCompletedMethods inherited from class docking.widgets.table.AbstractGTableModel
getLastSelectedObjects, isDisposed, refresh, setLastSelectedObjectsMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface docking.widgets.table.RowObjectTableModel
fireTableDataChanged, getColumnValueForRow, getRowIndex, getRowObjectMethods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, isCellEditable, removeTableModelListener, setValueAt
-
Method Details
-
createTableColumnDescriptor
- Overrides:
createTableColumnDescriptorin classGhidraProgramTableModel<MemoryMatch>
-
doLoad
protected void doLoad(Accumulator<MemoryMatch> accumulator, TaskMonitor monitor) throws CancelledException Description copied from class:ThreadedTableModelThe basic method that all children must implement. This is where children load their data.- Specified by:
doLoadin classThreadedTableModel<MemoryMatch,Program> - Parameters:
accumulator- the datastructure into which you should incrementally place you table row datamonitor- the task monitor to check for cancellations and to update progress- Throws:
CancelledException- if the task monitor has been cancelled and a call is made tomonitor.checkCancelled();.
-
isSortedOnAddress
public boolean isSortedOnAddress() -
getProgramLocation
Description copied from interface:ProgramTableModelReturns 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:
getProgramLocationin interfaceProgramTableModel- Overrides:
getProgramLocationin classGhidraProgramTableModel<MemoryMatch>- Parameters:
modelRow- the rowmodelColumn- the column in the model's index- Returns:
- a program location corresponding the given row and column
-
getAddress
Description copied from class:GhidraProgramTableModelReturns the best Address for the given row.Implementation Note: this class will only return an Address if this model's row type is Address. Clients that know how to get an Address for a given row should override this method.
- Overrides:
getAddressin classGhidraProgramTableModel<MemoryMatch>- Parameters:
row- the row- Returns:
- the Address or null
-
getProgramSelection
Description copied from interface:ProgramTableModelReturns a program selection corresponding to the specified row index array. This array will contain the currently selected rows.- Specified by:
getProgramSelectionin interfaceProgramTableModel- Overrides:
getProgramSelectionin classGhidraProgramTableModel<MemoryMatch>- Parameters:
rows- the currently selected rows.- Returns:
- a program selection
-