home *** CD-ROM | disk | FTP | other *** search
- package netscape.application;
-
- import java.applet.Applet;
- import java.applet.AppletContext;
- import java.applet.AppletStub;
- import java.applet.AudioClip;
- import java.awt.Image;
- import java.io.File;
- import java.net.URL;
- import java.util.Enumeration;
- import java.util.Vector;
-
- class FoundationAppletStub implements AppletStub, AppletContext {
- URL documentBase;
- URL codeBase;
-
- public boolean isActive() {
- return true;
- }
-
- public URL getDocumentBase() {
- if (this.documentBase == null) {
- try {
- this.documentBase = new URL("file:" + System.getProperty("user.dir").replace(File.separatorChar, '/') + "/");
- } catch (Exception var1) {
- }
- }
-
- return this.documentBase;
- }
-
- public URL getCodeBase() {
- if (this.codeBase == null) {
- try {
- this.codeBase = new URL("file:" + System.getProperty("user.dir").replace(File.separatorChar, '/') + "/");
- } catch (Exception var1) {
- }
- }
-
- return this.codeBase;
- }
-
- public String getParameter(String var1) {
- return null;
- }
-
- public AppletContext getAppletContext() {
- return this;
- }
-
- public void appletResize(int var1, int var2) {
- }
-
- public AudioClip getAudioClip(URL var1) {
- return null;
- }
-
- public Image getImage(URL var1) {
- return AWTCompatibility.awtToolkit().getImage(var1);
- }
-
- public Applet getApplet(String var1) {
- return null;
- }
-
- public Enumeration getApplets() {
- Vector var1 = new Vector();
- var1.addElement(AWTCompatibility.awtApplet());
- return var1.elements();
- }
-
- public void showDocument(URL var1) {
- }
-
- public void showDocument(URL var1, String var2) {
- }
-
- public void showStatus(String var1) {
- }
- }
-