|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the visual aspect of the game of Boggle. The view
will have a reference to the game Controller, but not to the Model.
Use the controller's methods to access and manipulate data stored in IBoggleModel.
A shallow View might just print information on the console. A deep
View can be as fancy as you can imagine (within the the limits imposed by
the interface structure).
In the constructor, you have to take one and only one parameter, an IBoggleController.
through this reference, you can get communicate with the controller.
If the View is a GUI, then the constructor of the View should create the
JFrame and all other GUI components, keeping references to them if needed
for later use.
IMPORTANT NOTE #2 :
You must define these two public static fields to specify the author and a brief description.
as follows:
public static final String author = " ... ";
public static final String description = " ... ";
"authors" should identify the authors in some fashion, but pseudonyms or
nicknames are acceptable. "description" should give a brief description
of the module, especially if there are any unexpected or unique features
about it. The information in both fields may be visible to the general
public, indefinitely into the future, so do not place any information here
which you do not wish to be publicly available.
Method Summary | |
void |
redraw()
This method will redisplay everything. |
void |
showInfo()
shows the information, at least the author and description of different modules |
void |
terminateView()
Perform cleanup when the application is about to end. |
Method Detail |
public void showInfo()
public void redraw()
public void terminateView()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |