org.viewaframework.controller
Class DefaultWindowController

java.lang.Object
  extended by org.viewaframework.controller.AbstractViewController<WindowListener,WindowEvent>
      extended by org.viewaframework.controller.DefaultWindowController
All Implemented Interfaces:
InvocationHandler, ListenerProxy<WindowListener,WindowEvent>, ViewController<WindowListener,WindowEvent>, ViewContainerLocatorAware

public class DefaultWindowController
extends AbstractViewController<WindowListener,WindowEvent>

This controller just closes the view when the user push the x button of the window. It is usually injected in dialog or root views by .

Author:
Mario Garcia

Constructor Summary
DefaultWindowController()
           
 
Method Summary
 Class<WindowListener> getSupportedClass()
          This method tells the controller the source listener to be proxied.
 void handleView(ViewContainer view, WindowEvent eventObject)
          This is the method where the logical handling of the data should be called.
 
Methods inherited from class org.viewaframework.controller.AbstractViewController
executeHandler, getTargetController, getViewManager, invoke, locate, locate, locateRootView, postHandlingView, preHandlingView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWindowController

public DefaultWindowController()
Method Detail

getSupportedClass

public Class<WindowListener> getSupportedClass()
Description copied from interface: ViewController
This method tells the controller the source listener to be proxied.

Returns:
The type of the proxied listener

handleView

public void handleView(ViewContainer view,
                       WindowEvent eventObject)
Description copied from interface: ViewController
This is the method where the logical handling of the data should be called. Any UI call should be done in post/pre-handling methods. It is important to notice that the code executed within this method should be running in other thread than EventDispathThread.

Specified by:
handleView in interface ViewController<WindowListener,WindowEvent>
Overrides:
handleView in class AbstractViewController<WindowListener,WindowEvent>


Copyright © 2010. All Rights Reserved.