Venice 0.751beta

nz.org.venice.prefs.settings
Class PortfolioModuleSettings

java.lang.Object
  extended bynz.org.venice.prefs.settings.AbstractSettings
      extended bynz.org.venice.prefs.settings.PortfolioModuleSettings
All Implemented Interfaces:
Settings

public class PortfolioModuleSettings
extends AbstractSettings


Field Summary
 
Fields inherited from interface nz.org.venice.prefs.settings.Settings
ALERTS, ANALYSER, ANNMODULE, ANNRESULTS, CHART, CHARTMODULE, FRAME, GAMODULE, GARESULTS, GPMODULE, GPRESULTS, GRAPHS, HELP, HELPMODULE, MENUS, MODULE, PAPERTRADEMODULE, PAPERTRADERESULTS, PORTFOLIO, PORTFOLIOMODULE, PORTFOLIOTABLEMODULE, PREFERENCES, PREFERENCESMODULE, PREFS, QUOTEMODULE, ROOTMODULE, TABLE, TRANSACTIONMODULE, WATCHSCREENMODULE
 
Constructor Summary
PortfolioModuleSettings()
          PortfolioModuleSettings default constructor
PortfolioModuleSettings(java.lang.String title)
          Construct a PortfolioModuleSettings with title as key
 
Method Summary
 Module getModule(javax.swing.JDesktopPane desktop)
          Return a PortfolioModule based on the PortfolioModuleSettings
 Portfolio getPortfolio()
          Get the Portfolio of a PortfolioModule
 EODQuoteBundle getQuoteBundle()
          Get the quoteBundle from the PortfolioModuleSettings
 void setPortfolio(Portfolio portfolio)
          Set the Portfolio for the PortfolioModuleSettings
 void setQuoteBundle(EODQuoteBundle quoteBundle)
          Set the quoteBundle for the PortfolioModule Settings
 
Methods inherited from class nz.org.venice.prefs.settings.AbstractSettings
getGroup, getHBarPolicy, getHBarValue, getKey, getTitle, getType, getVBarPolicy, getVBarValue, setGroup, setHBarPolicy, setHBarValue, setKey, setScrollBarValues, setTitle, setType, setVBarPolicy, setVBarValue, toString, updateScrollPane
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PortfolioModuleSettings

public PortfolioModuleSettings()
PortfolioModuleSettings default constructor


PortfolioModuleSettings

public PortfolioModuleSettings(java.lang.String title)
Construct a PortfolioModuleSettings with title as key

Parameters:
title - The Title of the PortfolioModule
Method Detail

setQuoteBundle

public void setQuoteBundle(EODQuoteBundle quoteBundle)
Set the quoteBundle for the PortfolioModule Settings

Parameters:
quoteBundle - The quoteBundle of the PortfolioModule

getQuoteBundle

public EODQuoteBundle getQuoteBundle()
Get the quoteBundle from the PortfolioModuleSettings

Returns:
the quoteBundle of a PortfolioModule

setPortfolio

public void setPortfolio(Portfolio portfolio)
Set the Portfolio for the PortfolioModuleSettings

Parameters:
portfolio - The portfolio of the PortfolioModule

getPortfolio

public Portfolio getPortfolio()
Get the Portfolio of a PortfolioModule

Returns:
portfolio A portfolio

getModule

public Module getModule(javax.swing.JDesktopPane desktop)
Return a PortfolioModule based on the PortfolioModuleSettings

Specified by:
getModule in interface Settings
Overrides:
getModule in class AbstractSettings
Parameters:
desktop - The Venice desktop
Returns:
A PortfolioModule

Venice 0.751beta