public class AppletEnvironment
extends java.lang.Object
implements java.applet.AppletContext, java.applet.AppletStub
Constructor and Description |
---|
AppletEnvironment(JNLPFile file,
AppletInstance appletInstance)
Create a new applet environment for the applet specified by
the JNLP file.
|
Modifier and Type | Method and Description |
---|---|
void |
appletResize(int width,
int height) |
void |
destroy()
Disposes the applet's resources and disables the applet
environment from further use; after calling this method the
applet stub and context methods throw IllegalStateExceptions.
|
java.applet.Applet |
getApplet(java.lang.String name)
Returns the applet if the applet's name is specified,
otherwise return null.
|
java.applet.AppletContext |
getAppletContext() |
java.awt.Frame |
getAppletFrame()
Returns the frame that contains the applet.
|
java.util.Enumeration |
getApplets()
Returns an enumeration that contains only the applet
from the JNLP file.
|
java.applet.AudioClip |
getAudioClip(java.net.URL location)
Returns an audio clip.
|
java.net.URL |
getCodeBase() |
java.net.URL |
getDocumentBase() |
java.awt.Image |
getImage(java.net.URL location)
Return an image loaded from the specified location.
|
java.lang.String |
getParameter(java.lang.String name) |
java.io.InputStream |
getStream(java.lang.String key)
Required for JRE1.4, but not implemented yet.
|
java.util.Iterator |
getStreamKeys()
Required for JRE1.4, but not implemented yet.
|
boolean |
isActive() |
void |
setStream(java.lang.String key,
java.io.InputStream stream)
Required for JRE1.4, but not implemented yet.
|
void |
showDocument(java.net.URL uRL)
Not implemented yet.
|
void |
showDocument(java.net.URL uRL,
java.lang.String str)
Not implemented yet.
|
void |
showStatus(java.lang.String str)
Not implemented yet.
|
void |
startApplet()
Initialize, start, and show the applet.
|
public AppletEnvironment(JNLPFile file, AppletInstance appletInstance)
public void destroy()
public java.awt.Frame getAppletFrame()
public void startApplet()
public java.applet.Applet getApplet(java.lang.String name)
getApplet
in interface java.applet.AppletContext
public java.util.Enumeration getApplets()
getApplets
in interface java.applet.AppletContext
public java.applet.AudioClip getAudioClip(java.net.URL location)
getAudioClip
in interface java.applet.AppletContext
public java.awt.Image getImage(java.net.URL location)
getImage
in interface java.applet.AppletContext
public void showDocument(java.net.URL uRL)
showDocument
in interface java.applet.AppletContext
public void showDocument(java.net.URL uRL, java.lang.String str)
showDocument
in interface java.applet.AppletContext
public void showStatus(java.lang.String str)
showStatus
in interface java.applet.AppletContext
public void setStream(java.lang.String key, java.io.InputStream stream)
setStream
in interface java.applet.AppletContext
public java.io.InputStream getStream(java.lang.String key)
getStream
in interface java.applet.AppletContext
public java.util.Iterator getStreamKeys()
getStreamKeys
in interface java.applet.AppletContext
public void appletResize(int width, int height)
appletResize
in interface java.applet.AppletStub
public java.applet.AppletContext getAppletContext()
getAppletContext
in interface java.applet.AppletStub
public java.net.URL getCodeBase()
getCodeBase
in interface java.applet.AppletStub
public java.net.URL getDocumentBase()
getDocumentBase
in interface java.applet.AppletStub
public java.lang.String getParameter(java.lang.String name)
getParameter
in interface java.applet.AppletStub
public boolean isActive()
isActive
in interface java.applet.AppletStub