public class OnlinePaymentList extends MoneydanceSyncableItem
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SYNCABLE_TYPE_VALUE |
book, info
Constructor and Description |
---|
OnlinePaymentList(AccountBook book) |
OnlinePaymentList(AccountBook book,
StreamTable infoTable) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(OnlinePaymentListener listener) |
void |
addNewPayment(OnlinePayment payment)
Adds the specified payment to the payment list.
|
void |
clearAllPayments()
Remove all payments from the list (so that they can be resynchronized from the server.
|
void |
clearOldPayments()
Removes all payments that have been processed over 30 days ago.
|
OnlinePayment |
getPayment(int i)
Get a service object for the service at the specified index.
|
OnlinePayment |
getPaymentByID(java.lang.String id) |
int |
getPaymentCount()
Get the number of online services that the user has
access to.
|
java.lang.String |
getPaymentListSyncToken() |
java.lang.String |
getSyncItemType()
Subclasses should override this to return a static string identifying their type of object
|
int |
indexOf(OnlinePayment payment)
returns the index of the given payment in the list of payments, or -1
if the payment is not in the list.
|
void |
itemWasUpdated()
This is called after an item is updated by calling itemWasUpdated(SyncRecord).
|
void |
itemWillSync()
This is called just before an item will be stored and/or synced when itemWillSync(SyncRecord)
is called.
|
OnlinePayment |
newPayment(OnlinePayee payee)
This creates a new payment that is associated with this list and
the specified payee.
|
void |
removeListener(OnlinePaymentListener listener) |
void |
removePayment(int i)
Remove the payment object at the specified index.
|
boolean |
removePayment(OnlinePayment payment)
Remove the given payment object from the list.
|
void |
setPaymentListSyncToken(java.lang.String syncToken) |
java.lang.String |
toString() |
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, syncItem
public static final java.lang.String SYNCABLE_TYPE_VALUE
public OnlinePaymentList(AccountBook book, StreamTable infoTable)
public OnlinePaymentList(AccountBook book)
public final java.lang.String getSyncItemType()
MoneydanceSyncableItem
getSyncItemType
in interface com.infinitekind.tiksync.SyncableItem
getSyncItemType
in class MoneydanceSyncableItem
public void itemWasUpdated()
MoneydanceSyncableItem
itemWasUpdated
in class MoneydanceSyncableItem
public void itemWillSync()
MoneydanceSyncableItem
itemWillSync
in class MoneydanceSyncableItem
public void clearAllPayments()
public java.lang.String getPaymentListSyncToken()
public void setPaymentListSyncToken(java.lang.String syncToken)
public int getPaymentCount()
public OnlinePayment getPaymentByID(java.lang.String id)
public OnlinePayment getPayment(int i)
public int indexOf(OnlinePayment payment)
public void removePayment(int i)
public boolean removePayment(OnlinePayment payment)
public OnlinePayment newPayment(OnlinePayee payee)
public void addNewPayment(OnlinePayment payment)
public void clearOldPayments()
public void addListener(OnlinePaymentListener listener)
public void removeListener(OnlinePaymentListener listener)
public java.lang.String toString()
toString
in class java.lang.Object