Class TableModelBase<T extends TableColumnInfo>
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- org.apache.lucene.luke.app.desktop.components.TableModelBase<T>
-
- All Implemented Interfaces:
Serializable,TableModel
public abstract class TableModelBase<T extends TableColumnInfo> extends AbstractTableModel
Base table model that stores table's meta data and content. This also provides some default implementation of theTableModelinterface.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Object[][]data-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTableModelBase()protectedTableModelBase(int rows)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract T[]columnInfos()Class<?>getColumnClass(int colIndex)intgetColumnCount()StringgetColumnName(int colIndex)intgetRowCount()ObjectgetValueAt(int rowIndex, int columnIndex)-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
-
-
-
Field Detail
-
data
protected final Object[][] data
-
-
Method Detail
-
columnInfos
protected abstract T[] columnInfos()
-
getRowCount
public int getRowCount()
-
getColumnCount
public int getColumnCount()
-
getColumnName
public String getColumnName(int colIndex)
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getColumnClass
public Class<?> getColumnClass(int colIndex)
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
getValueAt
public Object getValueAt(int rowIndex, int columnIndex)
-
-