public class RootAccount extends Account implements AccountListener, TransactionListener, CurrencyListener, ReminderListener, OnlineInfoListener
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
STORE_PINS_PARAM |
ACCOUNT_TYPE_ASSET, ACCOUNT_TYPE_BANK, ACCOUNT_TYPE_CREDIT_CARD, ACCOUNT_TYPE_EXPENSE, ACCOUNT_TYPE_INCOME, ACCOUNT_TYPE_INVESTMENT, ACCOUNT_TYPE_LIABILITY, ACCOUNT_TYPE_LOAN, ACCOUNT_TYPE_ROOT, ACCOUNT_TYPE_SECURITY, BUDGET_CLASS_DISCRETIONARY, BUDGET_CLASS_INCOME, BUDGET_CLASS_MISC, BUDGET_CLASS_REQUIRED, BUDGET_INTERVAL_MONTHLY, BUDGET_INTERVAL_QUARTERLY, BUDGET_INTERVAL_WEEKLY, BUDGET_INTERVAL_YEARLY, MAX_BUDGETS, negate, PARAM_HAVE_NEW_TXNS, PARAM_NEW_TXN_COUNT, PARAM_QIF_TXNID, PARAM_TAX_RELATED, PARAM_VAT_ACCT, PARAM_VAT_APPLIES, PARAM_VAT_PCT, PASSWD_CACHE_KEY, SPLIT_ACCOUNT_ID| Constructor and Description |
|---|
RootAccount(AccountBook book,
CurrencyTable currencyTable,
java.lang.String fileType) |
RootAccount(AccountBook book,
CurrencyType currency,
CurrencyTable currencyTable) |
RootAccount(AccountBook book,
CurrencyType currency,
CurrencyTable currencyTable,
java.util.Hashtable settings) |
RootAccount(AccountBook book,
java.lang.String acctName,
CurrencyType currency,
CurrencyTable currencyTable,
java.util.Hashtable settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
accountAdded(Account parentAccount,
Account newAccount)
Is called when an account is added.
|
void |
accountBalanceChanged(Account account)
Is called when the account balance is changed
|
void |
accountDeleted(Account parentAccount,
Account deletedAccount)
Is called when an account is deleted.
|
void |
accountModified(Account account)
Is called when some aspect of the account is modified, such
as account name, currency, etc.
|
void |
addFileListener(MDFileListener listener) |
void |
autoCommitReminders() |
void |
cleanUp()
Avoid lapsed listener leaks when opening successively opening multiple
files.
|
void |
currencyTableModified(CurrencyTable table) |
void |
deleteAccountAndAllReferences(Account acct)
Deletes an account as well as everything that references it.
|
void |
doneLoading()
This is called after a data set has been fully loaded from a stream.
|
boolean |
fileNeedsToBeSaved() |
AccountBook |
getAccountBook() |
Account |
getAccountById(int id) |
AddressBook |
getAddressBook()
In versions 452 and later, this is for the use of the address book.
|
BudgetList |
getBudgetList()
Get the set of budgets for this data file.
|
java.lang.String |
getBudgetName(int budgetNum,
java.lang.String defaultName)
Get the name of the budget that is identified by the given number.
|
CurrencyTable |
getCurrencyTable() |
java.io.File |
getDataFile() |
int |
getDataFileFormat()
Get the format of the data file from which this data was read.
|
java.lang.String |
getEncryptionHint()
Gets the hint that will be stored (unencrypted) with this file to help the
user remember their passphrase.
|
byte[] |
getEncryptionKey()
Get the key that will be used to encrypt this file.
|
java.lang.String |
getEncryptionLevel()
Get the level of encryption.
|
java.lang.String |
getFullAccountName() |
Account |
getInvstCommissionAcct() |
MemorizedItemManager |
getMemorizedItemManager() |
java.lang.String |
getNewsToken() |
OnlineInfo |
getOnlineInfo() |
StreamTable |
getPublicMetaData()
Return public metadata about this set of accounts.
|
boolean |
getRecalcBalances() |
ReminderSet |
getReminderSet()
Get the set of reminders that are associated with this data set.
|
TransactionSet |
getTransactionSet()
Get the set of all transactions.
|
TxnTagSet |
getTxnTagSet()
Get the set of tags that can be associated with transactions.
|
boolean |
isUnsavedData()
Returns true if there is data in this account or any child accounts that
hasn't been saved.
|
void |
onlineInfoModified(OnlineInfo info) |
void |
refreshAccountBalances()
This will update the accounts balance from the "working" value and notify
listeners if the balance has changed.
|
void |
reminderAdded(Reminder r)
Called after a reminder has been added to the reminder set.
|
void |
reminderModified(Reminder r)
Called after a reminder has been modified.
|
void |
reminderRemoved(Reminder r)
Called after a reminder has been removed from the reminder set.
|
void |
removeFileListener(MDFileListener listener) |
void |
resetDirtyFlags()
set the dirty flag for this account and all sub-accounts to
a non-dirty state.
|
void |
saveSecondaryInfo() |
void |
setBudgetName(int budgetNum,
java.lang.String budgetName)
Get the name of the budget that is identified by the given number.
|
void |
setDataFileFormat(int newFormat) |
void |
setEncryptionHint(java.lang.String hint)
Sets the hint that will be stored with this file to help the user remember
their passphrase.
|
void |
setEncryptionKey(byte[] encryptionKey)
Set the key that will be used to encrypt this file.
|
void |
setEncryptionLevel(java.lang.String newLevel)
Set the level of encryption.
|
void |
setNewsToken(java.lang.String newsToken) |
void |
setPublicMetaData(StreamTable newMetaInfo)
Set the public meta data that applies to this set of accounts.
|
void |
setRecalcBalances(boolean doRecalcs)
Tells the model whether or not all account balances should be recalculated
whenever a transaction is modified.
|
void |
transactionAdded(AbstractTxn t)
Called after a transaction has been added to the transaction set.
|
void |
transactionModified(AbstractTxn t)
Called after a transaction has been modified.
|
void |
transactionRemoved(AbstractTxn t)
Called after a transaction has been removed from the transaction set.
|
_getAccountByName, _getAccountByName, _removeSubAccount, addAccountListener, addSubAccount, adjustStartBalance, balanceIsNegated, billpayTxnsUpdated, canDownloadTxns, cloneParameters, compareFullPathToAccount, compareToAccount, doesParameterExist, downloadedTxnsUpdated, dumpAccounts, ensureHasSubAccount, getAccountByName, getAccountByName, getAccountIsInactive, getAccountName, getAccountNum, getAccountOrParentIsInactive, getAccountType, getAllAccountNames, getBalance, getBankingFI, getBillPayFI, getBillpayTxns, getBooleanParameter, getBudgetAmount, getBudgetClass, getBudgetInterval, getCheckNumTags, getClearedBalance, getComment, getConfirmedBalance, getCreationDate, getCreationDateInt, getCurrencyType, getCurrentBalance, getDefaultCategory, getDepth, getDoubleParameter, getDownloadedTxns, getHideOnHomePage, getHighestAccountNum, getIndentedName, getIntParameter, getLongParameter, getNextCheckNumber, getOFXAccountKey, getOFXAccountMsgType, getOFXAccountNumber, getOFXAccountType, getOFXBankID, getOFXBillPayAccountNumber, getOFXBillPayAccountType, getOFXBillPayBankID, getOFXBranchID, getOFXBrokerID, getOFXLastTxnUpdate, getOnlineAvailBalance, getOnlineAvailBalanceDate, getOnlineLedgerBalance, getOnlineLedgerBalanceDate, getParameter, getParameter, getParameterCount, getParameterKeys, getParentAccount, getPath, getPreferredSortAscending, getPreferredSortOrder, getPreferredTwoLines, getReconcilingBalance, getRecursiveBalance, getRecursiveClearedBalance, getRecursiveCurrentBalance, getRecursiveReconcilingBalance, getRecursiveStartBalance, getRecursiveUserBalance, getRecursiveUserClearedBalance, getRecursiveUserCurrentBalance, getRecursiveUserReconcilingBalance, getRecursiveUserStartBalance, getRootAccount, getStartBalance, getSubAccount, getSubAccountCount, getSubAccounts, getTaxCategory, getUserBalance, getUserClearedBalance, getUserConfirmedBalance, getUserCurrentBalance, getUserReconcilingBalance, getUserStartBalance, hasOnlineAvailBalance, hasOnlineLedgerBalance, indexOf, isAncestorOf, isDeductible, isDescendantOf, isDirty, isLeafNode, isOnlineBankingCandidate, isOnlineBillpayCandidate, isOnlineEnabled, isRegisterAccount, isTaxable, isTaxRelated, makeAccount, notifyAccountAdded, notifyAccountDeleted, notifyAccountModified, notifyBalanceChanged, removeAccountListener, removeParameter, removeSubAccount, setAccountIsInactive, setAccountName, setBankingFI, setBillPayFI, setBudgetAmount, setBudgetClass, setBudgetInterval, setCheckNumTags, setComment, setCreationDate, setCurrencyType, setDeductible, setDefaultCategory, setDirtyFlag, setHideOnHomePage, setIncludeInNetWorth, setOFXAccountKey, setOFXAccountMsgType, setOFXAccountNumber, setOFXAccountType, setOFXBankID, setOFXBillPayAccountNumber, setOFXBillPayAccountType, setOFXBillPayBankID, setOFXBranchID, setOFXBrokerID, setOFXLastTxnUpdate, setOnlineAvailBalance, setOnlineLedgerBalance, setParameter, setParameter, setParameter, setParameter, setParameter, setParameterNoNotify, setParentAccount, setPreference, setPreference, setPreference, setPreferredSortAscending, setPreferredSortOrder, setPreferredTwoLines, setStartBalance, setTaxable, setTaxCategory, setTaxRelated, setUserStartBalance, shouldBeIncludedInNetWorth, sortAccounts, toStringpublic static final java.lang.String STORE_PINS_PARAM
public RootAccount(AccountBook book, CurrencyType currency, CurrencyTable currencyTable)
public RootAccount(AccountBook book, CurrencyType currency, CurrencyTable currencyTable, java.util.Hashtable settings)
public RootAccount(AccountBook book, CurrencyTable currencyTable, java.lang.String fileType)
public RootAccount(AccountBook book, java.lang.String acctName, CurrencyType currency, CurrencyTable currencyTable, java.util.Hashtable settings)
public AccountBook getAccountBook()
public void cleanUp()
public MemorizedItemManager getMemorizedItemManager()
public AddressBook getAddressBook()
public void setPublicMetaData(StreamTable newMetaInfo)
public StreamTable getPublicMetaData()
public void onlineInfoModified(OnlineInfo info)
onlineInfoModified in interface OnlineInfoListenerpublic void setEncryptionHint(java.lang.String hint)
public java.lang.String getEncryptionHint()
public byte[] getEncryptionKey()
public java.lang.String getEncryptionLevel()
public void setEncryptionLevel(java.lang.String newLevel)
public void setEncryptionKey(byte[] encryptionKey)
public java.lang.String getBudgetName(int budgetNum,
java.lang.String defaultName)
public void setBudgetName(int budgetNum,
java.lang.String budgetName)
public java.io.File getDataFile()
public void setDataFileFormat(int newFormat)
public int getDataFileFormat()
public boolean fileNeedsToBeSaved()
public void autoCommitReminders()
public java.lang.String getNewsToken()
public void setNewsToken(java.lang.String newsToken)
public CurrencyTable getCurrencyTable()
public boolean isUnsavedData()
public void saveSecondaryInfo()
public TransactionSet getTransactionSet()
public ReminderSet getReminderSet()
public TxnTagSet getTxnTagSet()
public BudgetList getBudgetList()
public java.lang.String getFullAccountName()
getFullAccountName in class Accountpublic OnlineInfo getOnlineInfo()
public Account getAccountById(int id)
public void doneLoading()
public void resetDirtyFlags()
AccountresetDirtyFlags in class Accountpublic void currencyTableModified(CurrencyTable table)
currencyTableModified in interface CurrencyListenerpublic void accountModified(Account account)
AccountListeneraccountModified in interface AccountListenerpublic void accountBalanceChanged(Account account)
AccountListeneraccountBalanceChanged in interface AccountListenerpublic void accountDeleted(Account parentAccount, Account deletedAccount)
accountDeleted in interface AccountListenerpublic void accountAdded(Account parentAccount, Account newAccount)
accountAdded in interface AccountListenerpublic void setRecalcBalances(boolean doRecalcs)
public boolean getRecalcBalances()
public void addFileListener(MDFileListener listener)
public void removeFileListener(MDFileListener listener)
public void refreshAccountBalances()
public void reminderRemoved(Reminder r)
reminderRemoved in interface ReminderListenerpublic void reminderAdded(Reminder r)
reminderAdded in interface ReminderListenerpublic void reminderModified(Reminder r)
reminderModified in interface ReminderListenerpublic void transactionRemoved(AbstractTxn t)
transactionRemoved in interface TransactionListenerpublic void transactionAdded(AbstractTxn t)
transactionAdded in interface TransactionListenerpublic void transactionModified(AbstractTxn t)
transactionModified in interface TransactionListenerpublic Account getInvstCommissionAcct()
public void deleteAccountAndAllReferences(Account acct)