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

java.lang.Object
  extended by org.viewaframework.controller.AbstractViewController<ActionListener,ActionEvent>
      extended by org.viewaframework.controller.AbstractActionController
          extended by org.viewaframework.widget.controller.MasterViewController<T>
All Implemented Interfaces:
InvocationHandler, ListenerProxy<ActionListener,ActionEvent>, ViewController<ActionListener,ActionEvent>, ViewContainerLocatorAware

public abstract class MasterViewController<T>
extends AbstractActionController

Author:
Mario Garcia

Field Summary
static String ACTION_ADD
           
static String ACTION_DELETE
           
static String ACTION_EDIT
           
static String ACTION_EXIT
           
static String ACTION_SHOW
           
 DetailView<T> detailView
           
 
Constructor Summary
MasterViewController()
           
 
Method Summary
 DetailView<T> getDetailView()
           
 void handleView(ViewContainer view, ActionEvent eventObject)
          This is the method where the logical handling of the data should be called.
protected  void handleViewAdd(MasterView<T> masterView, ActionEvent eventObject)
           
protected  void handleViewDelete(MasterView<T> masterView, ActionEvent eventObject)
           
protected  void handleViewEdit(MasterView<T> masterView, ActionEvent eventObject)
           
protected  void handleViewExit(MasterView<T> masterView, ActionEvent eventObject)
           
protected  void handleViewShow(MasterView<T> masterView, ActionEvent eventObject)
           
 void postHandlingView(ViewContainer view, ActionEvent eventObject)
          Used for some UI updating before the logical code has been called.
protected  void postHandlingViewAdd(MasterView<T> masterView, ActionEvent eventObject)
           
protected  void postHandlingViewDelete(MasterView<T> masterView, ActionEvent eventObject)
           
protected  void postHandlingViewEdit(MasterView<T> masterView, ActionEvent eventObject)
           
protected  void postHandlingViewExit(MasterView<T> masterView, ActionEvent eventObject)
           
protected  void postHandlingViewLook(MasterView<T> masterView, ActionEvent eventObject)
           
 void preHandlingView(ViewContainer view, ActionEvent eventObject)
          Used for some UI updating once the logical code has been called.
protected  void preHandlingViewAdd(MasterView<T> masterView, ActionEvent eventObject)
           
protected  void preHandlingViewDelete(MasterView<T> masterView, ActionEvent eventObject)
           
protected  void preHandlingViewEdit(MasterView<T> masterView, ActionEvent eventObject)
           
protected  void preHandlingViewExit(MasterView<T> masterView, ActionEvent eventObject)
           
protected  void preHandlingViewLook(MasterView<T> masterView, ActionEvent eventObject)
           
 void setDetailView(DetailView<T> detailView)
           
 
Methods inherited from class org.viewaframework.controller.AbstractActionController
getSupportedClass
 
Methods inherited from class org.viewaframework.controller.AbstractViewController
executeHandler, getTargetController, getViewManager, invoke, locate, locate, locateRootView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_ADD

public static final String ACTION_ADD
See Also:
Constant Field Values

ACTION_DELETE

public static final String ACTION_DELETE
See Also:
Constant Field Values

ACTION_EDIT

public static final String ACTION_EDIT
See Also:
Constant Field Values

ACTION_EXIT

public static final String ACTION_EXIT
See Also:
Constant Field Values

ACTION_SHOW

public static final String ACTION_SHOW
See Also:
Constant Field Values

detailView

public DetailView<T> detailView
Constructor Detail

MasterViewController

public MasterViewController()
Method Detail

getDetailView

public DetailView<T> getDetailView()
Returns:

handleView

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

handleViewAdd

protected void handleViewAdd(MasterView<T> masterView,
                             ActionEvent eventObject)
Parameters:
masterView -
eventObject -

handleViewDelete

protected void handleViewDelete(MasterView<T> masterView,
                                ActionEvent eventObject)
Parameters:
masterView -
eventObject -

handleViewEdit

protected void handleViewEdit(MasterView<T> masterView,
                              ActionEvent eventObject)
Parameters:
masterView -
eventObject -

handleViewExit

protected void handleViewExit(MasterView<T> masterView,
                              ActionEvent eventObject)
Parameters:
masterView -
eventObject -

handleViewShow

protected void handleViewShow(MasterView<T> masterView,
                              ActionEvent eventObject)
Parameters:
masterView -
eventObject -

postHandlingView

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

Specified by:
postHandlingView in interface ViewController<ActionListener,ActionEvent>
Overrides:
postHandlingView in class AbstractViewController<ActionListener,ActionEvent>

postHandlingViewAdd

protected void postHandlingViewAdd(MasterView<T> masterView,
                                   ActionEvent eventObject)
Parameters:
masterView -
eventObject -

postHandlingViewDelete

protected void postHandlingViewDelete(MasterView<T> masterView,
                                      ActionEvent eventObject)
Parameters:
masterView -
eventObject -

postHandlingViewEdit

protected void postHandlingViewEdit(MasterView<T> masterView,
                                    ActionEvent eventObject)
Parameters:
masterView -
eventObject -

postHandlingViewExit

protected void postHandlingViewExit(MasterView<T> masterView,
                                    ActionEvent eventObject)
Parameters:
masterView -
eventObject -

postHandlingViewLook

protected void postHandlingViewLook(MasterView<T> masterView,
                                    ActionEvent eventObject)
Parameters:
masterView -
eventObject -

preHandlingView

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

Specified by:
preHandlingView in interface ViewController<ActionListener,ActionEvent>
Overrides:
preHandlingView in class AbstractViewController<ActionListener,ActionEvent>

preHandlingViewAdd

protected void preHandlingViewAdd(MasterView<T> masterView,
                                  ActionEvent eventObject)
Parameters:
masterView -
eventObject -

preHandlingViewDelete

protected void preHandlingViewDelete(MasterView<T> masterView,
                                     ActionEvent eventObject)
Parameters:
masterView -
eventObject -

preHandlingViewEdit

protected void preHandlingViewEdit(MasterView<T> masterView,
                                   ActionEvent eventObject)
Parameters:
masterView -
eventObject -

preHandlingViewExit

protected void preHandlingViewExit(MasterView<T> masterView,
                                   ActionEvent eventObject)
Parameters:
masterView -
eventObject -

preHandlingViewLook

protected void preHandlingViewLook(MasterView<T> masterView,
                                   ActionEvent eventObject)
Parameters:
masterView -
eventObject -

setDetailView

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


Copyright © 2010. All Rights Reserved.