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()
          Add a new transaction.
 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()
Add a new transaction. This creates an online transaction adds it to the set, and returns it.


addNewTxn

public void addNewTxn(OnlineTxn txn)

addListener

public void addListener(OnlineTxnListener listener)

removeListener

public void removeListener(OnlineTxnListener listener)

sortTransactions

public void sortTransactions()