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 boolean |
initializationComplete |
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 |
accountComboBoxChange(PropertyChangeEvent event) |
void |
addLetter()
Add a group of three letters to n entries
|
void |
back(AccountComboBox accountComboBox)
Select previous value in combo box.
|
void |
balanceAndActions() |
void |
balanceCalculation(BigDecimal amount,
boolean debit)
Allow to add / subtract credit / debit and balance
|
Account |
getAccount() |
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(AccountComboBox accountComboBox)
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) |
void |
updateSoldStatus() |
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
protected boolean initializationComplete
public LetteringViewHandler(LetteringView view)
public void init()
public void updateSoldStatus()
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()
public void setDateStart(Date date)
public void setDateEnd(Date date)
public void setAccount(Account account)
public Account getAccount()
public void setTypeEntry(TypeEntry typeEntry)
public void updateAllEntries()
public void roundAndCreateEntry()
public void accountComboBoxChange(PropertyChangeEvent event)
public void back(AccountComboBox accountComboBox)
accountComboBox - account combo boxpublic void next(AccountComboBox accountComboBox)
accountComboBox - combo boxpublic void addLetter()
public void removeLetter()
Copyright © 2008–2015 CodeLutin. All rights reserved.