Deprecated, for removal: This API element is subject to removal in a future version.
The Applet API is deprecated, no replacement.
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.- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appletResize
(int width, int height) Deprecated, for removal: This API element is subject to removal in a future version.Called when the applet wants to be resized.Deprecated, for removal: This API element is subject to removal in a future version.Returns the applet's context.Deprecated, for removal: This API element is subject to removal in a future version.Gets the baseURL
.Deprecated, for removal: This API element is subject to removal in a future version.Gets theURL
of the document in which the applet is embedded.getParameter
(String name) Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of the named parameter in the HTML tag.boolean
isActive()
Deprecated, for removal: This API element is subject to removal in a future version.Determines if the applet is active.
-
Method Details
-
isActive
boolean isActive()Deprecated, for removal: This API element is subject to removal in a future version.Determines if the applet is active. An applet is active just before itsstart
method is called. It becomes inactive just before itsstop
method is called.- Returns:
true
if the applet is active;false
otherwise
-
getDocumentBase
URL getDocumentBase()Deprecated, for removal: This API element is subject to removal in a future version.Gets theURL
of the document in which the applet is embedded. For example, suppose an applet is contained within the document:
The document base is:http://www.oracle.com/technetwork/java/index.html
http://www.oracle.com/technetwork/java/index.html
- Returns:
- the
URL
of the document that contains the applet - See Also:
-
getCodeBase
URL getCodeBase()Deprecated, for removal: This API element is subject to removal in a future version.Gets the baseURL
. This is theURL
of the directory which contains the applet.- Returns:
- the base
URL
of the directory which contains the applet - See Also:
-
getParameter
Deprecated, for removal: This API element is subject to removal in a future version.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"
.- Parameters:
name
- a parameter name- Returns:
- the value of the named parameter, or
null
if not set
-
getAppletContext
AppletContext getAppletContext()Deprecated, for removal: This API element is subject to removal in a future version.Returns the applet's context.- Returns:
- the applet's context
-
appletResize
void appletResize(int width, int height) Deprecated, for removal: This API element is subject to removal in a future version.Called when the applet wants to be resized.- Parameters:
width
- the new requested width for the appletheight
- the new requested height for the applet
-