|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Dialog
|
+--javax.swing.JDialog
|
+--org.moyoman.client.reference.util.BaseDialog
|
+--org.moyoman.client.reference.GameDialog
Provides a base game dialog class for open, save, and delete.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JDialog |
JDialog.AccessibleJDialog |
| Nested classes inherited from class java.awt.Dialog |
Dialog.AccessibleAWTDialog |
| Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
private String[] |
_savedGames
The saved game names. |
private JList |
_savedGamesUI
Saved games widget. |
| Fields inherited from class org.moyoman.client.reference.util.BaseDialog |
|
| Fields inherited from class javax.swing.JDialog |
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Dialog |
|
| Fields inherited from class java.awt.Window |
|
| Fields inherited from class java.awt.Container |
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface org.moyoman.client.reference.util.IGUIConstants |
DEBUG, DIRTY_PROPERTY, GAP, MARGIN, TRANSPARENT_COLOR |
| 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 | |
protected |
GameDialog(Frame frame,
String[] savedGames)
Construct this dialog. |
protected |
GameDialog(Frame frame,
String ownerTitle,
String[] savedGames)
Construct this dialog. |
| Method Summary | |
protected JPanel |
createEastPanel()
Return the east panel, if any. |
protected JPanel |
createSavedGamesPanel()
Create the saved games panel. |
protected JPanel |
createSouthPanel()
Return the south panel, if any. |
protected abstract String |
getOKButtonLabelKey()
Return the key for the OK button label text. |
protected String[] |
getSavedGames()
Return the saved game names. |
protected abstract String |
getSavedGamesLabelKey()
Return the key for the saved games label text. |
protected JList |
getSavedGamesUI()
Return the saved games UI. |
protected abstract String |
getTitleKey()
Return the key for the dialog title. |
protected void |
init(String ownerTitle)
Initialize this dialog. |
protected void |
setSavedGames(String[] savedGames)
Set the list of saved games. |
| Methods inherited from class org.moyoman.client.reference.util.BaseDialog |
addOKButtonPanel, addOKCancelApplyButtonsPanel, addOKCancelButtonsPanel, applyActionPerformed, cancelActionPerformed, checkComponents, createLabel, getActionManager, getApplyButton, getCancelButton, getOKButton, isActionApproved, isDirty, okActionPerformed, setCursorBusy, setDirty, setTitle, show |
| Methods inherited from class java.awt.Dialog |
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setUndecorated |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private JList _savedGamesUI
private String[] _savedGames
| Constructor Detail |
protected GameDialog(Frame frame,
String[] savedGames)
frame - The owning frame.savedGames - The saved game names.
protected GameDialog(Frame frame,
String ownerTitle,
String[] savedGames)
frame - The owning frame.ownerTitle - Owner title to prepend to the dialog title.savedGames - The saved game names.| Method Detail |
protected abstract String getOKButtonLabelKey()
protected void setSavedGames(String[] savedGames)
protected abstract String getSavedGamesLabelKey()
protected JList getSavedGamesUI()
protected abstract String getTitleKey()
protected String[] getSavedGames()
protected JPanel createEastPanel()
protected JPanel createSavedGamesPanel()
protected JPanel createSouthPanel()
protected void init(String ownerTitle)
init in class BaseDialog
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||