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() |
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) |
java.net.URL |
getCodeBase() |
java.net.URL |
getDocumentBase() |
java.awt.Image |
getImage(java.net.URL location) |
java.lang.String |
getParameter(java.lang.String name) |
net.sourceforge.jnlp.splashscreen.SplashController |
getSplashController()
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) |
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)
file - jnlp file base to construct environmentappletInstance - applet for this environmentcont - container to place this applet topublic AppletEnvironment(JNLPFile file, AppletInstance appletInstance)
file - jnlp file base to construct environmentappletInstance - applet for this environmentpublic void destroy()
public java.awt.Container getAppletFrame()
public net.sourceforge.jnlp.splashscreen.SplashController getSplashController()
public void startApplet()
public java.applet.Applet getApplet(java.lang.String name)
getApplet in interface java.applet.AppletContextpublic void setApplet(java.applet.Applet applet)
applet - source of this environmentpublic 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.AppletContextlocation - source of clippublic java.awt.Image getImage(java.net.URL location)
getImage in interface java.applet.AppletContextlocation - location of imagepublic void showDocument(java.net.URL uRL)
showDocument in interface java.applet.AppletContextuRL - url of documentpublic void showDocument(java.net.URL uRL,
java.lang.String str)
showDocument in interface java.applet.AppletContextuRL - source of documentstr - _self, _parent, _top, _blank or "name". Have sense only for applets. Not implemented for our javaws worldpublic void showStatus(java.lang.String str)
showStatus in interface java.applet.AppletContextstr - id of appletpublic 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