org.chorem.lima.ui.entrybook
Class EntryBookTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.chorem.lima.ui.entrybook.EntryBookTableModel
All Implemented Interfaces:
Serializable, TableModel, ServiceListener

public class EntryBookTableModel
extends AbstractTableModel
implements ServiceListener

Entry book table model.

Version:
$Revision: 3015 $ Last update : $Date: 2010-08-23 18:38:53 +0200 (Lun, 23 aoĆ» 2010) $ By : $Author: jpepin $
Author:
ore, chatellier
See Also:
Serialized Form

Field Summary
protected  EntryBookServiceMonitorable entryBookService
          Services.
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
EntryBookTableModel()
          Constructor.
 
Method Summary
 void addEntryBook(EntryBook entryBook)
           
 int getColumnCount()
           
 String getColumnName(int column)
           
 EntryBook getEntryBookAtRow(int row)
           
 int getRowCount()
           
 Object getValueAt(int row, int column)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 void notifyMethod(String serviceName, String methodeName)
           
 void removeEntryBook(EntryBook entryBook)
           
 void updateEntryBook(EntryBook entryBook)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entryBookService

protected EntryBookServiceMonitorable entryBookService
Services.

Constructor Detail

EntryBookTableModel

public EntryBookTableModel()
Constructor.

Method Detail

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface TableModel

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface TableModel

getColumnName

public String getColumnName(int column)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

getEntryBookAtRow

public EntryBook getEntryBookAtRow(int row)
                            throws LimaException
Throws:
LimaException

getValueAt

public Object getValueAt(int row,
                         int column)
Specified by:
getValueAt in interface TableModel

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class AbstractTableModel

addEntryBook

public void addEntryBook(EntryBook entryBook)
                  throws LimaException
Parameters:
entryBook -
Throws:
LimaException

updateEntryBook

public void updateEntryBook(EntryBook entryBook)
                     throws LimaException
Parameters:
entryBook -
Throws:
LimaException

removeEntryBook

public void removeEntryBook(EntryBook entryBook)
                     throws LimaException
Parameters:
entryBook -
Throws:
LimaException

notifyMethod

public void notifyMethod(String serviceName,
                         String methodeName)
Specified by:
notifyMethod in interface ServiceListener


Copyright © 2008-2010 CodeLutin. All Rights Reserved.