org.chorem.lima.ui.financialstatementreport
Class FinancialStatementReportTableModel

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

public class FinancialStatementReportTableModel
extends AbstractTableModel
implements ServiceListener

Entry book table model.

Version:
$Revision: 2865 $ Last update : $Date: 2010-04-19 15:19:30 +0200 (lun. 19 avril 2010) $ By : $Author: jpepin $
Author:
ore, chatellier
See Also:
Serialized Form

Field Summary
protected  List<FinancialStatementAmounts> cacheDataList
          data cache
protected  DocumentServiceMonitorable documentService
           
protected  FinancialStatementServiceMonitorable financialStatementService
          Services.
protected  int port
           
protected  Date selectedBeginDate
          DatePicker Begin Date.
protected  Date selectedEndDate
          DatePicker EndDate.
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
FinancialStatementReportTableModel()
          Constructor.
 
Method Summary
 void createDocument(FormatsEnum formatsEnum)
           
 int getColumnCount()
           
 String getColumnName(int column)
           
 List<FinancialStatementAmounts> getDataList()
          get all account fot the selected period
 Object getElementAt(int row)
           
 int getRowCount()
           
 Object getValueAt(int row, int column)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 void notifyMethod(String serviceName, String methodeName)
           
 void refresh()
           
 void setBeginDate(Date date)
           
 void setEndDate(Date date)
           
 
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

financialStatementService

protected FinancialStatementServiceMonitorable financialStatementService
Services.


documentService

protected DocumentServiceMonitorable documentService

selectedBeginDate

protected Date selectedBeginDate
DatePicker Begin Date.


selectedEndDate

protected Date selectedEndDate
DatePicker EndDate.


port

protected int port

cacheDataList

protected List<FinancialStatementAmounts> cacheDataList
data cache

Constructor Detail

FinancialStatementReportTableModel

public FinancialStatementReportTableModel()
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

getElementAt

public Object getElementAt(int row)

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

setBeginDate

public void setBeginDate(Date date)

setEndDate

public void setEndDate(Date date)

getDataList

public List<FinancialStatementAmounts> getDataList()
get all account fot the selected period

Returns:

refresh

public void refresh()

createDocument

public void createDocument(FormatsEnum formatsEnum)

notifyMethod

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


Copyright © 2008-2010 CodeLutin. All Rights Reserved.