Package adams.gui.tools
Class DockerImagesPanel.TableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- adams.gui.core.AbstractBaseTableModel
-
- adams.gui.selection.AbstractTableBasedSelectionPanel.AbstractSelectionTableModel<T>
-
- adams.gui.tools.AbstractManagementTableModel<DockerImage>
-
- adams.gui.tools.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
-
-
Field Summary
-
Fields inherited from class adams.gui.core.AbstractBaseTableModel
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description TableModel()
default constructor.TableModel(DockerImage[] values)
the constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class
getColumnClass(int columnIndex)
Returns the class type of the column.int
getColumnCount()
Returns the number of columns in the table.String
getColumnName(int column)
Returns the name of the column.Object
getValueAt(int row, int column)
Returns the Object at the given position.boolean
isSearchMatch(adams.gui.core.SearchParameters params, int row)
Tests whether the search matches the specified row.-
Methods inherited from class adams.gui.tools.AbstractManagementTableModel
add, addAll, clear, getItemAt, getRowCount, indexOf, isSorted, moveDown, moveUp, remove, toList
-
Methods inherited from class adams.gui.core.AbstractBaseTableModel
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, setLoggingLevel, toSpreadSheet, toString
-
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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, isCellEditable, removeTableModelListener, setValueAt
-
-
-
-
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 interfaceTableModel
- Specified by:
getColumnCount
in classadams.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 interfaceTableModel
- Specified by:
getColumnName
in classadams.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 interfaceTableModel
- Specified by:
getColumnClass
in classadams.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 interfaceTableModel
- Specified by:
getValueAt
in classadams.gui.tools.AbstractManagementTableModel<DockerImage>
- Parameters:
row
- the rowcolumn
- 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 interfaceadams.gui.core.CustomSearchTableModel
- Specified by:
isSearchMatch
in classadams.gui.tools.AbstractManagementTableModel<DockerImage>
- Parameters:
params
- the search parametersrow
- the row of the underlying, unsorted model- Returns:
- true if the search matches this row
-
-