public class LetteringViewHandler extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
LetteringViewHandler.ButtonMode |
| Modifier and Type | Field and Description |
|---|---|
protected AccountService |
accountService |
protected BigDecimal |
credit |
protected BigDecimal |
debit |
protected LetteringEditModel |
editModel |
protected EntryBookService |
entryBookService |
protected ErrorHelper |
errorHelper |
protected LetteringFilterImpl |
filter |
protected FinancialPeriodService |
financialPeriodService |
protected FinancialTransactionService |
financialTransactionService |
protected FiscalPeriodService |
fiscalPeriodService
Transaction service.
|
protected LettringSelectionModel |
lettringSelectionModel |
protected BigDecimal |
solde |
protected LetteringTable |
table |
protected LetteringView |
view |
| Constructor and Description |
|---|
LetteringViewHandler(LetteringView view) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLetter()
Add a group of three letters to n entries
|
void |
back(JComboBox comboBox)
Select previous value in combo box.
|
void |
balanceAndActions() |
void |
balanceCalculation(BigDecimal amount,
boolean debit)
Allow to add / subtract credit / debit and balance
|
protected List<Entry> |
findAllEntries(LetteringFilterImpl filter) |
void |
init()
Init all combo box in view.
|
protected void |
initShortCuts() |
boolean |
letteringNotExist(int row)
return true if lettering is null, or not null but empty
|
void |
loadComboAndRows() |
void |
next(JComboBox comboBox)
Select next value in combo box.
|
void |
onBalanceChanged(Entry balance) |
void |
onButtonModeChanged(LetteringViewHandler.ButtonMode buttonMode) |
void |
removeLetter()
Remove a group of three letters to n entries
|
void |
roundAndCreateEntry()
To make the difference between two selected entries and
create a new entry with the result (debit or credit).
|
void |
setAccount(Account account) |
void |
setDateEnd(Date date) |
void |
setDateStart(Date date) |
void |
setTypeEntry(TypeEntry typeEntry) |
void |
setValuesForSelectedEntries() |
void |
updateAllEntries() |
protected void |
updateEntries(List<Entry> entries) |
protected LetteringView view
protected LetteringTable table
protected FiscalPeriodService fiscalPeriodService
protected FinancialPeriodService financialPeriodService
protected AccountService accountService
protected FinancialTransactionService financialTransactionService
protected EntryBookService entryBookService
protected LetteringFilterImpl filter
protected BigDecimal debit
protected BigDecimal credit
protected BigDecimal solde
protected LettringSelectionModel lettringSelectionModel
protected LetteringEditModel editModel
protected ErrorHelper errorHelper
public LetteringViewHandler(LetteringView view)
public void init()
protected void initShortCuts()
public void balanceAndActions()
public boolean letteringNotExist(int row)
row - index of the line to testpublic void onButtonModeChanged(LetteringViewHandler.ButtonMode buttonMode)
public void setValuesForSelectedEntries()
public void onBalanceChanged(Entry balance)
public void balanceCalculation(BigDecimal amount, boolean debit)
amount - debit or creditdebit - it indicate if amount is debit or notpublic void loadComboAndRows()
protected List<Entry> findAllEntries(LetteringFilterImpl filter)
public void setDateStart(Date date)
public void setDateEnd(Date date)
public void setAccount(Account account)
public void setTypeEntry(TypeEntry typeEntry)
public void updateAllEntries()
public void roundAndCreateEntry()
public void back(JComboBox comboBox)
comboBox - combo boxpublic void next(JComboBox comboBox)
comboBox - combo boxpublic void addLetter()
public void removeLetter()
Copyright © 2008–2015 CodeLutin. All rights reserved.