[Webfunds-commits] java/webfunds/client SignContractWizard.java Core.java
Edwin Woudt
edwin@cypherpunks.ai
Tue, 8 Aug 2000 14:20:43 -0400 (AST)
edwin 00/08/08 14:20:42
Modified: webfunds/client Core.java
Added: webfunds/client SignContractWizard.java
Log:
Make the just added sign contract wizard show up in webfunds.
Revision Changes Path
1.60 +3 -2 java/webfunds/client/Core.java
Index: Core.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/client/Core.java,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -r1.59 -r1.60
--- Core.java 2000/08/07 23:47:17 1.59
+++ Core.java 2000/08/08 18:20:42 1.60
@@ -1,4 +1,4 @@
-/* $Id: Core.java,v 1.59 2000/08/07 23:47:17 edwin Exp $
+/* $Id: Core.java,v 1.60 2000/08/08 18:20:42 edwin Exp $
*
* Copyright (c) Systemics Inc. 1995-2000 on behalf of
* The WebFunds Development Team. All rights reserved.
@@ -205,7 +205,8 @@
String[] plugins = {
"webfunds.client.SimplePaymentFrame",
"webfunds.client.SimpleDepositFrame",
- "webfunds.client.contracts.ContractBrowser"
+ "webfunds.client.contracts.ContractBrowser",
+ "webfunds.client.SignContractWizard"
};
logmsg("Plugins: ");
1.1 java/webfunds/client/SignContractWizard.java
Index: SignContractWizard.java
===================================================================
/*
* $Id: SignContractWizard.java,v 1.1 2000/08/08 18:20:42 edwin Exp $
*
* Copyright (c) Systemics Inc 2000 on behalf of
* the WebFunds Development Team. All Rights Reserved.
*/
package webfunds.client;
import javax.swing.JFrame;
import webfunds.client.contracts.wizard.Wizard;
import webfunds.client.plugins.Plugin;
import webfunds.client.plugins.ModeNotSupportedException;
/**
* Plugin wrapper for the Sign Contract Wizard.
*
* <p>See the classes in webfunds.client.contracts.wizard for the standalone
* implementation used by this class.</p>
*
* @author Edwin Woudt <edwin@webfunds.org>
* @version $Revision: 1.1 $
*/
public class SignContractWizard
extends Plugin
{
// Constructor
//............................................................................
/**
* Emtpy constructor
*/
public SignContractWizard()
{
}
// Implemented abstract methods
//............................................................................
/**
* Return the name of the plugin, for titles and such like.
*/
public String getPluginName()
{
return "SignContractWizard";
}
// Overridden methods
//............................................................................
/**
* The fact that this method is implemented means that the plugin will
* appear in the top menu bar.
*
* @return the text that should be used in the menu
*/
public String getGeneralAction()
{
return getPluginName();
}
/**
* This method is called when the option for this plugin is selected and
* clicked on by the user.
*
* @throws ModeNotSupportedException this method does not throw this
* exception
*/
public void init() throws ModeNotSupportedException
{
JFrame frame = new JFrame();
frame.getContentPane().add(new Wizard());
frame.setSize(640,450);
frame.show();
}
}