|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
org.chorem.lima.ui.financialtransaction.FinancialTransactionTableModel
public class FinancialTransactionTableModel
Basic transaction table model.
Le modele est filtré sur selectedFinancialPeriod et
selectedFinancialPeriod (montée en charge !).
| Field Summary | |
|---|---|
protected List<Object> |
cacheDataList
data cache |
protected FinancialTransactionServiceMonitorable |
financialTransactionService
Transaction service. |
protected FinancialPeriod |
selectedFinancialPeriod
selected financial period |
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
FinancialTransactionTableModel()
collection /** Model constructor. |
|
| Method Summary | |
|---|---|
int |
addEmptyEntry(Object value,
String voucher,
String description,
int row)
|
int |
addEntry(Object value,
Entry entry,
int row)
|
int |
addFinancialTransaction()
|
Class<?> |
getColumnClass(int column)
|
int |
getColumnCount()
|
String |
getColumnName(int column)
|
protected List<Object> |
getDataList()
Le model est une combinaison de Transaction/Entries. |
Object |
getElementAt(int row)
|
int |
getRowCount()
|
Object |
getValueAt(int row,
int column)
|
boolean |
isCellEditable(int rowIndex,
int columnIndex)
To set cells editable or not different condition for entry or financial transaction |
void |
notifyMethod(String serviceName,
String methodeName)
|
void |
refresh()
|
void |
removeObject(Object object,
int row)
Delete selected row in table (could be transaction or entry). |
void |
setFinancialPeriod(FinancialPeriod financialPeriod)
|
void |
setValueAt(Object value,
int row,
int column)
to modifiy financialtransaction or entry |
| 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 |
|---|
protected final FinancialTransactionServiceMonitorable financialTransactionService
protected FinancialPeriod selectedFinancialPeriod
protected List<Object> cacheDataList
| Constructor Detail |
|---|
public FinancialTransactionTableModel()
| Method Detail |
|---|
protected List<Object> getDataList()
public void refresh()
public int getColumnCount()
getColumnCount in interface TableModelpublic Class<?> getColumnClass(int column)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic int getRowCount()
getRowCount in interface TableModel
public Object getValueAt(int row,
int column)
getValueAt in interface TableModelpublic void setFinancialPeriod(FinancialPeriod financialPeriod)
public boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModel
public int addFinancialTransaction()
throws LimaException
LimaException
public int addEmptyEntry(Object value,
String voucher,
String description,
int row)
throws LimaException
value - description - row -
LimaException
public int addEntry(Object value,
Entry entry,
int row)
throws LimaException
value - entry - row -
LimaException
public void setValueAt(Object value,
int row,
int column)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelpublic Object getElementAt(int row)
public void removeObject(Object object,
int row)
throws LimaException
Object, - int
LimaException
public void notifyMethod(String serviceName,
String methodeName)
notifyMethod in interface ServiceListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||