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

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

public abstract class DetailViewController<T>
extends AbstractActionController

Author:
mario

Field Summary
static String CANCEL
           
static String HELP
           
static String SAVE
           
 
Constructor Summary
DetailViewController()
           
 
Method Summary
 JLabel getStatusBarMessageBar(ViewContainer view)
           
 void handleView(ViewContainer view, ActionEvent eventObject)
          This is the method where the logical handling of the data should be called.
protected  void handleViewAccept(DetailView<T> view, ActionEvent eventObject, T value)
           
protected  void handleViewCancel(DetailView<T> view, ActionEvent eventObject, T value)
           
protected  void handleViewHelp(DetailView<T> view, ActionEvent eventObject, T value)
           
 void postHandlingView(ViewContainer view, ActionEvent eventObject)
          Used for some UI updating before the logical code has been called.
protected  void postHandlingViewAccept(DetailView<T> view, ActionEvent eventObject, T value)
           
protected  void postHandlingViewCancel(DetailView<T> view, ActionEvent eventObject, T value)
           
protected  void postHandlingViewHelp(DetailView<T> view, ActionEvent eventObject, T value)
           
 void preHandlingView(ViewContainer view, ActionEvent eventObject)
          Used for some UI updating once the logical code has been called.
protected  void preHandlingViewAccept(DetailView<T> view, ActionEvent eventObject)
           
protected  void preHandlingViewCancel(DetailView<T> view, ActionEvent eventObject)
           
protected  void preHandlingViewHelp(DetailView<T> view, ActionEvent eventObject)
           
 
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

CANCEL

public static final String CANCEL
See Also:
Constant Field Values

HELP

public static final String HELP
See Also:
Constant Field Values

SAVE

public static final String SAVE
See Also:
Constant Field Values
Constructor Detail

DetailViewController

public DetailViewController()
Method Detail

getStatusBarMessageBar

public JLabel getStatusBarMessageBar(ViewContainer view)
Parameters:
view -
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>

handleViewAccept

protected void handleViewAccept(DetailView<T> view,
                                ActionEvent eventObject,
                                T value)
                         throws Exception
Parameters:
view -
eventObject -
Throws:
Exception

handleViewCancel

protected void handleViewCancel(DetailView<T> view,
                                ActionEvent eventObject,
                                T value)
                         throws Exception
Parameters:
view -
eventObject -
Throws:
Exception

handleViewHelp

protected void handleViewHelp(DetailView<T> view,
                              ActionEvent eventObject,
                              T value)
                       throws Exception
Parameters:
view -
eventObject -
Throws:
Exception

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>

postHandlingViewAccept

protected void postHandlingViewAccept(DetailView<T> view,
                                      ActionEvent eventObject,
                                      T value)
                               throws Exception
Parameters:
view -
eventObject -
Throws:
Exception

postHandlingViewCancel

protected void postHandlingViewCancel(DetailView<T> view,
                                      ActionEvent eventObject,
                                      T value)
                               throws Exception
Parameters:
view -
eventObject -
Throws:
Exception

postHandlingViewHelp

protected void postHandlingViewHelp(DetailView<T> view,
                                    ActionEvent eventObject,
                                    T value)
                             throws Exception
Parameters:
view -
eventObject -
Throws:
Exception

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>

preHandlingViewAccept

protected void preHandlingViewAccept(DetailView<T> view,
                                     ActionEvent eventObject)
Parameters:
view -
eventObject -

preHandlingViewCancel

protected void preHandlingViewCancel(DetailView<T> view,
                                     ActionEvent eventObject)
Parameters:
view -
eventObject -

preHandlingViewHelp

protected void preHandlingViewHelp(DetailView<T> view,
                                   ActionEvent eventObject)
Parameters:
view -
eventObject -


Copyright © 2010. All Rights Reserved.