Class NonEditableTableModel

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.table.TableModel

    public class NonEditableTableModel
    extends javax.swing.table.DefaultTableModel
    A table model that in effect is a DefaultTableModel except for no cell being editable.
    Since:
    IcedTea-Web 1.5
    See Also:
    DefaultTableModel, Serialized Form
    • Field Summary

      • Fields inherited from class javax.swing.table.DefaultTableModel

        columnIdentifiers, dataVector
      • Fields inherited from class javax.swing.table.AbstractTableModel

        listenerList
    • Constructor Summary

      Constructors 
      Constructor Description
      NonEditableTableModel()
      Constructs a TableModel that serves only one purpose: make cells of certificate tables not editable.
      NonEditableTableModel​(int rowCount, int columnCount)
      Constructs a TableModel that serves only one purpose: make cells of certificate tables not editable.
      NonEditableTableModel​(java.lang.Object[][] data, java.lang.Object[] columnNames)
      Constructs a TableModel that serves only one purpose: make cells of certificate tables not editable.
      NonEditableTableModel​(java.lang.Object[] columnNames, int rowCount)
      Constructs a TableModel that serves only one purpose: make cells of certificate tables not editable.
      NonEditableTableModel​(java.util.Vector columnNames, int rowCount)
      Constructs a TableModel that serves only one purpose: make cells of certificate tables not editable.
      NonEditableTableModel​(java.util.Vector data, java.util.Vector columnNames)
      Constructs a TableModel that serves only one purpose: make cells of certificate tables not editable.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isCellEditable​(int row, int column)
      This method always returns false to 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NonEditableTableModel

        public NonEditableTableModel()
        Constructs a TableModel that serves only one purpose: make cells of certificate tables not editable.
        See Also:
        DefaultTableModel()
      • 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:
        DefaultTableModel(int,int)
      • NonEditableTableModel

        public NonEditableTableModel​(java.lang.Object[][] data,
                                     java.lang.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:
        DefaultTableModel(Object[][],Object[])
      • NonEditableTableModel

        public NonEditableTableModel​(java.lang.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:
        DefaultTableModel(Object[],int)
      • NonEditableTableModel

        public NonEditableTableModel​(java.util.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:
        DefaultTableModel(Vector,int)
      • NonEditableTableModel

        public NonEditableTableModel​(java.util.Vector data,
                                     java.util.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:
        DefaultTableModel(Vector,Vector)
    • Method Detail

      • 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 javax.swing.table.TableModel
        Overrides:
        isCellEditable in class javax.swing.table.DefaultTableModel
        Parameters:
        row - the row whose value to be queried
        column - the column whose value to be queried
        Returns:
        always false