|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--netx.jnlp.runtime.AppletEnvironment
The applet environment including stub, context, and frame. The default environment puts the applet in a non-resiable frame; this can be changed by obtaining the frame and setting it resizable.
Constructor Summary | |
AppletEnvironment(JNLPFile file,
AppletInstance appletInstance)
Create a new applet environment for the applet specified by the JNLP file. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AppletEnvironment(JNLPFile file, AppletInstance appletInstance)
Method Detail |
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)
public java.io.InputStream getStream(java.lang.String key)
public java.util.Iterator getStreamKeys()
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |