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 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 void |
changeLetter(String newLetters)
Add or remove a group of three letters to n entries
|
protected List<Entry> |
findAllEntries(LetteringFilterImpl filter) |
void |
init()
Init all combo box in view.
|
protected boolean |
isFilterValid()
To test if the filter contain an account and a period
|
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 |
setValuesForSelectedEntries() |
void |
updateAllEntries() |
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
public LetteringViewHandler(LetteringView view)
public void init()
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 updateAllEntries()
public void roundAndCreateEntry()
protected boolean isFilterValid()
public void back(JComboBox comboBox)
comboBox - combo boxpublic void next(JComboBox comboBox)
comboBox - combo boxpublic void addLetter()
public void removeLetter()
protected void changeLetter(String newLetters)
Copyright © 2008–2013 CodeLutin. All rights reserved.