public class OnlineTxnList extends MoneydanceSyncableItem
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SYNCABLE_TYPE_VALUE |
book, info| Constructor and Description |
|---|
OnlineTxnList(AccountBook book) |
OnlineTxnList(AccountBook book,
StreamTable info) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(OnlineTxnListener listener) |
void |
addNewTxn(OnlineTxn txn) |
long |
getOFXLastTxnUpdate() |
long |
getOnlineAvailBalance()
Returns the available balance that was acquired from an online source,
or zero if no balance was acquired.
|
long |
getOnlineAvailBalanceDate()
Returns the 'as of' date for the available balance that was acquired from
an online source, or zero if no balance was acquired.
|
long |
getOnlineLedgerBalance()
Returns the ledger balance that was acquired from an online source,
or zero if no balance was acquired.
|
long |
getOnlineLedgerBalanceDate()
Returns the 'as of' date for the ledger balance that was acquired from
an online source, or zero if no balance was acquired.
|
java.lang.String |
getSyncItemType()
Subclasses should override this to return a static string identifying their type of object
|
OnlineTxn |
getTxn(int i)
Get a service object for the service at the specified index.
|
int |
getTxnCount()
Get the number of online services that the user has
access to.
|
boolean |
hasOnlineAvailBalance()
Returns the available balance that was acquired from an online source,
or zero if no balance was acquired.
|
boolean |
hasOnlineLedgerBalance()
Returns the ledger balance that was acquired from an online source, or zero if no balance was acquired.
|
int |
indexOf(OnlineTxn txn)
returns true if the service information for this service is
already in the service list.
|
protected void |
itemWasUpdated()
This is called after an item is updated by calling itemWasUpdated(SyncRecord).
|
protected void |
itemWillSync()
This is called just before an item will be stored and/or synced when itemWillSync(SyncRecord)
is called.
|
OnlineTxn |
newTxn()
Create a new OnlineTxn that is associated, but not yet a member of, this list.
|
OnlineTxn |
newTxnFromString(java.lang.String serializedTxn)
Create a new OnlineTxn that is associated, but not yet a member of, this list.
|
void |
removeListener(OnlineTxnListener listener) |
void |
removeTxn(int i)
Remove the txn object at the specified index.
|
boolean |
removeTxn(OnlineTxn txn)
Remove the given txn object from the list.
|
void |
setOFXLastTxnUpdate(long date) |
void |
setOnlineAvailBalance(long onlineBalance,
long asOfDate)
Sets the available balance that was acquired from an online source.
|
void |
setOnlineLedgerBalance(long onlineBalance,
long asOfDate)
Sets the ledger balance that was acquired from an online source.
|
void |
sortTransactions() |
addParameters, addTags, autoSyncsChanges, decodeKeywordList, deleteItem, doesParameterExist, duplicate, encodeKeywordList, equals, getAccountParameter, getAddress, getAddressParameter, getBook, getBooleanParameter, getCurrencyParameter, getDoubleParameter, getIntParameter, getKeywords, getLongParameter, getParameter, getParameter, getParameterCount, getParameterKeys, getPreference, getPreferenceBoolean, getPreferenceDouble, getPreferenceInt, getPreferenceIntArray, getPreferenceLong, getPreferenceStringList, getPreferenceSublist, getPreferenceSubset, getSyncInfo, getSyncTimestamp, getUUID, hashCode, hasKeywordSubstring, initialize, isInEditingMode, isSyncable, itemWasUpdated, itemWillSync, makeSyncableItem, removeParameter, setAccountParameter, setAddress, setAddressParameter, setCurrencyParameter, setDirty, setEditingMode, setKeywords, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameterNoNotify, setPreference, setPreference, setPreference, syncItempublic static final java.lang.String SYNCABLE_TYPE_VALUE
public OnlineTxnList(AccountBook book, StreamTable info)
public OnlineTxnList(AccountBook book)
public final java.lang.String getSyncItemType()
MoneydanceSyncableItemgetSyncItemType in interface com.infinitekind.tiksync.SyncableItemgetSyncItemType in class MoneydanceSyncableItemprotected void itemWasUpdated()
MoneydanceSyncableItemitemWasUpdated in class MoneydanceSyncableItemprotected void itemWillSync()
MoneydanceSyncableItemitemWillSync in class MoneydanceSyncableItempublic int getTxnCount()
public OnlineTxn getTxn(int i)
public int indexOf(OnlineTxn txn)
public void removeTxn(int i)
public boolean removeTxn(OnlineTxn txn)
public OnlineTxn newTxn()
public OnlineTxn newTxnFromString(java.lang.String serializedTxn)
public void addNewTxn(OnlineTxn txn)
public boolean hasOnlineLedgerBalance()
public long getOFXLastTxnUpdate()
public void setOFXLastTxnUpdate(long date)
public long getOnlineLedgerBalance()
public long getOnlineLedgerBalanceDate()
public void setOnlineLedgerBalance(long onlineBalance,
long asOfDate)
public boolean hasOnlineAvailBalance()
public long getOnlineAvailBalance()
public long getOnlineAvailBalanceDate()
public void setOnlineAvailBalance(long onlineBalance,
long asOfDate)
public void addListener(OnlineTxnListener listener)
public void removeListener(OnlineTxnListener listener)
public void sortTransactions()