com.moneydance.apps.md.model
Class OnlineTxnList

java.lang.Object
  extended by com.moneydance.apps.md.model.OnlineTxnList

public class OnlineTxnList
extends java.lang.Object

This class contains a set of transactions that are used for online banking and bill-payment. This information is very fluid and the structure will probably change, so all of the information is represented a StreamTable/Vector structure that can easily be serialized and deserialized from the data file.


Constructor Summary
OnlineTxnList(StreamTable info)
           
 
Method Summary
 void addListener(OnlineTxnListener listener)
           
 void addNewTxn(OnlineTxn txn)
           
 StreamTable getInfo()
          Should only be called from the io.*Writer classes for saving info in a file.
 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.
 int indexOf(OnlineTxn txn)
          returns true if the service information for this service is already in the service list.
 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 sortTransactions()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OnlineTxnList

public OnlineTxnList(StreamTable info)
Method Detail

getInfo

public StreamTable getInfo()
Should only be called from the io.*Writer classes for saving info in a file.


getTxnCount

public int getTxnCount()
Get the number of online services that the user has access to.


getTxn

public OnlineTxn getTxn(int i)
Get a service object for the service at the specified index. Returns null if the index is out of bounds.


indexOf

public int indexOf(OnlineTxn txn)
returns true if the service information for this service is already in the service list.


removeTxn

public void removeTxn(int i)
Remove the txn object at the specified index.


removeTxn

public boolean removeTxn(OnlineTxn txn)
Remove the given txn object from the list. Returns true if the value was found in the list.


newTxn

public OnlineTxn newTxn()
Create a new OnlineTxn that is associated, but not yet a member of, this list. Call addNewTxn() to add the newly created transaction to the list.


newTxnFromString

public OnlineTxn newTxnFromString(java.lang.String serializedTxn)
Create a new OnlineTxn that is associated, but not yet a member of, this list. The transaction is deserialized from the given string that should be created using the toSerializedString() method of OnlineTxn. Call addNewTxn() to add the newly created transaction to the list.


addNewTxn

public void addNewTxn(OnlineTxn txn)

addListener

public void addListener(OnlineTxnListener listener)

removeListener

public void removeListener(OnlineTxnListener listener)

sortTransactions

public void sortTransactions()