View Javadoc

1   package fr.ove.applet;
2   
3   import java.applet.*;
4   import java.net.*;
5   
6   /***
7   * An implementation of the <CODE>AppletStub</CODE> interface.<BR>
8   * This is the stub sets to an <CODE>AppletLoadingChecked</CODE> applet.
9   */
10  public class ALCAppletStub implements AppletStub {
11      AppletLoadingChecked parent;
12  
13      ALCAppletStub(AppletLoadingChecked parent) {
14          this.parent = parent;
15      }
16  
17      public void appletResize(int width, int height) {
18          parent.resize(width, height);
19      }
20  
21      public URL getCodeBase() {
22          return parent.getCodeBase();
23      }
24  
25      public URL getDocumentBase() {
26          return parent.getDocumentBase();
27      }
28  
29      public boolean isActive() {
30          return parent.isActive();
31      }
32  
33      public AppletContext getAppletContext() {
34          return parent.getAppletContext();
35      }
36  
37      public String getParameter(String p) {
38          return parent.getParameter(p);
39      }
40  }