eu.keep.uphec.technicalregistries
Class TechnicalRegistriesTableModel

Object
  extended by javax.swing.table.AbstractTableModel
      extended by TechnicalRegistriesTableModel
All Implemented Interfaces:
Serializable, javax.swing.table.TableModel

public class TechnicalRegistriesTableModel
extends javax.swing.table.AbstractTableModel

The TechnicalRegistriesTableModel class is responsible for specifying the methods that TechnicalRegistriesTable in the TechnicalRegistriesListDialog will use to interrogate a tabular data model

Author:
Antonio Ciuffreda
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
TechnicalRegistriesTableModel(Object[][] content, int rows)
          Default constructor for TechnicalRegistriesTableModel
 
Method Summary
 Class getColumnClass(int column)
          This method returns the class type of a specific column in TechnicalRegistriesTable
 int getColumnCount()
          This method returns the number of existing columns in TechnicalRegistriesTable
 String getColumnName(int column)
          This method provides the title of each column in TechnicalRegistriesTable
 int getRowCount()
          This method returns the number of existing rows in TechnicalRegistriesTable
 Object getValueAt(int row, int column)
          This method returns the value of a specific cell in TechnicalRegistriesTable
 boolean isCellEditable(int row, int col)
          This method defines the editability of each cell in TechnicalRegistriesTable
 void setValueAt(Object aValue, int row, int column)
          This method enables to set the value in a specific cell in TechnicalRegistriesTable
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TechnicalRegistriesTableModel

public TechnicalRegistriesTableModel(Object[][] content,
                                     int rows)
Default constructor for TechnicalRegistriesTableModel

Parameters:
content - instance of 2D Object Array
cols - instance of int
Method Detail

getColumnCount

public int getColumnCount()
This method returns the number of existing columns in TechnicalRegistriesTable


getRowCount

public int getRowCount()
This method returns the number of existing rows in TechnicalRegistriesTable


isCellEditable

public boolean isCellEditable(int row,
                              int col)
This method defines the editability of each cell in TechnicalRegistriesTable

Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel
Parameters:
row - instance of int
col - instance of int

getColumnName

public String getColumnName(int column)
This method provides the title of each column in TechnicalRegistriesTable

Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel
Parameters:
column - instance of int

getValueAt

public Object getValueAt(int row,
                         int column)
This method returns the value of a specific cell in TechnicalRegistriesTable

Parameters:
row - instance of int
column - instance of int

getColumnClass

public Class getColumnClass(int column)
This method returns the class type of a specific column in TechnicalRegistriesTable

Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel
Parameters:
column - instance of int

setValueAt

public void setValueAt(Object aValue,
                       int row,
                       int column)
This method enables to set the value in a specific cell in TechnicalRegistriesTable

Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class javax.swing.table.AbstractTableModel
Parameters:
aValue - instance of Object
row - instance of int
column - instance of int