|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.moneydance.apps.md.model.Account
com.moneydance.apps.md.model.RootAccount
public class RootAccount
The root of all accounts. All "top-level" accounts are actually children of this account. Adding a listener to this account, effectively adds a listener to the root, and all sub-accounts. The RootAccount represents a full data set including reminders, tags, a set of transactions, and online banking information.
Field Summary | |
---|---|
static java.lang.String |
STORE_PINS_PARAM
|
Constructor Summary | |
---|---|
RootAccount(CurrencyType currency,
CurrencyTable currencyTable)
|
|
RootAccount(CurrencyType currency,
CurrencyTable currencyTable,
java.util.Hashtable settings)
|
|
RootAccount(java.lang.String acctName,
CurrencyType currency,
CurrencyTable currencyTable,
java.util.Hashtable settings)
|
Method Summary | |
---|---|
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()
|
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 |
setDataFile(java.io.File f)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String STORE_PINS_PARAM
Constructor Detail |
---|
public RootAccount(CurrencyType currency, CurrencyTable currencyTable)
public RootAccount(CurrencyType currency, CurrencyTable currencyTable, java.util.Hashtable settings)
public RootAccount(java.lang.String acctName, CurrencyType currency, CurrencyTable currencyTable, java.util.Hashtable settings)
Method Detail |
---|
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 OnlineInfoListener
public 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 void setDataFile(java.io.File f)
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 Account
public OnlineInfo getOnlineInfo()
public Account getAccountById(int id)
public void doneLoading()
public void resetDirtyFlags()
Account
resetDirtyFlags
in class Account
public void currencyTableModified(CurrencyTable table)
currencyTableModified
in interface CurrencyListener
public void accountModified(Account account)
AccountListener
accountModified
in interface AccountListener
public void accountBalanceChanged(Account account)
AccountListener
accountBalanceChanged
in interface AccountListener
public void accountDeleted(Account parentAccount, Account deletedAccount)
accountDeleted
in interface AccountListener
public void accountAdded(Account parentAccount, Account newAccount)
accountAdded
in interface AccountListener
public 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 ReminderListener
public void reminderAdded(Reminder r)
reminderAdded
in interface ReminderListener
public void reminderModified(Reminder r)
reminderModified
in interface ReminderListener
public void transactionRemoved(AbstractTxn t)
transactionRemoved
in interface TransactionListener
public void transactionAdded(AbstractTxn t)
transactionAdded
in interface TransactionListener
public void transactionModified(AbstractTxn t)
transactionModified
in interface TransactionListener
public Account getInvstCommissionAcct()
public void deleteAccountAndAllReferences(Account acct)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |