org.apache.shale.view
Class AbstractViewController

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

public abstract class AbstractViewController
extends AbstractFacesBean
implements ViewController

AbstractViewController is a convenience base implementation of ViewController. It also provides convenience methods inherited from AbstractFacesBean to all of its subclasses.

$Id: AbstractViewController.java 478339 2006-11-22 22:03:44Z craigmcc $


Constructor Summary
AbstractViewController()
          Pre-initialize the postBack property appropriately if we can.
 
Method Summary
 void destroy()
          The default implementation does nothing.
 void init()
          The default implementation does nothing.
 boolean isPostBack()
          

Return a flag indicating whether this request is a "post back" (that is, the view was restored in order to respond to a submit from the client), or a newly created view.

 void preprocess()
          The default implementation does nothing.
 void prerender()
          The default implementation does nothing.
 void setPostBack(boolean postBack)
          

Set a flag indicating whether this request is a "post back" (that is, the view was restored in order to respond to a submit from the client), or a newly created view.

 
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
 

Constructor Detail

AbstractViewController

public AbstractViewController()

Pre-initialize the postBack property appropriately if we can.

Method Detail

isPostBack

public boolean isPostBack()

Return a flag indicating whether this request is a "post back" (that is, the view was restored in order to respond to a submit from the client), or a newly created view. This method must return any value passed to the setPostBack() method.

Specified by:
isPostBack in interface ViewController

setPostBack

public void setPostBack(boolean postBack)

Set a flag indicating whether this request is a "post back" (that is, the view was restored in order to respond to a submit from the client), or a newly created view.

Specified by:
setPostBack in interface ViewController
Parameters:
postBack - true for a post back request, or false for a newly created request

destroy

public void destroy()

The default implementation does nothing.

Specified by:
destroy in interface ViewController

init

public void init()

The default implementation does nothing.

Specified by:
init in interface ViewController

preprocess

public void preprocess()

The default implementation does nothing.

Specified by:
preprocess in interface ViewController

prerender

public void prerender()

The default implementation does nothing.

Specified by:
prerender in interface ViewController


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