Package adams.gui.selection
Class AbstractTableBasedSelectionPanel.AbstractSelectionTableModel<T>
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- adams.gui.core.AbstractBaseTableModel
-
- adams.gui.selection.AbstractTableBasedSelectionPanel.AbstractSelectionTableModel<T>
-
- Type Parameters:
T- the type of items to display
- All Implemented Interfaces:
LoggingLevelHandler,LoggingSupporter,SpreadSheetSupporter,CustomSearchTableModel,Serializable,TableModel
- Direct Known Subclasses:
AbstractManagementTableModel,FieldCacheTableModel,SelectEmailAddressPanel.TableModel
- Enclosing class:
- AbstractTableBasedSelectionPanel<T>
public abstract static class AbstractTableBasedSelectionPanel.AbstractSelectionTableModel<T> extends AbstractBaseTableModel implements CustomSearchTableModel
A simple table model for displaying the data.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.gui.core.AbstractBaseTableModel
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description AbstractSelectionTableModel()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract TgetItemAt(int row)Returns the item at the specified position.abstract intindexOf(T item)Returns the index of the given (visible) item, -1 if not found.-
Methods inherited from class adams.gui.core.AbstractBaseTableModel
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, setLoggingLevel, toSpreadSheet, toString
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.gui.core.CustomSearchTableModel
isSearchMatch
-
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
-
-
-
-
Method Detail
-
getItemAt
public abstract T getItemAt(int row)
Returns the item at the specified position.- Parameters:
row- the (actual, not visible) position of the item- Returns:
- the item at the position, null if not valid index
-
indexOf
public abstract int indexOf(T item)
Returns the index of the given (visible) item, -1 if not found.- Parameters:
item- the item to look for- Returns:
- the index, -1 if not found
-
-