com.ohrasys.app.gdsbrowser
Class GDSBrowserController

java.lang.Object
  extended by com.ohrasys.app.AbstractAppController
      extended by com.ohrasys.app.gdsbrowser.GDSBrowserController
All Implemented Interfaces:
com.ohrasys.app.AppModelEventListener, com.ohrasys.app.AppViewEventListener, java.awt.event.ActionListener, java.util.EventListener

public class GDSBrowserController
extends com.ohrasys.app.AbstractAppController

The application controller responsible for issue, redirection and dispatch of events between the application model and view.


Field Summary
 
Fields inherited from class com.ohrasys.app.AbstractAppController
model, options, pool, views
 
Constructor Summary
GDSBrowserController(com.ohrasys.app.AbstractAppModel model, com.ohrasys.app.AbstractAppView view, com.ohrasys.app.AppOption[] options)
          Creates a new GDSBrowserController object.
 
Method Summary
 java.awt.event.ActionEvent processEvent(java.awt.event.ActionEvent evt)
          Forwards model messages to the view and view messages to the model.
 void startController()
          Starts the application controller.
 java.lang.String toString()
          Returns a string representation of this class
 
Methods inherited from class com.ohrasys.app.AbstractAppController
actionPerformed, addView, notifyModel, notifyViews, removeView, setModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GDSBrowserController

public GDSBrowserController(com.ohrasys.app.AbstractAppModel model,
                            com.ohrasys.app.AbstractAppView view,
                            com.ohrasys.app.AppOption[] options)
                     throws com.ohrasys.app.AppException
Creates a new GDSBrowserController object.

Parameters:
model - The application model
view - The application view
options - Command line option templates
Throws:
com.ohrasys.app.AppException - If an application error occurs
Method Detail

processEvent

public java.awt.event.ActionEvent processEvent(java.awt.event.ActionEvent evt)
Forwards model messages to the view and view messages to the model. It also intercepts application information and error events to display to the standard output

Specified by:
processEvent in class com.ohrasys.app.AbstractAppController
Parameters:
evt - The event to process
Returns:
DOCUMENT ME!

startController

public void startController()
Starts the application controller. This methods examines any command line options that have been specified and sets the application state accordingly. It then displays the application view or if the -nogui option was specified, attempts to start the browser the file specified on the command line.

Specified by:
startController in class com.ohrasys.app.AbstractAppController

toString

public java.lang.String toString()
Returns a string representation of this class

Overrides:
toString in class com.ohrasys.app.AbstractAppController
Returns:
The physical address of this instance