public class OnlinePayeeList extends MoneydanceSyncableItem
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SYNCABLE_TYPE_VALUE |
book, info
Constructor and Description |
---|
OnlinePayeeList(AccountBook book) |
OnlinePayeeList(AccountBook book,
StreamTable infoTable)
create a payee list and populate it with the pre-Moneydance2015 format streamtable data.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(OnlinePayeeListener listener) |
void |
addNewPayee(OnlinePayee payee)
Adds the specified payee to the payee list.
|
void |
clearAllPayees()
Remove all payees from the list (so that they can be
resynchronized from the server.
|
OnlinePayee |
getPayee(int i)
Get the payee object at the specified index.
|
OnlinePayee |
getPayeeByListID(java.lang.String listID) |
int |
getPayeeCount() |
java.lang.String |
getPayeeListSyncToken() |
java.lang.String |
getSyncItemType()
Subclasses should override this to return a static string identifying their type of object
|
int |
indexOf(OnlinePayee payee)
returns true if the service information for this service is
already in the service 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.
|
OnlinePayee |
newPayee()
This creates a new payee that is associated with this list.
|
void |
removeListener(OnlinePayeeListener listener) |
void |
removePayee(int i)
Remove the payee object at the specified index.
|
boolean |
removePayee(OnlinePayee payee)
Remove the given payee object from the list.
|
void |
setPayeeListSyncToken(java.lang.String syncToken) |
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 OnlinePayeeList(AccountBook book, StreamTable infoTable)
public OnlinePayeeList(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 java.lang.String getPayeeListSyncToken()
public void setPayeeListSyncToken(java.lang.String syncToken)
public int getPayeeCount()
public OnlinePayee getPayeeByListID(java.lang.String listID)
public OnlinePayee getPayee(int i)
public int indexOf(OnlinePayee payee)
public void removePayee(int i)
public boolean removePayee(OnlinePayee payee)
public void clearAllPayees()
public OnlinePayee newPayee()
public void addNewPayee(OnlinePayee payee)
public void addListener(OnlinePayeeListener listener)
public void removeListener(OnlinePayeeListener listener)