public class Controller
extends java.lang.Object
implements com.mrjaffesclass.apcs.messages.MessageController
Constructor and Description |
---|
Controller()
Controller constructor The Controller is responsible for creating the View
and the Model that it will be controlling.
|
Modifier and Type | Method and Description |
---|---|
void |
init()
Initialize the model here and subscribe
to any required messages
"this" refers to this controller object.
|
static void |
main(java.lang.String[] args)
Program entry -- main is called when the program starts
|
void |
messageHandler(java.lang.String messageName,
java.lang.Object messagePayload)
Fired when a message is sent through the Messages class that this
controller has subscribed to.
|
public Controller()
public void init()
public void messageHandler(java.lang.String messageName, java.lang.Object messagePayload)
com.mrjaffesclass.apcs.messages.MessageController
messageHandler
in interface com.mrjaffesclass.apcs.messages.MessageController
public static void main(java.lang.String[] args)
args
- the command line arguments