org.apache.shale.usecases.locale
Class Select

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

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

ViewController to select the Locale to be used for localizing responses.

$Id: Select.java 464373 2006-10-16 04:21:54Z rahul $


Constructor Summary
Select()
           
 
Method Summary
 String getLocale()
           
 void prerender()
          Set the value of the locale property based on the Locale in the current view.
 String select()
          Set the new Locale, based on the value selected by the user.
 void setLocale(String locale)
           
 
Methods inherited from class org.apache.shale.view.AbstractViewController
destroy, init, isPostBack, preprocess, 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
 

Constructor Detail

Select

public Select()
Method Detail

getLocale

public String getLocale()

setLocale

public void setLocale(String locale)

select

public String select()

Set the new Locale, based on the value selected by the user.


prerender

public void prerender()

Set the value of the locale property based on the Locale in the current view.

Specified by:
prerender in interface org.apache.shale.view.ViewController
Overrides:
prerender in class org.apache.shale.view.AbstractViewController


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