public interface AppletStub
When an applet is first created, an applet stub is attached to it using the applet's setStub method. This stub serves as the interface between the applet and the browser environment or applet viewer environment in which the application is running.
Method Summary | |
---|---|
void |
appletResize
(int width, int height) Called when the applet wants to be resized. |
AppletContext |
getAppletContext
() ![]() ![]() |
URL |
getCodeBase
() Gets the base URL. |
URL |
getDocumentBase
() Gets the URL of the document in which the applet is embedded. |
String |
getParameter
(
String
name) Returns the value of the named parameter in the HTML tag. |
boolean |
isActive
() Determines if the applet is active. |
Method Detail |
---|
boolean isActive()
URL getDocumentBase()
The document base is:http://java.sun.com/products/jdk/1.2/index.html
http://java.sun.com/products/jdk/1.2/index.html
URL getCodeBase()
String getParameter(String name)
<applet code="Clock" width=50 height=50> <param name=Color value="blue"> </applet>
then a call to getParameter("Color") returns the value "blue".
AppletContext getAppletContext()
void appletResize(int width, int height)