Class LanguageSortedTableModel

    • Constructor Detail

      • LanguageSortedTableModel

        public LanguageSortedTableModel()
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: RowObjectTableModel
        Returns the name of this model
        Returns:
        the name of this model
      • getColumnCount

        public int getColumnCount()
      • getColumnName

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

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

        public boolean isSortable​(int columnIndex)
        Description copied from interface: SortedTableModel
        Returns true if the specified columnIndex is sortable.
        Parameters:
        columnIndex - the column index
        Returns:
        true if the specified columnIndex is sortable
      • getModelData

        public java.util.List<LanguageCompilerSpecPair> getModelData()
        Description copied from interface: RowObjectTableModel
        Implementors should return the current data of the model. For models that support filtering, this will be the filtered version of the data. Furthermore, the data should be the underlying data and not a copy, as this method will potentially sort the given data.

        For those subclasses using an array, you may use the Arrays class to create a list backed by the array (Arrays.asList(Object...)).

        Returns:
        the model data.
      • getColumnValueForRow

        public java.lang.Object getColumnValueForRow​(LanguageCompilerSpecPair pair,
                                                     int column)
        Description copied from interface: RowObjectTableModel
        Implementors are expected to return a value at the given column index for the specified row object. This is essentially a more specific version of the TableModel.getValueAt(int, int) that allows this class's comparator objects to work.
        Parameters:
        pair - The object that represents a given row.
        column - The column index for which a value is requested.
        Returns:
        a value at the given column index for the specified row object.