home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 139 / dpcs0999.iso / Web / CFserver / data1.cab / Java / netscape / application / FoundationAppletStub.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-04-12  |  2.3 KB  |  81 lines

  1. package netscape.application;
  2.  
  3. import java.applet.Applet;
  4. import java.applet.AppletContext;
  5. import java.applet.AppletStub;
  6. import java.applet.AudioClip;
  7. import java.awt.Image;
  8. import java.io.File;
  9. import java.net.URL;
  10. import java.util.Enumeration;
  11. import java.util.Vector;
  12.  
  13. class FoundationAppletStub implements AppletStub, AppletContext {
  14.    URL documentBase;
  15.    URL codeBase;
  16.  
  17.    public boolean isActive() {
  18.       return true;
  19.    }
  20.  
  21.    public URL getDocumentBase() {
  22.       if (this.documentBase == null) {
  23.          try {
  24.             this.documentBase = new URL("file:" + System.getProperty("user.dir").replace(File.separatorChar, '/') + "/");
  25.          } catch (Exception var1) {
  26.          }
  27.       }
  28.  
  29.       return this.documentBase;
  30.    }
  31.  
  32.    public URL getCodeBase() {
  33.       if (this.codeBase == null) {
  34.          try {
  35.             this.codeBase = new URL("file:" + System.getProperty("user.dir").replace(File.separatorChar, '/') + "/");
  36.          } catch (Exception var1) {
  37.          }
  38.       }
  39.  
  40.       return this.codeBase;
  41.    }
  42.  
  43.    public String getParameter(String var1) {
  44.       return null;
  45.    }
  46.  
  47.    public AppletContext getAppletContext() {
  48.       return this;
  49.    }
  50.  
  51.    public void appletResize(int var1, int var2) {
  52.    }
  53.  
  54.    public AudioClip getAudioClip(URL var1) {
  55.       return null;
  56.    }
  57.  
  58.    public Image getImage(URL var1) {
  59.       return AWTCompatibility.awtToolkit().getImage(var1);
  60.    }
  61.  
  62.    public Applet getApplet(String var1) {
  63.       return null;
  64.    }
  65.  
  66.    public Enumeration getApplets() {
  67.       Vector var1 = new Vector();
  68.       var1.addElement(AWTCompatibility.awtApplet());
  69.       return var1.elements();
  70.    }
  71.  
  72.    public void showDocument(URL var1) {
  73.    }
  74.  
  75.    public void showDocument(URL var1, String var2) {
  76.    }
  77.  
  78.    public void showStatus(String var1) {
  79.    }
  80. }
  81.