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.
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.
(active? this)
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.
returns: true if the applet is active;
false otherwise. - boolean
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. returns: true if the applet is active; false otherwise. - `boolean`
(applet-resize this width height)
Called when the applet wants to be resized.
width - the new requested width for the applet. - int
height - the new requested height for the applet. - int
Called when the applet wants to be resized. width - the new requested width for the applet. - `int` height - the new requested height for the applet. - `int`
(get-applet-context this)
Returns the applet's context.
returns: the applet's context. - java.applet.AppletContext
Returns the applet's context. returns: the applet's context. - `java.applet.AppletContext`
(get-code-base this)
Gets the base URL. This is the URL of the directory which contains the applet.
returns: the base URL of
the directory which contains the applet. - java.net.URL
Gets the base URL. This is the URL of the directory which contains the applet. returns: the base URL of the directory which contains the applet. - `java.net.URL`
(get-document-base this)
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.html
The document base is:
http://www.oracle.com/technetwork/java/index.html
returns: the URL of the document that contains the
applet. - java.net.URL
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.html The document base is: http://www.oracle.com/technetwork/java/index.html returns: the URL of the document that contains the applet. - `java.net.URL`
(get-parameter this 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. - java.lang.String
returns: the value of the named parameter,
or null if not set. - java.lang.String
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. - `java.lang.String` returns: the value of the named parameter, or null if not set. - `java.lang.String`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close