-  
       
@Deprecated(since="9") public interface AppletStub
Deprecated.The Applet API is deprecated, no replacement.首次创建applet时,使用applet的setStub方法将applet存根连接到它。 此存根用作applet与运行应用程序的浏览器环境或applet查看器环境之间的接口。- 从以下版本开始:
 - 1.0
 - 另请参见:
 -  
         
Applet.setStub(java.applet.AppletStub) 
 
-  
        
       
-  
             
方法摘要
所有方法 实例方法 抽象方法 弃用的方法 变量和类型 方法 描述 voidappletResize(int width, int height)已过时。当applet想要调整大小时调用。AppletContextgetAppletContext()已过时。返回applet的上下文。URLgetCodeBase()已过时。获取基本URL。URLgetDocumentBase()已过时。获取嵌入applet的文档的URL。StringgetParameter(String name)已过时。返回HTML标记中命名参数的值。booleanisActive()已过时。确定applet是否处于活动状态。 
 -  
             
 
-  
        
       
-  
             
方法详细信息
-  
isActive
boolean isActive()
Deprecated.确定applet是否处于活动状态。 applet在调用start方法之前处于活动状态。 它在调用stop方法之前变为非活动状态。- 结果
 -  
              
true如果小程序处于活动状态; 否则为false。 
 
-  
getDocumentBase
URL getDocumentBase()
Deprecated.获取嵌入applet的文档的URL。 例如,假设applet包含在文档中:
文件库是:http://www.oracle.com/technetwork/java/index.htmlhttp://www.oracle.com/technetwork/java/index.html- 结果
 -  
              包含applet的文档的
URL。 - 另请参见:
 -  
              
getCodeBase() 
 
-  
getCodeBase
URL getCodeBase()
Deprecated.获取基本URL。 这是包含applet的目录的URL。- 结果
 -  
              包含applet的目录的基础
URL。 - 另请参见:
 -  
              
getDocumentBase() 
 
-  
getParameter
String getParameter(String name)
Deprecated.返回HTML标记中命名参数的值。 例如,如果将applet指定为<applet code="Clock" width=50 height=50> <param name=Color value="blue"> </applet>
然后调用
getParameter("Color")返回值"blue"。- 参数
 -  
              
name- 参数名称。 - 结果
 - 
               命名参数的值,如果未设置, 
              
null。 
 
-  
getAppletContext
AppletContext getAppletContext()
Deprecated.返回applet的上下文。- 结果
 - 小程序的上下文。
 
 
-  
appletResize
void appletResize(int width, int height)Deprecated.当applet想要调整大小时调用。- 参数
 -  
              
width- 小程序的新请求宽度。 -  
              
height- the new requested height for the applet. 
 
 -  
 
 -