stasichase.gui
Class StartInfoDialog

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Dialog
                          |
                          +--javax.swing.JDialog
                                |
                                +--stasichase.gui.MultiDialog
                                      |
                                      +--stasichase.gui.StartInfoDialog

public class StartInfoDialog
extends MultiDialog
implements LoginListener

Ein Dialog, der den Status der Benutzeranmeldungen anzeigt.

Version:
$Id: StartInfoDialog.java,v 1.2 2000/07/05 18:15:59 jwillhft Exp $
Author:
Jörn Willhöft
See Also:
Serialized Form

Inner classes inherited from class stasichase.gui.MultiDialog
MultiDialog.ButtonListener, MultiDialog.MultiButton, MultiDialog.SymKey, MultiDialog.SymWindow
 
Inner classes inherited from class javax.swing.JDialog
JDialog.AccessibleJDialog
 
Inner classes inherited from class java.awt.Component
Component.AWTTreeLock
 
Field Summary
(package private) static String[] abbrechen
           
protected  int maxSpieler
           
(package private)  JLabel mitspielerLabel
           
(package private)  JTextField mitspielerText
           
(package private)  JLabel vonLabel
           
(package private)  JTextField vonText
           
 
Fields inherited from class stasichase.gui.MultiDialog
ABBRUCH, auswahl, butListener, buttonPanel, FEHLER, FEHLER_IMG, FEHLER_SCHLIESSEN, focusBut, FRAGE, FRAGE_IMG, FRAGE_JANEIN, hauptPanel, icon, INFO, INFO_IMG, INFO_SCHLIESSEN, JA, JANEIN, JANEIN_BUTTONS, jlabel_Icon, jlabel_Spacer, NEIN, SCHLIESSEN, SCHLIESSEN_BUTTON, textArea, WARNUNG, WARNUNG_IMG, WARNUNG_JANEIN, WARNUNG_SCHLIESSEN
 
Fields inherited from class javax.swing.JDialog
accessibleContext, defaultCloseOperation, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Dialog
base, keepBlocking, modal, nameCounter, resizable, serialVersionUID, title
 
Fields inherited from class java.awt.Window
active, base, focusMgr, inputContext, nameCounter, OPENED, ownedWindowList, serialVersionUID, state, warningString, weakThis, windowListener, windowSerializedDataVersion
 
Fields inherited from class java.awt.Container
component, containerListener, containerSerializedDataVersion, dispatcher, layoutMgr, maxSize, ncomponents, serialVersionUID
 
Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, appContext, assert, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, hasFocus, height, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, serialVersionUID, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowListenerK, x, y
 
Constructor Summary
StartInfoDialog()
          Konstruiert den Dialog und die Darstellung der Auswahlmöglichkeiten ohne Abhängigkeit von einem Frame.
StartInfoDialog(Frame parent, int maxSpieler)
          Konstruiert den Dialog und die Darstellung der Auswahlmöglichkeiten in Abhängigkeit von einem angegebenen Frame.
 
Method Summary
 void alleDa(LoginEvent e)
           
(package private)  void keyPressed_ESC(KeyEvent event)
          Behandelt den Tastendruck "Escape" und hat gleiche Auswirkungen, wie Klick auf "Abbrechen".
 void notifyLogin(LoginEvent e)
          Wird vom Event-Verteiler (SpielerGUI) aufgerufen, wenn sich ein neuer Mitspieler anmeldet.
 
Methods inherited from class stasichase.gui.MultiDialog
addButtons, addButtons, buttonPressed, center, getAntwort, getFrame, MultiDialog_keyPressed, MultiDialog_windowOpened, setIcon, setText, setVisible
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, createRootPaneException, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setLocationRelativeTo, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Dialog
, addNotify, conditionalShow, constructComponentName, dispose, getTitle, hide, hideAndDisposeHandler, initIDs, isModal, isResizable, setModal, setResizable, setTitle, show
 
Methods inherited from class java.awt.Window
addOwnedWindow, addWindowListener, applyResourceBundle, applyResourceBundle, connectOwnedWindow, dispatchEventImpl, eventEnabled, finalize, getFocusOwner, getInputContext, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, isActive, isShowing, nextFocus, ownedInit, pack, postEvent, postProcessKeyEvent, postWindowEvent, preProcessKeyEvent, processEvent, readObject, removeOwnedWindow, removeWindowListener, setCursor, setFocusOwner, setWarningString, toBack, toFront, transferFocus, writeObject
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyOrientation, countComponents, deliverEvent, dispatchEventToSelf, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getCursorTarget, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPrint, list, list, locate, minimumSize, paint, paintComponents, postsOldMouseEvents, preferredSize, print, printComponents, printHeavyweightComponents, printOneComponent, processContainerEvent, proxyEnableEvents, proxyRequestFocus, remove, removeAll, removeContainerListener, removeNotify, setFont, updateCursor, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getIntrinsicCursor, getLocation, getLocation, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

abbrechen

static final String[] abbrechen

maxSpieler

protected int maxSpieler

mitspielerLabel

JLabel mitspielerLabel

vonLabel

JLabel vonLabel

mitspielerText

JTextField mitspielerText

vonText

JTextField vonText
Constructor Detail

StartInfoDialog

public StartInfoDialog(Frame parent,
                       int maxSpieler)
Konstruiert den Dialog und die Darstellung der Auswahlmöglichkeiten in Abhängigkeit von einem angegebenen Frame.
Parameters:
parent - der Frame, der diesen Dialog aufruft.

StartInfoDialog

public StartInfoDialog()
Konstruiert den Dialog und die Darstellung der Auswahlmöglichkeiten ohne Abhängigkeit von einem Frame.
Method Detail

notifyLogin

public void notifyLogin(LoginEvent e)
Wird vom Event-Verteiler (SpielerGUI) aufgerufen, wenn sich ein neuer Mitspieler anmeldet.
Specified by:
notifyLogin in interface LoginListener
Parameters:
e - Logininformationen mit allen angemeldeten Mitspielern.

alleDa

public void alleDa(LoginEvent e)
Specified by:
alleDa in interface LoginListener

keyPressed_ESC

void keyPressed_ESC(KeyEvent event)
Behandelt den Tastendruck "Escape" und hat gleiche Auswirkungen, wie Klick auf "Abbrechen".
Overrides:
keyPressed_ESC in class MultiDialog