import java.applet.*; import java.net.URL; import java.util.Hashtable; public class ParamAppletStub implements AppletStub { AppletContext ac; boolean isActive = false; Hashtable params; URL documentBase = null; URL codeBase = null; public ParamAppletStub(AppletContext ac, Hashtable params) { this.ac = ac; this.params = params; } public ParamAppletStub(AppletContext ac, Hashtable params, URL documentBase, URL codeBase) { this.ac = ac; this.params = params; this.documentBase = documentBase; this.codeBase = codeBase; } public void activate() { isActive = true; } public void deactivate() { isActive = false; } public boolean isActive() { return isActive; } public URL getDocumentBase() { return documentBase; } public URL getCodeBase() { return codeBase; } public String getParameter(String name) { return (String) params.get(name); } public AppletContext getAppletContext() { return ac; } public void appletResize(int width, int height) { } }