public interface AppletStub
setStub
方法连接到它。此存根作为小程序和浏览器环境或应用程序正在运行的小程序浏览器环境之间的接口。
Applet.setStub(java.applet.AppletStub)
Modifier and Type | Method and Description |
---|---|
void |
appletResize(int width, int height)
当程序需要调整。
|
AppletContext |
getAppletContext()
返回小应用程序的上下文。
|
URL |
getCodeBase()
获取基本的网址。
|
URL |
getDocumentBase()
获取嵌入小程序的文档的网址。
|
String |
getParameter(String name)
返回指定的HTML标签参数的值。
|
boolean |
isActive()
确定小程序是否是有效的。
|
boolean isActive()
start
方法称为applet是活跃的。它成为活跃在
stop
方法称为。
true
如果applet是积极的;
false
否则。
URL getDocumentBase()
文档库:http://www.oracle.com/technetwork/java/index.html
http://www.oracle.com/technetwork/java/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
-新要求宽度的小应用程序。
height
-新要求高度的小程序。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.