Class DockerImagesPanel.TableModel

  • All Implemented Interfaces:
    adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.data.spreadsheet.SpreadSheetSupporter, adams.gui.core.ClearableModel, adams.gui.core.CustomSearchTableModel, Serializable, TableModel
    Enclosing class:
    DockerImagesPanel

    public static class DockerImagesPanel.TableModel
    extends adams.gui.tools.AbstractManagementTableModel<DockerImage>
    See Also:
    Serialized Form
    • Constructor Detail

      • TableModel

        public TableModel()
        default constructor.
      • TableModel

        public TableModel​(DockerImage[] values)
        the constructor.
        Parameters:
        values - the images to display
    • Method Detail

      • getColumnCount

        public int getColumnCount()
        Returns the number of columns in the table.
        Specified by:
        getColumnCount in interface TableModel
        Specified by:
        getColumnCount in class adams.gui.tools.AbstractManagementTableModel<DockerImage>
        Returns:
        the number of columns
      • getColumnName

        public String getColumnName​(int column)
        Returns the name of the column.
        Specified by:
        getColumnName in interface TableModel
        Specified by:
        getColumnName in class adams.gui.tools.AbstractManagementTableModel<DockerImage>
        Parameters:
        column - the column to get the name for
        Returns:
        the name of the column
      • getColumnClass

        public Class getColumnClass​(int columnIndex)
        Returns the class type of the column.
        Specified by:
        getColumnClass in interface TableModel
        Specified by:
        getColumnClass in class adams.gui.tools.AbstractManagementTableModel<DockerImage>
        Parameters:
        columnIndex - the column to get the class for
        Returns:
        the class for the column
      • getValueAt

        public Object getValueAt​(int row,
                                 int column)
        Returns the Object at the given position.
        Specified by:
        getValueAt in interface TableModel
        Specified by:
        getValueAt in class adams.gui.tools.AbstractManagementTableModel<DockerImage>
        Parameters:
        row - the row
        column - the column
        Returns:
        the Object
      • isSearchMatch

        public boolean isSearchMatch​(adams.gui.core.SearchParameters params,
                                     int row)
        Tests whether the search matches the specified row.
        Specified by:
        isSearchMatch in interface adams.gui.core.CustomSearchTableModel
        Specified by:
        isSearchMatch in class adams.gui.tools.AbstractManagementTableModel<DockerImage>
        Parameters:
        params - the search parameters
        row - the row of the underlying, unsorted model
        Returns:
        true if the search matches this row