Class FileWrapperTableModel

    • Field Detail

      • m_ShowParentDirs

        protected boolean m_ShowParentDirs
        whether to show parent dirs.
      • m_DateFormat

        protected DateFormat m_DateFormat
        the date formatter.
    • Constructor Detail

      • FileWrapperTableModel

        public FileWrapperTableModel​(List<FileObject> files,
                                     boolean showParentDirs)
        Initializes the model.
        Parameters:
        files - the files
        showParentDirs - true if to show parent dirs
    • Method Detail

      • getShowParentDirs

        public boolean getShowParentDirs()
        Returns whether to show the parent directories.
        Returns:
        true if to show
      • getRowCount

        public int getRowCount()
        Returns the number of files/rows.
        Returns:
        the number of rows
      • getColumnCount

        public int getColumnCount()
        Returns the number of columns.
        Returns:
        the number of columns
      • getColumnClass

        public Class<?> getColumnClass​(int columnIndex)
        Returns the class of the column.
        Specified by:
        getColumnClass in interface TableModel
        Overrides:
        getColumnClass in class AbstractTableModel
        Parameters:
        columnIndex - the index of the column
        Returns:
        the class, null if not available
      • getValueAt

        public Object getValueAt​(int rowIndex,
                                 int columnIndex)
        Returns the value at the specified location.
        Parameters:
        rowIndex - the row
        columnIndex - the column
        Returns:
        the value, null if not available