Class DCCppTableModel

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

    public abstract class DCCppTableModel
    extends javax.swing.table.AbstractTableModel
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int _lastDataCol  
      protected java.lang.String[] columnNames  
      protected java.util.List<java.util.List<java.lang.Object>> deletedData  
      protected java.util.List<java.util.List<java.lang.Object>> rowData  
      • Fields inherited from class javax.swing.table.AbstractTableModel

        listenerList
    • Constructor Summary

      Constructors 
      Constructor Description
      DCCppTableModel​(int dc, int nc, int delc, int numc)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int findRow​(java.util.List<java.lang.Object> v)  
      int getColumnCount()  
      java.lang.String getColumnName​(int col)  
      int getDeleteColumn()  
      int getRowCount()  
      java.util.List<java.util.List<java.lang.Object>> getRowData()  
      java.lang.Object getValueAt​(int row, int col)  
      void insertData​(java.util.List<java.lang.Object> v, boolean isnew)  
      boolean isCellEditable​(int row, int col)  
      boolean isDirty()  
      boolean isDirtyRow​(int row)  
      boolean isMarkedForDelete​(int row)  
      boolean isNewRow​(int row)  
      void markForDelete​(int row, boolean mark)  
      void removeRow​(int row)  
      void setDirtyRow​(int row, boolean d)  
      void setNewRow​(int row, boolean n)  
      void setValueAt​(java.lang.Object value, int row, int col)  
      • 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
    • Field Detail

      • rowData

        protected java.util.List<java.util.List<java.lang.Object>> rowData
      • deletedData

        protected java.util.List<java.util.List<java.lang.Object>> deletedData
      • columnNames

        protected java.lang.String[] columnNames
    • Constructor Detail

      • DCCppTableModel

        public DCCppTableModel​(int dc,
                               int nc,
                               int delc,
                               int numc)
    • Method Detail

      • isDirty

        public boolean isDirty()
      • isNewRow

        public boolean isNewRow​(int row)
      • setNewRow

        public void setNewRow​(int row,
                              boolean n)
      • isDirtyRow

        public boolean isDirtyRow​(int row)
      • setDirtyRow

        public void setDirtyRow​(int row,
                                boolean d)
      • removeRow

        public void removeRow​(int row)
      • markForDelete

        public void markForDelete​(int row,
                                  boolean mark)
      • findRow

        public int findRow​(java.util.List<java.lang.Object> v)
      • insertData

        public void insertData​(java.util.List<java.lang.Object> v,
                               boolean isnew)
      • setValueAt

        public void setValueAt​(java.lang.Object value,
                               int row,
                               int col)
        Specified by:
        setValueAt in interface javax.swing.table.TableModel
        Overrides:
        setValueAt in class javax.swing.table.AbstractTableModel
      • getRowData

        public java.util.List<java.util.List<java.lang.Object>> getRowData()
      • getColumnName

        public java.lang.String getColumnName​(int col)
        Specified by:
        getColumnName in interface javax.swing.table.TableModel
        Overrides:
        getColumnName in class javax.swing.table.AbstractTableModel
      • getValueAt

        public java.lang.Object getValueAt​(int row,
                                           int col)
      • isCellEditable

        public boolean isCellEditable​(int row,
                                      int col)
        Specified by:
        isCellEditable in interface javax.swing.table.TableModel
        Overrides:
        isCellEditable in class javax.swing.table.AbstractTableModel