|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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)| Method Summary | |
void |
appletResize(int width,
int height)
Called when the applet wants to be resized. |
AppletContext |
getAppletContext()
Gets a handler to the applet's context. |
URL |
getCodeBase()
Gets the base URL. |
URL |
getDocumentBase()
Returns an absolute URL naming the directory 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. |
| Method Detail |
public boolean isActive()
start method is called. It becomes
inactive just before its stop method is called.true if the applet is active;
false otherwise.public URL getDocumentBase()
http://java.sun.com/products/jdk/1.2/index.html
The document base is:
http://java.sun.com/products/jdk/1.2/
URL of the document that contains this
applet.getCodeBase()public URL getCodeBase()
URL of the applet.public 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.public AppletContext getAppletContext()
public void appletResize(int width,
int height)
width - the new requested width for the applet.height - the new requested height for the applet.
|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.