[Webfunds-commits] java/webfunds/client/plugins Manager.java PluginManager.java WalletManager.java
Ian Grigg
iang@cypherpunks.ai
Fri, 13 Apr 2001 23:29:54 -0400 (AST)
iang 01/04/13 23:29:54
Modified: webfunds/client/plugins PluginManager.java
WalletManager.java
Added: webfunds/client/plugins Manager.java
Log:
"moved" Manager to plugins, only place it is used!
Revision Changes Path
1.23 +1 -2 java/webfunds/client/plugins/PluginManager.java
Index: PluginManager.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/client/plugins/PluginManager.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- PluginManager.java 2001/04/13 17:43:16 1.22
+++ PluginManager.java 2001/04/14 03:29:53 1.23
@@ -1,5 +1,5 @@
/*
- * $Id: PluginManager.java,v 1.22 2001/04/13 17:43:16 iang Exp $
+ * $Id: PluginManager.java,v 1.23 2001/04/14 03:29:53 iang Exp $
*
* Copyright (c) 1995-2000 Systemics Inc on behalf of
* the WebFunds Development Team. All Rights Reserved.
@@ -26,7 +26,6 @@
import webfunds.client.AccountInfo;
import webfunds.client.Addressbook;
import webfunds.client.CorePart;
-import webfunds.client.Manager;
import webfunds.client.UInterface;
import webfunds.client.WalletInterface;
import webfunds.client.*;
1.8 +1 -2 java/webfunds/client/plugins/WalletManager.java
Index: WalletManager.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/client/plugins/WalletManager.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- WalletManager.java 2001/04/13 17:43:16 1.7
+++ WalletManager.java 2001/04/14 03:29:53 1.8
@@ -1,5 +1,5 @@
/*
- * $Id: WalletManager.java,v 1.7 2001/04/13 17:43:16 iang Exp $
+ * $Id: WalletManager.java,v 1.8 2001/04/14 03:29:53 iang Exp $
*
* Copyright (c) Systemics Ltd 1995-1999 on behalf of
* the WebFunds Development Team. All Rights Reserved.
@@ -26,7 +26,6 @@
import webfunds.client.Addressbook;
import webfunds.client.WalletInterface;
-import webfunds.client.Manager;
import webfunds.client.CorePart;
import webfunds.client.AccountBrowser;
import webfunds.client.UInterface;
1.1 java/webfunds/client/plugins/Manager.java
Index: Manager.java
===================================================================
/* $Id: Manager.java,v 1.1 2001/04/14 03:29:53 iang Exp $
*
* Copyright (c) Systemics Ltd 1995-2000 on behalf of
* the WebFunds Development Team. All Rights Reserved.
*/
package webfunds.client.plugins;
import java.beans.*;
import java.util.*;
import java.io.PrintWriter;
import webfunds.utils.Debug;
import webfunds.client.Core;
public abstract class Manager
extends Debug
{
protected Core core;
protected Vector propchangelisteners = new Vector();
protected ClassLoader classloader;
public Manager() { init(); }
public Manager(PrintWriter bug) { debug(bug); init(); }
public Manager(PrintWriter bug, String s) { debug(bug, s); init(); }
public void init()
{
classloader = this.getClass().getClassLoader();
Beans.setDesignTime(false);
//Beans.setGuiAvailable(true);
}
public void setCore(Core aCore)
{
if(core == null)
core = aCore;
}
public String getType()
{
return "Manager";
}
protected abstract void updateAccountBrowser();
public synchronized void
addPropertyChangeListener(PropertyChangeListener pl)
{
if(!(propchangelisteners.contains(pl) ))
propchangelisteners.addElement(pl);
}
public synchronized void
removePropertyChangeListener(PropertyChangeListener pl)
{
if((pl != null) && (propchangelisteners.contains(pl) ))
propchangelisteners.removeElement(pl);
}
public void
firePropertyChangeEvent(String propertyname,
Object oldvalue, Object newvalue)
{
PropertyChangeEvent evt =
new PropertyChangeEvent(this, propertyname, oldvalue, newvalue);
Vector v;
synchronized(this)
{
v = (Vector)propchangelisteners.clone();
}
int size = v.size();
for(int i = 0; i < size; i++)
((PropertyChangeListener)v.elementAt(i) ).propertyChange(evt);
}
}