|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--java.applet.Applet | +--gishur.applet.ApplicationApplet
ApplicationApplet vereinfacht den Zugriff auf ApplicantionContext und vereinfacht somit die Programmierung von Applets, die sowohl als Applet als auch als Application laufen sollen.
Inner classes inherited from class java.applet.Applet |
java.applet.Applet.AccessibleApplet |
Inner classes inherited from class java.awt.Panel |
java.awt.Panel.AccessibleAWTPanel |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
Field Summary | |
static byte |
ADD_APPLET_CLOSE
Konstante für setMenuMode: Fügt ein Appletmenü mit einem Clsoe-Befehl an |
static byte |
ADD_APPLET_EXIT
Konstante für setMenuMode: Fügt ein Appletmenü mit einem Exit-Befehl an |
static byte |
ADD_APPLET_NEW_APPLET
Konstante für setMenuMode: Fügt ein Appletmenü mit einem New-Applet-Befehl an |
static byte |
DESTROY_ALL_APPLETS
Konstante für setExitMode bzw. setCloseMode: alle Applets werden zerstört |
static byte |
DESTROY_APPLET
Konstante für setExitMode bzw. setCloseMode: das Applet wird zerstört |
static byte |
HIDE_WINDOW
Konstante für setExitMode bzw. setCloseMode: das Appletfenster wird versteckt |
static byte |
NO_MENU
Konstante für setMenuMode: Fügt keine Menüs an |
static byte |
NOTHING
Konstante für ExitMode bzw. |
static byte |
STOP_ALL_APPLETS
Konstante für setExitMode bzw. setCloseMode: alle Applets werden gestoppt |
static byte |
STOP_APPLET
Konstante für setExitMode bzw. setCloseMode: das Applet wird angehalten |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
ApplicationApplet()
|
Method Summary | |
java.applet.Applet |
createNewAppletInstance()
Kreiert eine neue Instanz des Applets, registriert sie beim ApplicationContext, übernimmt alle Einstellung dieses Applets, sowie startet es. |
java.applet.Applet |
createNewAppletInstance(java.lang.String title,
int width,
int height)
Kreiert eine neue Instanz des Applets, registriert sie beim ApplicationContext, übernimmt alle Einstellung dieses Applets, sowie startet es. |
void |
destroy()
Zerstört alle Applets. |
AppletFrame |
getAppletFrame()
Liefert den AppletFrame, dem das Applet oder die Application angehört. |
ApplicationContext |
getApplicationContext()
Liefert den ApplicationContext dieses Objektes. |
byte |
getCloseMode()
Liefert den gesetzten Close-Modus. |
byte |
getExitMode()
Liefert den gesetzten Exit-Modus. |
void |
initApplet()
Diese Methode kann aufgerufen werden, wenn das Applet auch als Applet gestartet wurde. |
void |
initApplication(java.lang.String name,
java.lang.String title,
int width,
int height)
Diese Methode startet das Applet als Application. |
boolean |
isApplet()
Liefert true, falls diese Klasse als Applet gestartet wurde. |
void |
onCreateNewAppletInstance(java.applet.Applet applet)
Wird aufgerufen, wenn eine neúe Appletinstanz erzeugt wurde. |
void |
setCloseMode(int closemode)
Bestimmt, was passiert, wenn das Fenster geschlossen wird. |
void |
setExitMode(int exitmode)
Bestimmt, was passiert, wenn der Exit-Befehl gewählt wurde. |
void |
setStopMode(byte mode)
Setzt den Stopmode des Applets applet, d.h bestimmt, was passiert, wenn applet gestoppt bzw. zerstört wird. |
void |
showStatus(java.lang.String msg)
Requests that the argument string be displayed in the "status window". |
void |
startApplet(java.applet.Applet applet,
java.lang.String name,
java.awt.Container container,
int pos)
Startet das Applet applet und fügt es im Container container an die Stelle pos ein. |
void |
startApplet(java.applet.Applet applet,
java.lang.String name,
java.lang.String title,
int width,
int height)
Startet das Applet applet in einem Fenster mit Titel title, Breite width und Höhe height. |
void |
stop()
Stoppt alle Applets. |
Methods inherited from class java.applet.Applet |
getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, init, isActive, newAudioClip, play, play, resize, resize, setStub, start |
Methods inherited from class java.awt.Panel |
addNotify |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, update, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final byte NOTHING
public static final byte HIDE_WINDOW
public static final byte STOP_APPLET
public static final byte DESTROY_APPLET
public static final byte STOP_ALL_APPLETS
public static final byte DESTROY_ALL_APPLETS
public static final byte NO_MENU
public static final byte ADD_APPLET_EXIT
public static final byte ADD_APPLET_CLOSE
public static final byte ADD_APPLET_NEW_APPLET
Constructor Detail |
public ApplicationApplet()
Method Detail |
public final void initApplication(java.lang.String name, java.lang.String title, int width, int height)
name
- Name des Appletstitle
- Titel des Applet-Fensterswidth
- Breite des Applet-Fenstersheight
- Höhe des Applet-Fensterspublic final void initApplet()
public final ApplicationContext getApplicationContext()
public final void setStopMode(byte mode)
mode
- Stopmode (eine Konstante aus {NOTHING,CLOSE_ALL,DESTROY_ALL})public final boolean isApplet()
public void setExitMode(int exitmode)
exitmode
- neuer Exitmode (eine Konstante aus
{NOTHING,HIDE_WINDOW,STOP_APPLET,DESTROY_APPLET})public void setCloseMode(int closemode)
closemode
- neuer Closemode (eine Konstante aus
{NOTHING,HIDE_WINDOW,STOP_APPLET,DESTROY_APPLET})public byte getExitMode()
public byte getCloseMode()
public AppletFrame getAppletFrame()
public void showStatus(java.lang.String msg)
showStatus
in class java.applet.Applet
msg
- a string to display in the status window.public java.applet.Applet createNewAppletInstance(java.lang.String title, int width, int height)
title
- Titel des neuen Fensterspublic java.applet.Applet createNewAppletInstance()
public void onCreateNewAppletInstance(java.applet.Applet applet)
applet
- neues Appletpublic void startApplet(java.applet.Applet applet, java.lang.String name, java.lang.String title, int width, int height)
applet
- Applet-Objektname
- Name des Appletstitle
- Titel des Fensterswidth
- Breite des Appletfenstersheight
- Höhe des Appletfensterspublic void startApplet(java.applet.Applet applet, java.lang.String name, java.awt.Container container, int pos)
applet
- Applet-Objektname
- Name des Appletscontainer
- Containerpos
- Positionpublic void stop()
stop
in class java.applet.Applet
public void destroy()
destroy
in class java.applet.Applet
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |