java.applet
Interface AppletStub


public interface AppletStub

This interface is the low level interface between the applet and the browser.

Since:
1.0
See Also:
Applet.setStub(AppletStub)

Method Summary
 void appletResize(int width, int height)
          Requests that the applet window for this applet be resized.
 AppletContext getAppletContext()
          Returns the applet context for this applet.
 URL getCodeBase()
          Returns the URL of the code base for this applet.
 URL getDocumentBase()
          Returns the basename URL of the document this applet is embedded in.
 String getParameter(String name)
          Returns the value of the specified parameter that was specified in the <APPLET> tag for this applet.
 boolean isActive()
          Tests whether or not this applet is currently active.
 

Method Detail

isActive

boolean isActive()
Tests whether or not this applet is currently active. An applet is active just before the browser invokes start(), and becomes inactive just before the browser invokes stop().

Returns:
true if this applet is active

getDocumentBase

URL getDocumentBase()
Returns the basename URL of the document this applet is embedded in. This is everything up to the final '/'.

Returns:
the URL of the document this applet is embedded in
See Also:
getCodeBase()

getCodeBase

URL getCodeBase()
Returns the URL of the code base for this applet.

Returns:
the URL of the code base for this applet

getParameter

String getParameter(String name)
Returns the value of the specified parameter that was specified in the <APPLET> tag for this applet.

Parameters:
name - the parameter name
Returns:
the parameter value, or null if the parameter does not exist
Throws:
NullPointerException - if name is null

getAppletContext

AppletContext getAppletContext()
Returns the applet context for this applet.

Returns:
the applet context for this applet

appletResize

void appletResize(int width,
                  int height)
Requests that the applet window for this applet be resized.

Parameters:
width - the new width in pixels
height - the new height in pixels