webfunds.client.plugins
Class WalletManager

java.lang.Object
  |
  +--webfunds.utils.Debug
        |
        +--webfunds.client.Manager
              |
              +--webfunds.client.plugins.WalletManager

public class WalletManager
extends Manager
implements CorePart, WalletContext


Fields inherited from class webfunds.client.Manager
classloader, core, propchangelisteners
 
Fields inherited from class webfunds.utils.Debug
bug, debugAll, logfix
 
Constructor Summary
WalletManager(java.io.PrintWriter bug)
           
 
Method Summary
 void add3rdPartyWallet(java.io.File top, java.lang.String wal)
           
 void add3rdPartyWallets(java.io.File walletDir)
          Plug in the 3rd party wallets out of the directory dir.
 void addWallet(webfunds.client.plugins.PluginClassLoader cl, java.lang.String main, java.lang.String home)
           
 void addWallet(java.lang.String classname)
          Plug in the known WebFunds wallets out of the classpath.
 void addWallet(java.lang.String classname, java.lang.String old)
           
 Addressbook getAddressbook(WalletInterface wi)
          how to interpret low level names to printable names
 ChangeContractStore getContractStore(WalletInterface wi)
           
 java.io.File getHome(WalletInterface wi)
          static, read-only data that is supplied with a third-party wallet
 PluginManager getPluginManager(WalletInterface wi)
          the PluginManager for modifying the GUI's menus
 java.util.Properties getProperties(WalletInterface wi)
          get a Properties object with undefined properties set within
 java.security.SecureRandom getSecureRandom()
           
 Store getStore(WalletInterface wi)
          the persistant storage object available from client
 java.lang.String getType()
           
 UInterface getUInterface(WalletInterface wi)
          the GUI
 WalletInterface[] getWallets()
           
 IniFileReader readAsIniFile(java.io.File pugSpec)
           
 void removeWallet(WalletInterface wallet)
           
protected  void updateAccountBrowser()
           
 
Methods inherited from class webfunds.client.Manager
addPropertyChangeListener, firePropertyChangeEvent, init, removePropertyChangeListener, setCore
 
Methods inherited from class webfunds.utils.Debug
debug, debug, debug, debug, err, getDebug, logend, logmsg, logstart, logword
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WalletManager

public WalletManager(java.io.PrintWriter bug)
Method Detail

getType

public java.lang.String getType()
Specified by:
getType in interface CorePart
Overrides:
getType in class Manager

updateAccountBrowser

protected void updateAccountBrowser()
Overrides:
updateAccountBrowser in class Manager

addWallet

public void addWallet(java.lang.String classname,
                      java.lang.String old)

getWallets

public WalletInterface[] getWallets()

removeWallet

public void removeWallet(WalletInterface wallet)

getUInterface

public UInterface getUInterface(WalletInterface wi)
Description copied from interface: WalletContext
the GUI
Specified by:
getUInterface in interface WalletContext

getContractStore

public ChangeContractStore getContractStore(WalletInterface wi)
Specified by:
getContractStore in interface WalletContext

getStore

public Store getStore(WalletInterface wi)
               throws StoreException
Description copied from interface: WalletContext
the persistant storage object available from client
Specified by:
getStore in interface WalletContext

getAddressbook

public Addressbook getAddressbook(WalletInterface wi)
Description copied from interface: WalletContext
how to interpret low level names to printable names
Specified by:
getAddressbook in interface WalletContext

getProperties

public java.util.Properties getProperties(WalletInterface wi)
Description copied from interface: WalletContext
get a Properties object with undefined properties set within
Specified by:
getProperties in interface WalletContext

getSecureRandom

public java.security.SecureRandom getSecureRandom()
Specified by:
getSecureRandom in interface WalletContext

getPluginManager

public PluginManager getPluginManager(WalletInterface wi)
Description copied from interface: WalletContext
the PluginManager for modifying the GUI's menus
Specified by:
getPluginManager in interface WalletContext

getHome

public java.io.File getHome(WalletInterface wi)
Description copied from interface: WalletContext
static, read-only data that is supplied with a third-party wallet
Specified by:
getHome in interface WalletContext

addWallet

public void addWallet(java.lang.String classname)
Plug in the known WebFunds wallets out of the classpath.

add3rdPartyWallets

public void add3rdPartyWallets(java.io.File walletDir)
Plug in the 3rd party wallets out of the directory dir.

add3rdPartyWallet

public void add3rdPartyWallet(java.io.File top,
                              java.lang.String wal)
                       throws PluginException

addWallet

public void addWallet(webfunds.client.plugins.PluginClassLoader cl,
                      java.lang.String main,
                      java.lang.String home)
               throws PluginException

readAsIniFile

public IniFileReader readAsIniFile(java.io.File pugSpec)
                            throws PluginException