org.mydm.models
Class AuthorsTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byorg.mydm.models.AuthorsTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class AuthorsTableModel
extends javax.swing.table.AbstractTableModel

Used in the deposit Interface

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
AuthorsTableModel()
           
 
Method Summary
 void addRow(EAuthor eauthor)
          Adds an EAuthor Object as a new row
 java.lang.Class getColumnClass(int c)
          Gets the Columns Class
 int getColumnCount()
           
 java.lang.String getColumnName(int col)
          Gets the Columns name
 EAuthor[] getEAuthors()
          Gets the EAuthor objects stored in this model
 int getRowCount()
           
 java.lang.Object getValueAt(int arg0, int arg1)
           
 boolean isCellEditable(int r, int c)
           
 void removeRow(int rowNo)
           
 void setValueAt(java.lang.Object value, int row, int col)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorsTableModel

public AuthorsTableModel()
Method Detail

getColumnName

public java.lang.String getColumnName(int col)
Gets the Columns name

Returns:
column name

getColumnClass

public java.lang.Class getColumnClass(int c)
Gets the Columns Class

Returns:
column class

getRowCount

public int getRowCount()

getColumnCount

public int getColumnCount()

isCellEditable

public boolean isCellEditable(int r,
                              int c)

getValueAt

public java.lang.Object getValueAt(int arg0,
                                   int arg1)

setValueAt

public void setValueAt(java.lang.Object value,
                       int row,
                       int col)

addRow

public void addRow(EAuthor eauthor)
Adds an EAuthor Object as a new row

Parameters:
eauthor - EAuthor

removeRow

public void removeRow(int rowNo)

getEAuthors

public EAuthor[] getEAuthors()
Gets the EAuthor objects stored in this model

Returns:
Array of EAuthor Objects.