39 |
import java.applet.AppletContext; |
import java.applet.AppletContext; |
40 |
import java.applet.AppletStub; |
import java.applet.AppletStub; |
41 |
import java.net.URL; |
import java.net.URL; |
42 |
|
import java.util.Map; |
43 |
|
|
44 |
public class AppletStubImpl implements AppletStub |
public class AppletStubImpl implements AppletStub |
45 |
{ |
{ |
46 |
|
private AppletContext context; |
47 |
private URL codeBase; |
private URL codeBase; |
48 |
private URL documentBase; |
private URL documentBase; |
49 |
|
private Map params; |
50 |
|
|
51 |
public AppletStubImpl() |
AppletStubImpl (AppletContext context, URL codeBase, URL documentBase, |
52 |
|
Map params) |
53 |
{ |
{ |
54 |
throw new Error ("not implemented"); |
this.context = context; |
55 |
|
this.codeBase = codeBase; |
56 |
|
this.documentBase = documentBase; |
57 |
|
this.params = params; |
58 |
} |
} |
59 |
|
|
60 |
public void appletResize (int width, int height) |
public native void appletResize (int width, int height); |
|
{ |
|
|
throw new Error ("not implemented"); |
|
|
} |
|
61 |
|
|
62 |
public AppletContext getAppletContext() |
public AppletContext getAppletContext() |
63 |
{ |
{ |
64 |
throw new Error ("not implemented"); |
return context; |
65 |
} |
} |
66 |
|
|
67 |
public URL getCodeBase() |
public URL getCodeBase() |
68 |
{ |
{ |
69 |
return codeBase; |
return codeBase; |
70 |
} |
} |
71 |
|
|
72 |
public URL getDocumentBase() |
public URL getDocumentBase() |
73 |
{ |
{ |
74 |
return documentBase; |
return documentBase; |
76 |
|
|
77 |
public String getParameter (String name) |
public String getParameter (String name) |
78 |
{ |
{ |
79 |
throw new Error ("not implemented"); |
return (String) params.get (name); |
80 |
} |
} |
81 |
|
|
82 |
public boolean isActive() |
public native boolean isActive(); |
|
{ |
|
|
throw new Error ("not implemented"); |
|
|
} |
|
83 |
} |
} |