Class ObjectTableModel<T>
java.lang.Object
javax.swing.table.AbstractTableModel
net.thevpc.netbeans.launcher.ui.utils.ObjectTableModel<T>
- All Implemented Interfaces:
Serializable, TableModel
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic class -
Field Summary
FieldsFields inherited from class AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclear()intgetColumnName(int column) getObject(int row) final intgetValueAt(int row, int column) voidbooleanisCellEditable(int row, int column) voidmoveRow(int start, int end, int to) voidnewDataAvailable(TableModelEvent event) voidvoidremoveRow(int row) voidrowsRemoved(TableModelEvent event) voidsetColumnIdentifiers(ObjectTableModel.Columns<T> columnIdentifiers) voidsetDataVector(List<T> dataVector) voidsetNumRows(int rowCount) voidsetRowCount(int rowCount) voidsetValueAt(Object aValue, int row, int column) Methods inherited from class AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
dataVector
-
columnIdentifiers
-
-
Constructor Details
-
ObjectTableModel
-
-
Method Details
-
clear
public void clear() -
getDataVector
-
setDataVector
-
newDataAvailable
-
newRowsAdded
-
rowsRemoved
-
setNumRows
public void setNumRows(int rowCount) -
setRowCount
public void setRowCount(int rowCount) -
addRow
-
insertRow
-
moveRow
public void moveRow(int start, int end, int to) -
removeRow
public void removeRow(int row) -
setColumnIdentifiers
-
getColumnIdentifiers
-
getRowCount
public final int getRowCount()- Specified by:
getRowCountin interfaceTableModel
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCountin interfaceTableModel
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int row, int column) - Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
getValueAt
- Specified by:
getValueAtin interfaceTableModel
-
getObject
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-