java.applet.AppletStub |
Known Indirect Subclasses |
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.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called when the applet wants to be resized.
| |||||||||||
Returns the applet's context.
| |||||||||||
Gets the base URL.
| |||||||||||
Gets the URL of the document in which the applet is embedded.
| |||||||||||
Returns the value of the named parameter in the HTML tag.
| |||||||||||
Determines if the applet is active.
|
Called when the applet wants to be resized.
width | the new requested width for the applet. |
---|---|
height | the new requested height for the applet. |
Returns the applet's context.
Gets the base URL. This is the URL of the directory which contains the applet.
URL
of
the directory which contains the applet.Gets the URL of the document in which the applet is embedded. For example, suppose an applet is contained within the document:
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
of the document that contains the
applet.Returns the value of the named parameter in the HTML tag. For example, if an applet is specified as
<applet code="Clock" width=50 height=50> <param name=Color value="blue"> </applet>
then a call to getParameter("Color")
returns the
value "blue"
.
name | a parameter name. |
---|
Determines if the applet is active. An applet is active just
before its start
method is called. It becomes
inactive just before its stop
method is called.
true
if the applet is active;
false
otherwise.