Class NonEditableTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
javax.swing.table.DefaultTableModel
net.adoptopenjdk.icedteaweb.client.commandline.NonEditableTableModel
- All Implemented Interfaces:
Serializable, TableModel
A table model that in effect is a
DefaultTableModel except for no
cell being editable.- Since:
- IcedTea-Web 1.5
- See Also:
-
Field Summary
Fields inherited from class DefaultTableModel
columnIdentifiers, dataVectorFields inherited from class AbstractTableModel
listenerList -
Constructor Summary
ConstructorsConstructorDescriptionConstructs aTableModelthat serves only one purpose: make cells of certificate tables not editable.NonEditableTableModel(int rowCount, int columnCount) Constructs aTableModelthat serves only one purpose: make cells of certificate tables not editable.NonEditableTableModel(Object[][] data, Object[] columnNames) Constructs aTableModelthat serves only one purpose: make cells of certificate tables not editable.NonEditableTableModel(Object[] columnNames, int rowCount) Constructs aTableModelthat serves only one purpose: make cells of certificate tables not editable.NonEditableTableModel(Vector columnNames, int rowCount) Constructs aTableModelthat serves only one purpose: make cells of certificate tables not editable.NonEditableTableModel(Vector data, Vector columnNames) Constructs aTableModelthat serves only one purpose: make cells of certificate tables not editable. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisCellEditable(int row, int column) This method always returnsfalseto make the table's cells not editable.Methods inherited from class DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAtMethods inherited from class AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
-
Constructor Details
-
NonEditableTableModel
public NonEditableTableModel()Constructs aTableModelthat serves only one purpose: make cells of certificate tables not editable.- See Also:
-
NonEditableTableModel
public NonEditableTableModel(int rowCount, int columnCount) Constructs aTableModelthat serves only one purpose: make cells of certificate tables not editable.- Parameters:
rowCount- the number of rows the table holdscolumnCount- the number of columns the table holds- See Also:
-
NonEditableTableModel
Constructs aTableModelthat serves only one purpose: make cells of certificate tables not editable.- Parameters:
data- the data of the tablecolumnNames- the names of the columns- See Also:
-
NonEditableTableModel
Constructs aTableModelthat serves only one purpose: make cells of certificate tables not editable.- Parameters:
columnNames-arraycontaining the names of the new columns; if this isnullthen the model has no columnsrowCount- the number of rows the table holds- See Also:
-
NonEditableTableModel
Constructs aTableModelthat serves only one purpose: make cells of certificate tables not editable.- Parameters:
columnNames-vectorcontaining the names of the new columns; if this isnullthen the model has no columnsrowCount- the number of rows the table holds- See Also:
-
NonEditableTableModel
Constructs aTableModelthat serves only one purpose: make cells of certificate tables not editable.- Parameters:
data- the data of the table, aVectorofVectors ofObjectvaluescolumnNames-vectorcontaining the names of the new columns- See Also:
-
-
Method Details
-
isCellEditable
public boolean isCellEditable(int row, int column) This method always returnsfalseto make the table's cells not editable.- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classDefaultTableModel- Parameters:
row- the row whose value to be queriedcolumn- the column whose value to be queried- Returns:
- always
false
-