org.viewaframework.widget.controller
Class MasterViewTableController<T>

java.lang.Object
  extended by org.viewaframework.controller.AbstractViewController<MouseListener,MouseEvent>
      extended by org.viewaframework.controller.AbstractMouseClickController
          extended by org.viewaframework.widget.controller.MasterViewTableController<T>
Type Parameters:
T -
All Implemented Interfaces:
InvocationHandler, ListenerProxy<MouseListener,MouseEvent>, ViewController<MouseListener,MouseEvent>, ViewContainerLocatorAware

public abstract class MasterViewTableController<T>
extends AbstractMouseClickController

Author:
Mario Garcia

Constructor Summary
MasterViewTableController()
           
 
Method Summary
 DetailView<T> getDetailView()
           
protected  void handleClickView(MasterView<T> masterView, MouseEvent eventObject)
           
 void handleView(ViewContainer view, MouseEvent eventObject)
          This is the method where the logical handling of the data should be called.
protected  void postHandlingClickView(MasterView<T> masterView, MouseEvent eventObject)
           
 void postHandlingView(ViewContainer view, MouseEvent eventObject)
          Used for some UI updating before the logical code has been called.
protected  void preHandlingClickView(MasterView<T> masterView, MouseEvent eventObject)
           
 void preHandlingView(ViewContainer view, MouseEvent eventObject)
          Used for some UI updating once the logical code has been called.
 void setDetailView(DetailView<T> detailView)
           
 
Methods inherited from class org.viewaframework.controller.AbstractMouseClickController
executeHandler, getNumberOfClicks, getSupportedClass
 
Methods inherited from class org.viewaframework.controller.AbstractViewController
getTargetController, getViewManager, invoke, locate, locate, locateRootView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MasterViewTableController

public MasterViewTableController()
Method Detail

getDetailView

public DetailView<T> getDetailView()
Returns:

handleClickView

protected void handleClickView(MasterView<T> masterView,
                               MouseEvent eventObject)
Parameters:
masterView -
eventObject -

handleView

public void handleView(ViewContainer view,
                       MouseEvent 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<MouseListener,MouseEvent>
Overrides:
handleView in class AbstractViewController<MouseListener,MouseEvent>

postHandlingClickView

protected void postHandlingClickView(MasterView<T> masterView,
                                     MouseEvent eventObject)
Parameters:
masterView -
eventObject -

postHandlingView

public void postHandlingView(ViewContainer view,
                             MouseEvent eventObject)
Description copied from interface: ViewController
Used for some UI updating before the logical code has been called.

Specified by:
postHandlingView in interface ViewController<MouseListener,MouseEvent>
Overrides:
postHandlingView in class AbstractViewController<MouseListener,MouseEvent>

preHandlingClickView

protected void preHandlingClickView(MasterView<T> masterView,
                                    MouseEvent eventObject)
Parameters:
masterView -
eventObject -

preHandlingView

public void preHandlingView(ViewContainer view,
                            MouseEvent eventObject)
Description copied from interface: ViewController
Used for some UI updating once the logical code has been called.

Specified by:
preHandlingView in interface ViewController<MouseListener,MouseEvent>
Overrides:
preHandlingView in class AbstractViewController<MouseListener,MouseEvent>

setDetailView

public void setDetailView(DetailView<T> detailView)
Parameters:
detailView -


Copyright © 2010. All Rights Reserved.