Class EdalTableModel

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

    public class EdalTableModel
    extends javax.swing.table.DefaultTableModel
    The EDALTableModel can be set up to display any data model which implements the TableModel interface with a couple of lines of code:
            EDALTableModel myData = new EDALTableModel(data,columnNames); 
            JTable table = new JTable(myData);
      
    we implement this class only because we want to make the table is readonly, so the isCellEditable function return false
    See Also:
    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
      EdalTableModel​(java.lang.Object[][] data, java.lang.Object[] columnNames)  
    • Method Summary

      Modifier and Type Method Description
      boolean isCellEditable​(int rowIndex, int columnIndex)  
      • 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

      • EdalTableModel

        public EdalTableModel​(java.lang.Object[][] data,
                              java.lang.Object[] columnNames)
    • Method Detail

      • isCellEditable

        public boolean isCellEditable​(int rowIndex,
                                      int columnIndex)
        Specified by:
        isCellEditable in interface javax.swing.table.TableModel
        Overrides:
        isCellEditable in class javax.swing.table.DefaultTableModel