org.viewaframework.controller
Interface ViewControllerDispatcherAware

All Known Subinterfaces:
Application
All Known Implementing Classes:
AbstractApplication, DefaultApplication

public interface ViewControllerDispatcherAware

This interface should be implemented by those classes which are going to hold the view listeners. Right now only the Application is responsible for that. In the future each view could receive this responsability in orden to make the application more modular.

Since:
1.0
Author:
Mario Garcia

Method Summary
 ViewControllerDispatcher getControllerDispatcher()
          This method returns the controller dispatcher.
 void setControllerDispatcher(ViewControllerDispatcher dispatcher)
          This method sets the application controller dispatcher.
 

Method Detail

setControllerDispatcher

void setControllerDispatcher(ViewControllerDispatcher dispatcher)
                             throws ViewControllerDispatcherException
This method sets the application controller dispatcher. There is only one ViewControllerDispatcher by application.

Parameters:
dispatcher - Sets the ViewControllerDispatcher. If a controller dispatcher has been already set then an exception should be thrown.
Throws:
ViewControllerDispatcherException

getControllerDispatcher

ViewControllerDispatcher getControllerDispatcher()
This method returns the controller dispatcher. The controller dispatcher knows about what action should be called depending on what component has launched the event.

Returns:
The ViewControllerDispatcher


Copyright © 2010. All Rights Reserved.