gishur.applet
Class ApplicationStub

java.lang.Object
  |
  +--gishur.applet.ApplicationStub
All Implemented Interfaces:
java.awt.event.ActionListener, AppletControl, java.applet.AppletStub, java.util.EventListener

public class ApplicationStub
extends java.lang.Object
implements AppletControl, java.applet.AppletStub, java.awt.event.ActionListener

AppletStub für zur Steuerung von Applets.

Version:
1.0
Author:
Thomas Wolf

Fields inherited from interface gishur.applet.AppletControl
CLOSE_EXIT_MAX_ID, DESTROY_ALL_APPLETS, DESTROY_APPLET, HIDE_WINDOW, NOTHING, STOP_ALL_APPLETS, STOP_APPLET
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Wird aufgerufen, wenn der Menüpunkt exit aufgerufen wurde oder der Frame geschlossen wurde.
 void appletResize(int width, int height)
          Called when the applet wants to be resized.
 void createNewAppletInstance()
          Kreiert eine neue Instanz des Applets, registriert sie beim ApplicationContext, übernimmt alle Einstellung dieses Applets, sowie startet es.
 java.applet.AppletContext getAppletContext()
          Gets a handler to the applet's context.
 byte getCloseMode()
          Liefert den gesetzten Close-Modus.
 java.net.URL getCodeBase()
          Gets the base URL.
 java.net.URL getDocumentBase()
          Gets the document URL.
 byte getExitMode()
          Liefert den gesetzten Exit-Modus.
 java.awt.Frame getFrame()
          Liefert den Appletframe.
 java.lang.String getParameter(java.lang.String name)
          Returns the value of the named parameter in the HTML tag.
 boolean isActive()
          Determines if the applet is active.
 void setCloseMode(byte closemode)
          Bestimmt, was passiert, wenn das Fenster geschlossen wird.
 void setExitMode(byte exitmode)
          Bestimmt, was passiert, wenn der Exit-Befehl gewählt wurde.
 void showStatus(java.lang.String msg)
          Requests that the argument string be displayed in the "status window".
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setExitMode

public void setExitMode(byte exitmode)
Bestimmt, was passiert, wenn der Exit-Befehl gewählt wurde.
Specified by:
setExitMode in interface AppletControl
Parameters:
exitmode - neuer Exitmode (eine Konstante aus {NOTHING,HIDE_WINDOW,STOP_APPLET,DESTROY_APPLET})

setCloseMode

public void setCloseMode(byte closemode)
Bestimmt, was passiert, wenn das Fenster geschlossen wird.
Specified by:
setCloseMode in interface AppletControl
Parameters:
closemode - neuer Closemode (eine Konstante aus {NOTHING,HIDE_WINDOW,STOP_APPLET,DESTROY_APPLET})

getExitMode

public byte getExitMode()
Liefert den gesetzten Exit-Modus.
Specified by:
getExitMode in interface AppletControl
Returns:
gesetzter Exitmode (eine Konstante aus {NOTHING,HIDE_WINDOW,STOP_APPLET,DESTROY_APPLET})

getCloseMode

public byte getCloseMode()
Liefert den gesetzten Close-Modus.
Specified by:
getCloseMode in interface AppletControl
Returns:
gesetzter Closemode (eine Konstante aus {NOTHING,HIDE_WINDOW,STOP_APPLET,DESTROY_APPLET})

getFrame

public java.awt.Frame getFrame()
Liefert den Appletframe.
Specified by:
getFrame in interface AppletControl
Returns:
Frame

showStatus

public void showStatus(java.lang.String msg)
Requests that the argument string be displayed in the "status window".
Specified by:
showStatus in interface AppletControl
Parameters:
msg - a string to display in the status window.

createNewAppletInstance

public void createNewAppletInstance()
Kreiert eine neue Instanz des Applets, registriert sie beim ApplicationContext, übernimmt alle Einstellung dieses Applets, sowie startet es.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Wird aufgerufen, wenn der Menüpunkt exit aufgerufen wurde oder der Frame geschlossen wurde.
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - ActionEvent

isActive

public boolean isActive()
Determines if the applet is active. An applet is active just before its start method is called. It becomes inactive immediately after its stop method is called.
Specified by:
isActive in interface java.applet.AppletStub
Returns:
true if the applet is active; false otherwise.
Since:
JDK1.0

getDocumentBase

public java.net.URL getDocumentBase()
Gets the document URL.
Specified by:
getDocumentBase in interface java.applet.AppletStub
Returns:
the URL of the document containing the applet.
Since:
JDK1.0

getCodeBase

public java.net.URL getCodeBase()
Gets the base URL.
Specified by:
getCodeBase in interface java.applet.AppletStub
Returns:
the URL of the applet.
Since:
JDK1.0

getParameter

public java.lang.String getParameter(java.lang.String name)
Returns the value of the named parameter in the HTML tag. For example, if an applet is specified as

then a call to getParameter("Color") returns the value "blue".

Specified by:
getParameter in interface java.applet.AppletStub
Parameters:
name - a parameter name.
Returns:
the value of the named parameter.
Since:
JDK1.0

getAppletContext

public java.applet.AppletContext getAppletContext()
Gets a handler to the applet's context.
Specified by:
getAppletContext in interface java.applet.AppletStub
Returns:
the applet's context.
Since:
JDK1.0

appletResize

public void appletResize(int width,
                         int height)
Called when the applet wants to be resized.
Specified by:
appletResize in interface java.applet.AppletStub
Parameters:
width - the new requested width for the applet.
height - the new requested height for the applet.
Since:
JDK1.0