|
||||||||||
| 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.financialtransactionsearch.FinancialTransactionSearchTableModel
public class FinancialTransactionSearchTableModel
Basic transaction table model.
Le modele est filtré sur selectedFiscalPeriod (montée en charge !).
| Field Summary | |
|---|---|
protected List<Object> |
cacheDataList
|
protected FinancialPeriodServiceMonitorable |
financialPeriodService
Financial service |
protected FinancialTransactionSearch |
financialTransactionSearch
data cache |
protected FinancialTransactionServiceMonitorable |
financialTransactionService
Transaction service. |
protected FiscalPeriod |
selectedFiscalPeriod
selected financial period |
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
FinancialTransactionSearchTableModel()
Model constructor. |
|
| Method Summary | |
|---|---|
int |
addEmptyEntry(Object value,
int row)
|
int |
addEmptyEntry(Object value,
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(FinancialTransactionSearch financialTransactionSearch)
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)
|
protected void |
refresh(FinancialTransactionSearch financialTransactionSearch)
|
void |
removeObject(Object object,
int row)
Delete selected row in table (could be transaction or entry). |
void |
setFiscalPeriod(FiscalPeriod fiscalPeriod)
|
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 final FinancialPeriodServiceMonitorable financialPeriodService
protected FiscalPeriod selectedFiscalPeriod
protected FinancialTransactionSearch financialTransactionSearch
protected List<Object> cacheDataList
| Constructor Detail |
|---|
public FinancialTransactionSearchTableModel()
| Method Detail |
|---|
protected List<Object> getDataList(FinancialTransactionSearch financialTransactionSearch)
protected void refresh(FinancialTransactionSearch financialTransactionSearch)
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 setFiscalPeriod(FiscalPeriod fiscalPeriod)
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,
int row)
throws LimaException
value - 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 int addEmptyEntry(Object value,
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 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 | |||||||||