public class FinancialTransactionTableModel extends AbstractTableModel
| Modifier and Type | Field and Description |
|---|---|
protected org.nuiton.util.decorator.Decorator<Account> |
accountDecorator
To decorate account objects.
|
protected FinancialTransactionService |
financialTransactionService
Service (just to update setValueAt().
|
protected List<Object> |
transactionAndEntries |
listenerList| Constructor and Description |
|---|
FinancialTransactionTableModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRow(Object object)
Insert new row.
|
void |
addRow(Object object,
int newRow)
Insert new row.
|
void |
deleteRow(int row)
Delete row.
|
Class<?> |
getColumnClass(int column) |
int |
getColumnCount() |
String |
getColumnName(int column) |
Object |
getElementAt(int row) |
int |
getFirstEntry(int selectedRow)
Obtain the first entry book of the current transaction.
|
Object |
getObjectAt(int row) |
int |
getRowCount() |
Object |
getValueAt(int row,
int column) |
int |
indexOf(Object o) |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
To set cells editable or not
different condition for entry or financial transaction
|
void |
setTransactionAndEntries(List<Object> transactionAndEntries) |
void |
setValueAt(Object value,
int row,
int column)
to modifiy financialtransaction or entry
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerprotected FinancialTransactionService financialTransactionService
protected final org.nuiton.util.decorator.Decorator<Account> accountDecorator
public int getColumnCount()
public Class<?> getColumnClass(int column)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic int getRowCount()
public Object getValueAt(int row, int column)
public boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic int getFirstEntry(int selectedRow)
selectedRow - row selectedpublic Object getObjectAt(int row)
public void setValueAt(Object value, int row, int column)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelpublic Object getElementAt(int row)
public int indexOf(Object o)
public void deleteRow(int row)
row - row to deletepublic void addRow(Object object, int newRow)
object - object to insertnewRow - positionpublic void addRow(Object object)
object - object to insertCopyright © 2008-2012 CodeLutin. All Rights Reserved.