Class FileSetTableModel

  • All Implemented Interfaces:
    java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, javax.swing.table.TableModel

    public class FileSetTableModel
    extends javax.swing.table.AbstractTableModel
    implements java.beans.PropertyChangeListener
    The table model for the file-set table.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String[] columnTitles  
      protected java.util.Set<FileSet> fileSets  
      • Fields inherited from class javax.swing.table.AbstractTableModel

        listenerList
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void clearFileSets()  
      java.lang.Class getColumnClass​(int col)  
      int getColumnCount()  
      java.lang.String getColumnName​(int col)  
      protected javax.swing.ImageIcon getImageIcon​(int row)  
      FileSet getRow​(int row)  
      int getRowCount()  
      java.lang.Integer getRowForFileSet​(FileSet fileSet)  
      java.lang.Object getValueAt​(int row, int col)  
      void propertyChange​(java.beans.PropertyChangeEvent propertyChangeEvent)  
      void setFileSetMap​(FileSetMap fileSetMap)  
      • Methods inherited from class javax.swing.table.AbstractTableModel

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

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • columnTitles

        protected static final java.lang.String[] columnTitles
      • fileSets

        protected java.util.Set<FileSet> fileSets
    • Constructor Detail

      • FileSetTableModel

        public FileSetTableModel​(FileSetMap fileSetMap)
    • Method Detail

      • setFileSetMap

        public void setFileSetMap​(FileSetMap fileSetMap)
      • getRowCount

        public int getRowCount()
        Specified by:
        getRowCount in interface javax.swing.table.TableModel
      • getColumnCount

        public int getColumnCount()
        Specified by:
        getColumnCount in interface javax.swing.table.TableModel
      • 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
      • getColumnClass

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

        public java.lang.Object getValueAt​(int row,
                                           int col)
        Specified by:
        getValueAt in interface javax.swing.table.TableModel
      • getRowForFileSet

        public java.lang.Integer getRowForFileSet​(FileSet fileSet)
      • getRow

        public FileSet getRow​(int row)
      • getImageIcon

        protected javax.swing.ImageIcon getImageIcon​(int row)
      • propertyChange

        public void propertyChange​(java.beans.PropertyChangeEvent propertyChangeEvent)
        Specified by:
        propertyChange in interface java.beans.PropertyChangeListener
      • clearFileSets

        protected void clearFileSets()