Class NonEditableTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- javax.swing.table.DefaultTableModel
-
- net.adoptopenjdk.icedteaweb.client.commandline.NonEditableTableModel
-
- All Implemented Interfaces:
java.io.Serializable,javax.swing.table.TableModel
public class NonEditableTableModel extends javax.swing.table.DefaultTableModelA table model that in effect is aDefaultTableModelexcept for no cell being editable.- Since:
- IcedTea-Web 1.5
- See Also:
DefaultTableModel, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NonEditableTableModel()Constructs 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(java.lang.Object[][] data, java.lang.Object[] columnNames)Constructs aTableModelthat serves only one purpose: make cells of certificate tables not editable.NonEditableTableModel(java.lang.Object[] columnNames, int rowCount)Constructs aTableModelthat serves only one purpose: make cells of certificate tables not editable.NonEditableTableModel(java.util.Vector columnNames, int rowCount)Constructs aTableModelthat serves only one purpose: make cells of certificate tables not editable.NonEditableTableModel(java.util.Vector data, java.util.Vector columnNames)Constructs aTableModelthat serves only one purpose: make cells of certificate tables not editable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisCellEditable(int row, int column)This method always returnsfalseto make the table's cells not editable.-
Methods inherited from class javax.swing.table.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, setValueAt
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Constructor Detail
-
NonEditableTableModel
public NonEditableTableModel()
Constructs aTableModelthat serves only one purpose: make cells of certificate tables not editable.- See Also:
DefaultTableModel()
-
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:
DefaultTableModel(int,int)
-
NonEditableTableModel
public NonEditableTableModel(java.lang.Object[][] data, java.lang.Object[] columnNames)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:
DefaultTableModel(Object[][],Object[])
-
NonEditableTableModel
public NonEditableTableModel(java.lang.Object[] columnNames, int rowCount)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:
DefaultTableModel(Object[],int)
-
NonEditableTableModel
public NonEditableTableModel(java.util.Vector columnNames, int rowCount)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:
DefaultTableModel(Vector,int)
-
NonEditableTableModel
public NonEditableTableModel(java.util.Vector data, java.util.Vector columnNames)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:
DefaultTableModel(Vector,Vector)
-
-
Method Detail
-
isCellEditable
public boolean isCellEditable(int row, int column)This method always returnsfalseto make the table's cells not editable.- Specified by:
isCellEditablein interfacejavax.swing.table.TableModel- Overrides:
isCellEditablein classjavax.swing.table.DefaultTableModel- Parameters:
row- the row whose value to be queriedcolumn- the column whose value to be queried- Returns:
- always
false
-
-