|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.kzoo.grid.gui.GridCreationDialog
Grid GUI Support Package:
A GridCreationDialog
is a dialog that allows the user
to construct a new grid, choosing its type (bounded or unbounded)
and, if appropriate, its dimensions.
Constructor Summary | |
protected |
GridCreationDialog(javax.swing.JFrame parent,
boolean promptForGridChoice)
Creates a dialog that allows the user to choose the type of grid to create and/or its dimensions. |
Method Summary | |
static GridCreationDialog |
makeDimensionsDialog(javax.swing.JFrame parent)
Creates a dialog that creates a BoundedGrid object
after prompting the user for its dimensions. |
static GridCreationDialog |
makeGridChoiceDialog(javax.swing.JFrame parent)
Creates a dialog that allows the user to choose the type of grid to create and, if appropriate, its dimensions. |
Grid |
showDialog()
Shows the modal dialog that allows the user to create a new grid. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected GridCreationDialog(javax.swing.JFrame parent, boolean promptForGridChoice)
parent
- parent frame for the dialogpromptForGridChoice
- true
if dialog should
prompt for choice of grid representation;
false
if it should always create
a BoundedGrid
gridMethod Detail |
public static GridCreationDialog makeDimensionsDialog(javax.swing.JFrame parent)
BoundedGrid
object
after prompting the user for its dimensions.
parent
- parent frame for the dialog
public static GridCreationDialog makeGridChoiceDialog(javax.swing.JFrame parent)
GridPkgFactory
. If any bounded grid classes
have been registered with the GridPkgFactory
, then
the dialog will include them in the set of options. Otherwise,
it will include BoundedGrid
as its only bounded
grid. Similarly, if any unbounded grid classes have been
registered with the GridPkgFactory
, then the dialog
will include them in the set of options. Otherwise, it will
include UnboundedArrayListGrid
as its only unbounded
grid. BoundedGrid
and UnboundedArrayListGrid
must explicitly be registered with the GridPkgFactory
to
appear along with other options from the factory.
parent
- parent frame for the dialog
public Grid showDialog()
null
is returned.
null
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |