Class MetadataTableModel

java.lang.Object
javax.swing.table.AbstractTableModel
de.pco.example.MetadataTableModel
All Implemented Interfaces:
Serializable, TableModel

public class MetadataTableModel
extends AbstractTableModel
Represents the data layer of the table
Author:
PCO
See Also:
Serialized Form
  • Constructor Details

    • MetadataTableModel

      public MetadataTableModel()
  • Method Details

    • isCellEditable

      public boolean isCellEditable​(int rowIndex, int columnIndex)
      Returns if the cell is editable
      Specified by:
      isCellEditable in interface TableModel
      Overrides:
      isCellEditable in class AbstractTableModel
    • getValueAt

      public Object getValueAt​(int rowIndex, int columnIndex)
      Returns the cell value at particular coordinates
    • getRowCount

      public int getRowCount()
      Returns the count of the table row
    • getColumnCount

      public int getColumnCount()
      Returns the count of the columns
    • setMetadataBean

      public void setMetadataBean​(BildStruct metadata)
      Sets the backing MetadataBean object
      Parameters:
      metadata -
    • setLoaded

      public void setLoaded​(boolean loaded)
      Sets that the table was loaded
      Parameters:
      loaded -
    • setValueAt

      public void setValueAt​(Object aValue, int rowIndex, int columnIndex)
      Sets the value in the given cell
      Specified by:
      setValueAt in interface TableModel
      Overrides:
      setValueAt in class AbstractTableModel
    • getColumnName

      public String getColumnName​(int column)
      Returns the name of the color
      Specified by:
      getColumnName in interface TableModel
      Overrides:
      getColumnName in class AbstractTableModel