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.
Applet.setStub(java.applet.AppletStub)
boolean isActive()
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.URL getDocumentBase()
Gets the URL of the document in which the applet is embedded. For example, suppose an applet is contained within the document:
http://www.oracle.com/technetwork/java/index.htmlThe document base is:
http://www.oracle.com/technetwork/java/index.html
URL
of the document that contains the applet.getCodeBase()
URL getCodeBase()
Gets the base URL. This is the URL of the directory which contains the applet.
URL
of the directory which contains the applet.getDocumentBase()
String getParameter(String name)
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.null
if not set.AppletContext getAppletContext()
Returns the applet's context.
void appletResize(int width, int height)
Called when the applet wants to be resized.
width
- the new requested width for the applet.height
- the new requested height for the applet.
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.