Class ListFrame.AssignmentTableModel

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<?> getColumnClass​(int c)  
      int getColumnCount()  
      java.lang.String getColumnName​(int c)  
      int getRowCount()  
      java.lang.Object getValueAt​(int r, int c)  
      boolean isCellEditable​(int r, int c)  
      protected void printColumns​(HardcopyWriter w, java.lang.String[] columnStrings, int[] columnSize)  
      void printTable​(HardcopyWriter w, int[] colWidth)
      Print or print preview the assignment table.
      void setValueAt​(java.lang.Object type, int r, int c)  
      • Methods inherited from class javax.swing.table.AbstractTableModel

        addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
      • Methods inherited from class java.lang.Object

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

      • getColumnName

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

        public java.lang.Class<?> getColumnClass​(int c)
        Specified by:
        getColumnClass in interface javax.swing.table.TableModel
        Overrides:
        getColumnClass in class javax.swing.table.AbstractTableModel
      • isCellEditable

        public boolean isCellEditable​(int r,
                                      int c)
        Specified by:
        isCellEditable in interface javax.swing.table.TableModel
        Overrides:
        isCellEditable in class javax.swing.table.AbstractTableModel
      • getValueAt

        public java.lang.Object getValueAt​(int r,
                                           int c)
      • setValueAt

        public void setValueAt​(java.lang.Object type,
                               int r,
                               int c)
        Specified by:
        setValueAt in interface javax.swing.table.TableModel
        Overrides:
        setValueAt in class javax.swing.table.AbstractTableModel
      • printTable

        public void printTable​(HardcopyWriter w,
                               int[] colWidth)
        Print or print preview the assignment table. Printed in proportionately sized columns across the page with headings and vertical lines between each column. Data is word wrapped within a column. Can only handle 4 columns of data as strings. Adapted from routines in BeanTableDataModel.java by Bob Jacobsen and Dennis Miller
        Parameters:
        w - hard copy writer instance.
        colWidth - column width array.