Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

AbstractApp Class Reference

Collaboration diagram for AbstractApp:

Collaboration graph
[legend]
List of all members.

Detailed Description

An abstract MVC based application framework.

A Controller which is responsible for application control between a model and multiple views is instantiated within the application. This controller also is responsible for the overhead of command line argument parsing and dispatching of application events.

Author:
Author
tvaline
Version:
Revision
1.4
,
Date
2005/03/05 04:06:16

Definition at line 34 of file AbstractApp.java.

Public Member Functions

 AbstractApp (AbstractAppController controller) throws AppException
 Creates a new AbstractApp object.
void run ()
 Starts the controller running.
String toString ()
 Returns a string representation of this object.

Protected Attributes

AbstractAppController controller
 The controller object for this application.


Constructor & Destructor Documentation

AbstractApp AbstractAppController  controller  )  throws AppException
 

Creates a new AbstractApp object.

Parameters:
controller The controller for this application
Exceptions:
AppException If an error in application processing occurs.

Definition at line 45 of file AbstractApp.java.

References AbstractApp.controller.

00046                         {
00047     if(controller == null){throw new AppException();}
00048     else{this.controller = controller;}
00049   }


Member Function Documentation

void run  ) 
 

Starts the controller running.

This usually is the method that is used to start the application.

Definition at line 55 of file AbstractApp.java.

References AbstractApp.controller, and AbstractAppController.startController().

00055 {controller.startController();}

String toString  ) 
 

Returns a string representation of this object.

Returns:
The physical address of this instance.

Definition at line 62 of file AbstractApp.java.

00062 {return super.toString();}


Member Data Documentation

AbstractAppController controller [protected]
 

The controller object for this application.

Definition at line 36 of file AbstractApp.java.

Referenced by AbstractApp.AbstractApp(), and AbstractApp.run().


The documentation for this class was generated from the following file:
Generated on Tue Nov 1 23:43:35 2005 for JavaBasicApplicationFrameworkAPI(JBAF) by  doxygen 1.4.2