public class FinancialTransactionViewHandler extends Object implements ServiceListener
| Modifier and Type | Field and Description |
|---|---|
protected Object |
clipBoard
Cache object used to copy & paste.
|
protected EntryBookService |
entryBookService |
protected FinancialPeriodService |
financialPeriodService |
protected FinancialTransactionService |
financialTransactionService |
protected FiscalPeriodService |
fiscalPeriodService |
protected FinancialTransactionView |
view
Managed view.
|
| Constructor and Description |
|---|
FinancialTransactionViewHandler(FinancialTransactionView view) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntry()
Add new entry to selected transaction.
|
protected int |
addEntry(Entry entry,
int row) |
void |
addFinancialTransaction()
Add new transaction.
|
void |
addFinancialTransactionAfterService()
Add new transaction after calling service.
|
void |
back(JComboBox comboBox)
Select previous value in combo box.
|
void |
copyRow(int indexSelectedRow)
Copy selected row
|
void |
deleteSelectedRow()
Delete selected row in table (could be transaction or entry).
|
void |
entryBookSelected(ItemEvent event)
New entry book selected.
|
void |
financialPeriodSelected(ItemEvent event)
New financial period selection.
|
void |
fiscalPeriodSelected(ItemEvent event)
New fiscal period selection.
|
void |
init()
Init all combo box in view.
|
void |
next(JComboBox comboBox)
Select next value in combo box.
|
void |
notifyMethod(String serviceName,
String methodName) |
void |
pasteRow(int indexSelectedRow)
Paste row.
|
void |
updateFinancialTransactions()
Fill transaction for selection fiscal period, financial perdiod
and entry book.
|
protected FinancialTransactionView view
protected Object clipBoard
protected EntryBookService entryBookService
protected FinancialPeriodService financialPeriodService
protected FiscalPeriodService fiscalPeriodService
protected FinancialTransactionService financialTransactionService
public FinancialTransactionViewHandler(FinancialTransactionView view)
public void init()
public void fiscalPeriodSelected(ItemEvent event)
event - eventpublic void financialPeriodSelected(ItemEvent event)
event - eventpublic void entryBookSelected(ItemEvent event)
event - eventpublic void updateFinancialTransactions()
public void copyRow(int indexSelectedRow)
indexSelectedRow - public void pasteRow(int indexSelectedRow)
indexSelectedRow - selected row to pasteprotected int addEntry(Entry entry, int row)
entry - row - public void addFinancialTransaction()
public void addFinancialTransactionAfterService()
public void addEntry()
public void deleteSelectedRow()
public void back(JComboBox comboBox)
comboBox - combo boxpublic void next(JComboBox comboBox)
comboBox - combo boxpublic void notifyMethod(String serviceName, String methodName)
notifyMethod in interface ServiceListenerCopyright © 2008-2012 CodeLutin. All Rights Reserved.