|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.game.Juzzle.StartDialog
StartDialog shows a select dialog for the image choose. It is called for every game start.
JuzzlePanel| Inner Class Summary | |
protected class |
StartDialog.ImageListRenderer
this class renders the image with text line in the selection dialog |
| Field Summary | |
protected java.util.Vector |
imagesList
array with ImageDescription's, from JuzzleImages |
protected javax.swing.JList |
list
the list with images |
protected javax.swing.JPanel |
panel
the panel that contains the list and the divide text fields |
protected javax.swing.JTextField |
x_div
value field for x division |
protected javax.swing.JTextField |
y_div
value field for y division |
| Constructor Summary | |
StartDialog()
creates the panel only, but don't show it. |
|
| Method Summary | |
void |
addToImageList(ImageDescription id)
add new images to list |
java.awt.Dimension |
getSelectedDivision()
after the dialog is closed return deivision of the image, it is always x > 1 and y > 1 |
ImageDescription |
getSelectedImage()
after the dialog is closed return the selected image |
boolean |
showDialog(java.awt.Component parent)
create a modal dialog and show the panel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected javax.swing.JPanel panel
protected javax.swing.JList list
protected javax.swing.JTextField x_div
protected javax.swing.JTextField y_div
protected java.util.Vector imagesList
ImageDescription,
JuzzleImages| Constructor Detail |
public StartDialog()
| Method Detail |
public void addToImageList(ImageDescription id)
id - image to addImageDescriptionpublic boolean showDialog(java.awt.Component parent)
parent - the parent Component of this dialogpublic ImageDescription getSelectedImage()
ImageDescriptionpublic java.awt.Dimension getSelectedDivision()
ImageDescription
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||