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 ClassgetColumnClass(int columnIndex)Returns the class type of the column.intgetColumnCount()Returns the number of columns in the table.StringgetColumnName(int column)Returns the name of the column.ObjectgetValueAt(int row, int column)Returns the Object at the given position.booleanisSearchMatch(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:
getColumnCountin interfaceTableModel- Specified by:
getColumnCountin classadams.gui.tools.AbstractManagementTableModel<DockerImage>- Returns:
- the number of columns
-
getColumnName
public String getColumnName(int column)
Returns the name of the column.- Specified by:
getColumnNamein interfaceTableModel- Specified by:
getColumnNamein 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:
getColumnClassin interfaceTableModel- Specified by:
getColumnClassin 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:
getValueAtin interfaceTableModel- Specified by:
getValueAtin 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:
isSearchMatchin interfaceadams.gui.core.CustomSearchTableModel- Specified by:
isSearchMatchin 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
-
-