webfunds.client.contracts
Class ChangeContractStore

java.lang.Object
  |
  +--webfunds.utils.Debug
        |
        +--webfunds.ricardian.DirContractStore
              |
              +--webfunds.client.contracts.ChangeContractStore

public class ChangeContractStore
extends DirContractStore
implements CorePart, java.beans.PropertyChangeListener

A ContractStore that implements the WebFunds property change.


Fields inherited from class webfunds.ricardian.DirContractStore
allNames, contracts, dir
 
Fields inherited from class webfunds.utils.Debug
bug, debugAll, logfix
 
Constructor Summary
ChangeContractStore()
           
ChangeContractStore(java.io.File storedir)
           
ChangeContractStore(java.io.File dir, java.io.PrintWriter bug)
           
 
Method Summary
 void propertyChange(java.beans.PropertyChangeEvent evt)
          Event to change the name of the contract.
 void setCore(Core core)
          Somewhere to get a GUI, presumably.
 java.lang.String toString()
           
 
Methods inherited from class webfunds.ricardian.DirContractStore
addContract, addDirectory, addThisName, dropNames, dropThisName, getAllContracts, getAllIds, getAllNames, getContract, getContractsByName, getDirectory, getIdsByName, getShortNamesWithClashes, getType, getUniqueContract, main, readDirectory, readNamesForContract, removeContract, setDirectory
 
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, wait, wait, wait
 

Constructor Detail

ChangeContractStore

public ChangeContractStore()

ChangeContractStore

public ChangeContractStore(java.io.File storedir)
                    throws ContractDirectoryException

ChangeContractStore

public ChangeContractStore(java.io.File dir,
                           java.io.PrintWriter bug)
                    throws ContractDirectoryException
Method Detail

setCore

public void setCore(Core core)
Somewhere to get a GUI, presumably.
Specified by:
setCore in interface CorePart

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Event to change the name of the contract. This is the user name that user wishes to see, presumably.
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

toString

public java.lang.String toString()
Overrides:
toString in class DirContractStore