| 
JavaTM 2 Platform Standard Ed. 5.0  | 
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface AppletStub
当 applet 第一次被创建时,使用 applet 的 setStub 方法把 applet stub 连接到它。此 stub 充当 applet 和浏览器环境或 applet viewer 环境之间的接口,应用程序在此环境中运行。
Applet.setStub(java.applet.AppletStub)| 方法摘要 | |
|---|---|
 void | 
appletResize(int width,
             int height)
当 applet 想要重新调整大小时调用。  | 
 AppletContext | 
getAppletContext()
获取 applet 上下文的处理程序。  | 
 URL | 
getCodeBase()
获取基 URL。  | 
 URL | 
getDocumentBase()
获取嵌入 applet 的文档的 URL。  | 
 String | 
getParameter(String name)
返回 HTML 标记中命名参数的值。  | 
 boolean | 
isActive()
确定 applet 是否处于激活状态。  | 
| 方法详细信息 | 
|---|
boolean isActive()
start 方法被调用前,applet 才处于激活状态。仅在 applet 的 stop 方法被调用前,applet 才变成非激活状态。
true;否则返回 false。URL getDocumentBase()
    http://java.sun.com/products/jdk/1.2/index.html
 
则该文档基于:
 
    http://java.sun.com/products/jdk/1.2/index.html
 
URL。getCodeBase()URL getCodeBase()
URL。getDocumentBase()String getParameter(String name)
<applet code="Clock" width=50 height=50> <param name=Color value="blue"> </applet>
则对 getParameter("Color") 的调用将返回值 "blue"。
name - 参数名。
AppletContext getAppletContext()
void appletResize(int width,
                  int height)
width - 为 applet 新请求的宽度。height - 为 applet 新请求的高度。
  | 
JavaTM 2 Platform Standard Ed. 5.0  | 
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。