dist1.acb.ACBpoint
Class CashFlowsTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended bydist1.acb.ACBpoint.CashFlowsTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class CashFlowsTableModel
extends javax.swing.table.AbstractTableModel

Table Model for displaying the CashFlows

Author:
Lazar Adzigogov
See Also:
Serialized Form

Field Summary
static java.lang.String[] colNames
           
static java.lang.Class[] colTypes
           
static int DIRECTION_COL
           
static int FILE_COL
           
static int OWNER_COL
           
static int SUM_COL
           
static int TIME_COL
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
CashFlowsTableModel()
           
CashFlowsTableModel(java.util.LinkedList mData)
          Creates a new instance of PublishingTable
 
Method Summary
 java.lang.Class getColumnClass(int col)
           
 int getColumnCount()
          getColumnCount Number columns same as the column array length
 java.lang.String getColumnName(int col)
           
 java.util.LinkedList getData()
           
 int getRowCount()
          getRowCount Row count same as the size of data vector
 java.lang.Object getValueAt(int row, int col)
          getValueAt This function updates the JTable depending upon the data in the TableModel
 boolean isCellEditable(int row, int column)
           
 void setValueAt(java.lang.Object value, int row, int col)
          setValueAt This function updates the data in the TableModel depending upon the change in the JTable
 
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
 

Field Detail

DIRECTION_COL

public static final int DIRECTION_COL
See Also:
Constant Field Values

TIME_COL

public static final int TIME_COL
See Also:
Constant Field Values

SUM_COL

public static final int SUM_COL
See Also:
Constant Field Values

FILE_COL

public static final int FILE_COL
See Also:
Constant Field Values

OWNER_COL

public static final int OWNER_COL
See Also:
Constant Field Values

colNames

public static final java.lang.String[] colNames

colTypes

public static final java.lang.Class[] colTypes
Constructor Detail

CashFlowsTableModel

public CashFlowsTableModel(java.util.LinkedList mData)
Creates a new instance of PublishingTable


CashFlowsTableModel

public CashFlowsTableModel()
Method Detail

getColumnCount

public int getColumnCount()
getColumnCount Number columns same as the column array length


getRowCount

public int getRowCount()
getRowCount Row count same as the size of data vector


setValueAt

public void setValueAt(java.lang.Object value,
                       int row,
                       int col)
setValueAt This function updates the data in the TableModel depending upon the change in the JTable


getColumnName

public java.lang.String getColumnName(int col)

getColumnClass

public java.lang.Class getColumnClass(int col)

getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)
getValueAt This function updates the JTable depending upon the data in the TableModel


getData

public java.util.LinkedList getData()

isCellEditable

public boolean isCellEditable(int row,
                              int column)


Copyright © 2004 Phoenix Team (CMU/AIT). All Rights Reserved.