org.apache.shale.usecases.view
Class TestViewController

java.lang.Object
  extended by org.apache.shale.view.AbstractFacesBean
      extended by org.apache.shale.view.AbstractViewController
          extended by org.apache.shale.usecases.view.TestViewController
All Implemented Interfaces:
org.apache.shale.view.ViewController

public class TestViewController
extends org.apache.shale.view.AbstractViewController

Test implementation of Viewcontroller for use by ViewControllerTestCase. Event history is accumulated under a request scope attribute named by symbolic constant ATTRIBUTES.


Field Summary
static String ATTRIBUTE
           
 
Constructor Summary
TestViewController()
          Creates a new instance of TestViewController
 
Method Summary
 void destroy()
           
 String getText()
          Return the accumuated history string.
 void init()
           
 void preprocess()
           
 void prerender()
           
 String submit()
          Do-nothing submit method.
 
Methods inherited from class org.apache.shale.view.AbstractViewController
isPostBack, setPostBack
 
Methods inherited from class org.apache.shale.view.AbstractFacesBean
erase, error, error, fatal, fatal, getApplication, getApplicationMap, getBean, getExternalContext, getFacesContext, getLifecycle, getRequestHeaderMap, getRequestMap, getRequestParameter, getRequestParameterMap, getRequestParameterValues, getSessionMap, getValue, info, info, log, log, retrieveData, saveData, setBean, setValue, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTRIBUTE

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

TestViewController

public TestViewController()
Creates a new instance of TestViewController

Method Detail

getText

public String getText()

Return the accumuated history string.


submit

public String submit()

Do-nothing submit method.


init

public void init()
Specified by:
init in interface org.apache.shale.view.ViewController
Overrides:
init in class org.apache.shale.view.AbstractViewController

preprocess

public void preprocess()
Specified by:
preprocess in interface org.apache.shale.view.ViewController
Overrides:
preprocess in class org.apache.shale.view.AbstractViewController

prerender

public void prerender()
Specified by:
prerender in interface org.apache.shale.view.ViewController
Overrides:
prerender in class org.apache.shale.view.AbstractViewController

destroy

public void destroy()
Specified by:
destroy in interface org.apache.shale.view.ViewController
Overrides:
destroy in class org.apache.shale.view.AbstractViewController


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.