ex5.backend
Class MyPortfolioView

java.lang.Object
  |
  +--ex5.backend.MyPortfolioView
All Implemented Interfaces:
PortfolioView

public class MyPortfolioView
extends Object
implements PortfolioView


Constructor Summary
  MyPortfolioView(String pf, PortfolioActionHandler pah)
           
protected MyPortfolioView(Vector portfolio)
           
 
Method Summary
 Iterator getIterator()
           
 String getName()
           
 float getPrice(int index)
           
 int getShares(int index)
           
 String getTicker(int index)
           
 int numStocks()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyPortfolioView

public MyPortfolioView(String pf,
                       PortfolioActionHandler pah)

MyPortfolioView

protected MyPortfolioView(Vector portfolio)
Method Detail

numStocks

public int numStocks()
Specified by:
numStocks in interface PortfolioView

getName

public String getName()
Specified by:
getName in interface PortfolioView

getTicker

public String getTicker(int index)
Specified by:
getTicker in interface PortfolioView

getShares

public int getShares(int index)
Specified by:
getShares in interface PortfolioView

getPrice

public float getPrice(int index)
Specified by:
getPrice in interface PortfolioView

getIterator

public Iterator getIterator()
Specified by:
getIterator in interface PortfolioView