|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
de.limdul.cassiopeia.gui.localgame.NewLocalGameDialog
public class NewLocalGameDialog
Dialog zum erzeugen eines neuen lokalen Spiels.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JDialog |
|---|
JDialog.AccessibleJDialog |
| Nested classes/interfaces inherited from class java.awt.Dialog |
|---|
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JDialog |
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Dialog |
|---|
DEFAULT_MODALITY_TYPE |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface de.limdul.cassiopeia.gui.dialogs.GuiConstants |
|---|
CANCEL, CANCEL_STRING, FINISHED, FINISHED_STRING, NEXT, NEXT_STRING, NO, NO_STRING, OK, OK_STRING, YES, YES_STRING |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
NewLocalGameDialog(JFrame owner,
GameOptions options)
Erzeugt den Dialog. |
|
| Method Summary | |
|---|---|
protected boolean |
checkOk()
Testet ob die Einstellungen ok sind. |
void |
dispose()
Schliesst den Dialog. |
int |
getCloseValue()
Liefert den Wert, mit dem der Dialog verlassen wurde. |
PlayerList |
getPlayers()
Liefert die Liste der Spieler. |
void |
setBot(int slot)
Setzt einen Slot auf einen Computer Spieler. |
void |
setCloseValue(int value)
Setzt den Wert, mit der Dialog geschlossen wird. |
void |
setHuman(int slot)
Setzt einen Slot auf einen menschlichen Spieler. |
void |
updateColors()
Aktualisiert die Farben. |
void |
updatePlayers()
Aktualisiert die Spieler. |
| Methods inherited from class java.awt.Dialog |
|---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NewLocalGameDialog(JFrame owner,
GameOptions options)
owner - Der Vater.options - Die Spieloptionen.| Method Detail |
|---|
public void updateColors()
protected final boolean checkOk()
true, wenn die Einstellungen ok sind, false sonst.public void dispose()
StandardDialogJDialog abgeleitete Dialog unterstützt dies.
Es ist aber nochmal extra aufgeführt, um über das Interface die Methode zu haben und
Casts zu vermeiden.
dispose in interface StandardDialogdispose in class WindowWindow.dispose()public void setCloseValue(int value)
StandardDialog
setCloseValue in interface StandardDialogvalue - Mit welchem Wert der Dialog geschlossen wird.StandardDialog.setCloseValue(int)public int getCloseValue()
public void updatePlayers()
public PlayerList getPlayers()
public void setHuman(int slot)
slot - Der zu setzende Slot.public void setBot(int slot)
slot - Der zu setzende Slot.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||