|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectGuessController
public class GuessController
GuessController.java GuessController provides interactive functionality for the GuessFrame GUI. Listeners for the GUI elements (ButtonListener , TileListener)are implemented as inner classes. The TimerListener class is used to hide the tiles 800 ms after the user has triggered a timer by guessing tiles that don't match.
System| Nested Class Summary | |
|---|---|
private class |
GuessController.ButtonListener
Determines which button was pressed and sets the game board accordingly. |
private class |
GuessController.TileListener
|
private class |
GuessController.TimerListener
When a mulitplication is requested. |
| Field Summary | |
|---|---|
int |
DELAY
|
private GuessModel |
model
|
private static int |
tile1
|
private static int |
tile2
|
private javax.swing.Timer |
timer
|
private GuessFrame |
view
|
| Constructor Summary | |
|---|---|
GuessController(GuessModel model,
GuessFrame view)
Constructor |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private GuessModel model
private GuessFrame view
private static int tile1
private static int tile2
private javax.swing.Timer timer
public final int DELAY
| Constructor Detail |
|---|
public GuessController(GuessModel model,
GuessFrame view)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||