org.fuin.utils4swing.appletviewer
Class SimpleAppletContext

java.lang.Object
  extended by org.fuin.utils4swing.appletviewer.SimpleAppletContext
All Implemented Interfaces:
AppletContext

public final class SimpleAppletContext
extends Object
implements AppletContext

Context for a single applet.


Constructor Summary
SimpleAppletContext(Applet applet, String appletName)
          Constructor with applet and it's name.
 
Method Summary
 Applet getApplet()
          Returns the applet associated with this applet.
 Applet getApplet(String name)
          
 Enumeration<Applet> getApplets()
          
 AudioClip getAudioClip(URL url)
          
 Image getImage(URL url)
          
 InputStream getStream(String key)
          
 Iterator<String> getStreamKeys()
          
 void setStream(String key, InputStream stream)
          
 void showDocument(URL url)
          
 void showDocument(URL url, String target)
          
 void showStatus(String status)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleAppletContext

public SimpleAppletContext(Applet applet,
                           String appletName)
Constructor with applet and it's name.

Parameters:
applet - Applet.
appletName - Name of the applet.
Method Detail

getApplet

public final Applet getApplet(String name)

Specified by:
getApplet in interface AppletContext

getApplets

public final Enumeration<Applet> getApplets()

Specified by:
getApplets in interface AppletContext

getAudioClip

public final AudioClip getAudioClip(URL url)

Specified by:
getAudioClip in interface AppletContext

getImage

public final Image getImage(URL url)

Specified by:
getImage in interface AppletContext

getStream

public final InputStream getStream(String key)

Specified by:
getStream in interface AppletContext

getStreamKeys

public final Iterator<String> getStreamKeys()

Specified by:
getStreamKeys in interface AppletContext

setStream

public final void setStream(String key,
                            InputStream stream)
                     throws IOException

Specified by:
setStream in interface AppletContext
Throws:
IOException

showDocument

public final void showDocument(URL url)

Specified by:
showDocument in interface AppletContext

showDocument

public final void showDocument(URL url,
                               String target)

Specified by:
showDocument in interface AppletContext

showStatus

public final void showStatus(String status)

Specified by:
showStatus in interface AppletContext

getApplet

public final Applet getApplet()
Returns the applet associated with this applet.

Returns:
Applet.


Copyright © 2011 Future Invent Informationsmanagement GmbH. All Rights Reserved.