Package ghidra.app.plugin.debug.dbtable
Class DbSmallTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- docking.widgets.table.AbstractGTableModel<T>
-
- docking.widgets.table.AbstractSortedTableModel<DBRecord>
-
- ghidra.app.plugin.debug.dbtable.DbSmallTableModel
-
- All Implemented Interfaces:
RowObjectTableModel<DBRecord>,SelectionStorage<DBRecord>,SortedTableModel,java.io.Serializable,javax.swing.table.TableModel
public class DbSmallTableModel extends AbstractSortedTableModel<DBRecord>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class docking.widgets.table.AbstractSortedTableModel
hasEverSorted
-
Fields inherited from class docking.widgets.table.AbstractGTableModel
WIDTH_UNDEFINED
-
Fields inherited from interface docking.widgets.table.SortedTableModel
ASCENDING_ORDER, DESCENDING_ORDER
-
-
Constructor Summary
Constructors Constructor Description DbSmallTableModel(Table table)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>getColumnClass(int columnIndex)intgetColumnCount()java.lang.StringgetColumnName(int columnIndex)java.lang.ObjectgetColumnValueForRow(DBRecord rec, int columnIndex)Implementors are expected to return a value at the given column index for the specified row object.java.util.List<DBRecord>getModelData()Implementors should return the current data of the model.java.lang.StringgetName()Returns the name of this modelintgetRowCount()booleanisCellEditable(int rowIndex, int columnIndex)booleanisSortable(int columnIndex)Returns true if the specified columnIndex is sortable.-
Methods inherited from class docking.widgets.table.AbstractSortedTableModel
addSortListener, cleanupTableSortState, createSortComparator, createSortingContext, fireTableChanged, getIndexForRowObject, getIndexForRowObject, getPendingSortState, getPrimarySortColumnIndex, getRowIndex, getRowObject, getTableSortState, getValueAt, initializeSorting, isSorted, isSortPending, notifyModelSorted, reSort, setDefaultTableSortState, setTableSortState, sort, sortCompleted
-
Methods inherited from class docking.widgets.table.AbstractGTableModel
dispose, getLastSelectedObjects, getPreferredColumnWidth, refresh, setLastSelectedObjects
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface docking.widgets.table.RowObjectTableModel
fireTableDataChanged
-
-
-
-
Constructor Detail
-
DbSmallTableModel
public DbSmallTableModel(Table table)
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:RowObjectTableModelReturns the name of this model- Returns:
- the name of this model
-
getColumnClass
public java.lang.Class<?> getColumnClass(int columnIndex)
- Specified by:
getColumnClassin interfacejavax.swing.table.TableModel- Overrides:
getColumnClassin classjavax.swing.table.AbstractTableModel
-
getColumnCount
public int getColumnCount()
-
getColumnName
public java.lang.String getColumnName(int columnIndex)
- Specified by:
getColumnNamein interfacejavax.swing.table.TableModel- Overrides:
getColumnNamein classjavax.swing.table.AbstractTableModel
-
getRowCount
public int getRowCount()
- Specified by:
getRowCountin interfacejavax.swing.table.TableModel- Overrides:
getRowCountin classAbstractGTableModel<DBRecord>
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex)- Specified by:
isCellEditablein interfacejavax.swing.table.TableModel- Overrides:
isCellEditablein classjavax.swing.table.AbstractTableModel
-
getColumnValueForRow
public java.lang.Object getColumnValueForRow(DBRecord rec, int columnIndex)
Description copied from interface:RowObjectTableModelImplementors are expected to return a value at the given column index for the specified row object. This is essentially a more specific version of theTableModel.getValueAt(int, int)that allows this class's comparator objects to work.- Parameters:
rec- The object that represents a given row.columnIndex- The column index for which a value is requested.- Returns:
- a value at the given column index for the specified row object.
-
getModelData
public java.util.List<DBRecord> getModelData()
Description copied from interface:RowObjectTableModelImplementors should return the current data of the model. For models that support filtering, this will be the filtered version of the data. Furthermore, the data should be the underlying data and not a copy, as this method will potentially sort the given data.For those subclasses using an array, you may use the
Arraysclass to create a list backed by the array (Arrays.asList(Object...)).- Returns:
- the model data.
-
isSortable
public boolean isSortable(int columnIndex)
Description copied from interface:SortedTableModelReturns true if the specified columnIndex is sortable.- Parameters:
columnIndex- the column index- Returns:
- true if the specified columnIndex is sortable
-
-