public interface AppletStub
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)
Modifier and Type | Method and Description |
---|---|
void |
appletResize(int width,
int height)
Called when the applet wants to be resized.
|
AppletContext |
getAppletContext()
Returns the applet's context.
|
URL |
getCodeBase()
Gets the base URL.
|
URL |
getDocumentBase()
Gets the URL of the document in which the applet is embedded.
|
String |
getParameter(String name)
Returns the value of the named parameter in the HTML tag.
|
boolean |
isActive()
Determines if the applet is active.
|
boolean isActive()
start
method is called. It becomes
inactive just before its stop
method is called.true
if the applet is active;
false
otherwise.URL getDocumentBase()
The document base is:http://www.oracle.com/technetwork/java/index.html
http://www.oracle.com/technetwork/java/index.html
URL
of the document that contains the
applet.getCodeBase()
URL getCodeBase()
URL
of
the directory which contains the applet.getDocumentBase()
String getParameter(String name)
<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.AppletContext getAppletContext()
void appletResize(int width, int height)
width
- the new requested width for the applet.height
- the new requested height for the applet.aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2024 aicas GmbH. All Rights Reserved.