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, in a new frame.
|
AppletEnvironment(JNLPFile file,
AppletInstance appletInstance,
java.awt.Container cont)
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.Container |
getAppletFrame()
Returns the frame that contains the applet.
|
java.util.Enumeration<java.applet.Applet> |
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) |
net.sourceforge.jnlp.splashscreen.SplashController |
getSplashControler()
container must be SplashContoler
|
java.io.InputStream |
getStream(java.lang.String key)
Required for JRE1.4, but not implemented yet.
|
java.util.Iterator<java.lang.String> |
getStreamKeys()
Required for JRE1.4, but not implemented yet.
|
boolean |
isActive() |
void |
setApplet(java.applet.Applet applet)
Set the applet of this environment; can only be called once.
|
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, java.awt.Container cont)
public AppletEnvironment(JNLPFile file, AppletInstance appletInstance)
public void destroy()
public java.awt.Container getAppletFrame()
public net.sourceforge.jnlp.splashscreen.SplashController getSplashControler()
public void startApplet()
public java.applet.Applet getApplet(java.lang.String name)
getApplet in interface java.applet.AppletContextpublic void setApplet(java.applet.Applet applet)
public java.util.Enumeration<java.applet.Applet> getApplets()
getApplets in interface java.applet.AppletContextpublic java.applet.AudioClip getAudioClip(java.net.URL location)
getAudioClip in interface java.applet.AppletContextpublic java.awt.Image getImage(java.net.URL location)
getImage in interface java.applet.AppletContextpublic void showDocument(java.net.URL uRL)
showDocument in interface java.applet.AppletContextpublic void showDocument(java.net.URL uRL,
java.lang.String str)
showDocument in interface java.applet.AppletContextpublic void showStatus(java.lang.String str)
showStatus in interface java.applet.AppletContextpublic void setStream(java.lang.String key,
java.io.InputStream stream)
setStream in interface java.applet.AppletContextpublic java.io.InputStream getStream(java.lang.String key)
getStream in interface java.applet.AppletContextpublic java.util.Iterator<java.lang.String> getStreamKeys()
getStreamKeys in interface java.applet.AppletContextpublic void appletResize(int width,
int height)
appletResize in interface java.applet.AppletStubpublic java.applet.AppletContext getAppletContext()
getAppletContext in interface java.applet.AppletStubpublic java.net.URL getCodeBase()
getCodeBase in interface java.applet.AppletStubpublic java.net.URL getDocumentBase()
getDocumentBase in interface java.applet.AppletStubpublic java.lang.String getParameter(java.lang.String name)
getParameter in interface java.applet.AppletStubpublic boolean isActive()
isActive in interface java.applet.AppletStub