Package ghidra.plugin.importer
Class LanguageSortedTableModel
- java.lang.Object
- 
- javax.swing.table.AbstractTableModel
- 
- docking.widgets.table.AbstractGTableModel<T>
- 
- docking.widgets.table.AbstractSortedTableModel<LanguageCompilerSpecPair>
- 
- ghidra.plugin.importer.LanguageSortedTableModel
 
 
 
 
- 
- All Implemented Interfaces:
- RowObjectTableModel<LanguageCompilerSpecPair>,- SelectionStorage<LanguageCompilerSpecPair>,- SortedTableModel,- java.io.Serializable,- javax.swing.table.TableModel
 
 public class LanguageSortedTableModel extends AbstractSortedTableModel<LanguageCompilerSpecPair> - See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class docking.widgets.table.AbstractSortedTableModelhasEverSorted
 - 
Fields inherited from class docking.widgets.table.AbstractGTableModelWIDTH_UNDEFINED
 - 
Fields inherited from interface docking.widgets.table.SortedTableModelASCENDING_ORDER, DESCENDING_ORDER
 
- 
 - 
Constructor SummaryConstructors Constructor Description LanguageSortedTableModel()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>getColumnClass(int columnIndex)intgetColumnCount()java.lang.StringgetColumnName(int column)java.lang.ObjectgetColumnValueForRow(LanguageCompilerSpecPair pair, int column)Implementors are expected to return a value at the given column index for the specified row object.intgetFirstLcsPairIndex(LanguageCompilerSpecPair toFind)LanguageCompilerSpecPairgetLcsPairAtRow(int selectedRow)java.util.List<LanguageCompilerSpecPair>getModelData()Implementors should return the current data of the model.java.lang.StringgetName()Returns the name of this modelbooleanisSortable(int columnIndex)Returns true if the specified columnIndex is sortable.- 
Methods inherited from class docking.widgets.table.AbstractSortedTableModeladdSortListener, 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.AbstractGTableModeldispose, getLastSelectedObjects, getPreferredColumnWidth, getRowCount, refresh, setLastSelectedObjects
 - 
Methods inherited from class javax.swing.table.AbstractTableModeladdTableModelListener, findColumn, fireTableCellUpdated, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface docking.widgets.table.RowObjectTableModelfireTableDataChanged
 
- 
 
- 
- 
- 
Method Detail- 
getNamepublic java.lang.String getName() Description copied from interface:RowObjectTableModelReturns the name of this model- Returns:
- the name of this model
 
 - 
getColumnCountpublic int getColumnCount() 
 - 
getColumnNamepublic java.lang.String getColumnName(int column) - Specified by:
- getColumnNamein interface- javax.swing.table.TableModel
- Overrides:
- getColumnNamein class- javax.swing.table.AbstractTableModel
 
 - 
getColumnClasspublic java.lang.Class<?> getColumnClass(int columnIndex) - Specified by:
- getColumnClassin interface- javax.swing.table.TableModel
- Overrides:
- getColumnClassin class- javax.swing.table.AbstractTableModel
 
 - 
isSortablepublic 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
 
 - 
getModelDatapublic java.util.List<LanguageCompilerSpecPair> 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 Arrays class to create a list backed by the array ( Arrays.asList(Object...)).- Returns:
- the model data.
 
 - 
getColumnValueForRowpublic java.lang.Object getColumnValueForRow(LanguageCompilerSpecPair pair, int column) 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:
- pair- The object that represents a given row.
- column- The column index for which a value is requested.
- Returns:
- a value at the given column index for the specified row object.
 
 - 
getLcsPairAtRowpublic LanguageCompilerSpecPair getLcsPairAtRow(int selectedRow) 
 - 
getFirstLcsPairIndexpublic int getFirstLcsPairIndex(LanguageCompilerSpecPair toFind) 
 
- 
 
-