Class NonEditableTableModel

java.lang.Object
javax.swing.table.AbstractTableModel
javax.swing.table.DefaultTableModel
net.adoptopenjdk.icedteaweb.client.commandline.NonEditableTableModel
All Implemented Interfaces:
Serializable, TableModel

public class NonEditableTableModel extends DefaultTableModel
A table model that in effect is a DefaultTableModel except for no cell being editable.
Since:
IcedTea-Web 1.5
See Also:
  • Constructor Details

    • NonEditableTableModel

      public NonEditableTableModel()
      Constructs a TableModel that serves only one purpose: make cells of certificate tables not editable.
      See Also:
    • NonEditableTableModel

      public NonEditableTableModel(int rowCount, int columnCount)
      Constructs a TableModel that serves only one purpose: make cells of certificate tables not editable.
      Parameters:
      rowCount - the number of rows the table holds
      columnCount - the number of columns the table holds
      See Also:
    • NonEditableTableModel

      public NonEditableTableModel(Object[][] data, Object[] columnNames)
      Constructs a TableModel that serves only one purpose: make cells of certificate tables not editable.
      Parameters:
      data - the data of the table
      columnNames - the names of the columns
      See Also:
    • NonEditableTableModel

      public NonEditableTableModel(Object[] columnNames, int rowCount)
      Constructs a TableModel that serves only one purpose: make cells of certificate tables not editable.
      Parameters:
      columnNames - array containing the names of the new columns; if this is null then the model has no columns
      rowCount - the number of rows the table holds
      See Also:
    • NonEditableTableModel

      public NonEditableTableModel(Vector columnNames, int rowCount)
      Constructs a TableModel that serves only one purpose: make cells of certificate tables not editable.
      Parameters:
      columnNames - vector containing the names of the new columns; if this is null then the model has no columns
      rowCount - the number of rows the table holds
      See Also:
    • NonEditableTableModel

      public NonEditableTableModel(Vector data, Vector columnNames)
      Constructs a TableModel that serves only one purpose: make cells of certificate tables not editable.
      Parameters:
      data - the data of the table, a Vector of Vectors of Object values
      columnNames - vector containing the names of the new columns
      See Also:
  • Method Details

    • isCellEditable

      public boolean isCellEditable(int row, int column)
      This method always returns false to make the table's cells not editable.
      Specified by:
      isCellEditable in interface TableModel
      Overrides:
      isCellEditable in class DefaultTableModel
      Parameters:
      row - the row whose value to be queried
      column - the column whose value to be queried
      Returns:
      always false