Class Controller
- java.lang.Object
-
- Controller
-
public class Controller extends Object
-
-
Constructor Summary
Constructors Constructor Description Controller()we don't really need a constructor method, but include one to print a debugging message if required
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiduserKeyInteraction(javafx.scene.input.KeyEvent event)This is how the View talks to the Controller AND how the Controller talks to the Model This method is called by the View to respond to key presses in the GUI The controller's job is to decide what to do.
-
-
-
Method Detail
-
userKeyInteraction
public void userKeyInteraction(javafx.scene.input.KeyEvent event)
This is how the View talks to the Controller AND how the Controller talks to the Model This method is called by the View to respond to key presses in the GUI The controller's job is to decide what to do. In this case it converts the keypresses into commands which are run in the model
-
-