java.lang.Object
visitorDemoExercises.basicVisitorDemo.controller.VisitorDemoApp
The controller for the Visitor Demo system.
Also double-duties as an applet so that it can be used in a web page.
- Author:
- swong
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNo-parameter constructor used by web pages to bring the applet up.VisitorDemoApp(int closeAction)
The constructor for the class -
Method Summary
-
Field Details
-
view
The view in use -
model
The model in use
-
-
Constructor Details
-
VisitorDemoApp
public VisitorDemoApp()No-parameter constructor used by web pages to bring the applet up. -
VisitorDemoApp
public VisitorDemoApp(int closeAction)The constructor for the class- Parameters:
closeAction
- The window closing action. Is WindowConstants.HIDE_ON_CLOSE for applets and WindowConstants.EXIT_ON_CLOSE for applications
-
-
Method Details
-
start
public void start()Starts the view -
main
Auto-generated main method to display this controller- Parameters:
args
- Command line args.
-