org.apache.cocoon.faces.samples.carstore
Class CarStore

java.lang.Object
  extended by org.apache.cocoon.faces.samples.carstore.CarStore

public class CarStore
extends Object

This is the main bean for the application. It maintains a Map of CarBean instances, keyed by model name, and a Map of CarCustomizer instances, keyed by package name. The CarBean instances in the model Map are accessed from several pages, as described below.

Several pages in the application use this bean as the target of method reference and value reference expressions.


Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
CarStore()
           
 
Method Summary
 String buyCurrentCar()
           
 void chooseLocaleFromLink(javax.faces.event.ActionEvent event)
           
 void chooseLocaleFromMap(javax.faces.event.ActionEvent actionEvent)
           
 void choosePackage(javax.faces.event.ActionEvent event)
           
 void choosePackage(String packageName)
           
 CarBean getCurrentModel()
           
 Map getCustomizers()
           
 Map getModels()
           
 String storeFrontJalopyPressed()
           
 String storeFrontLuxuryPressed()
           
 String storeFrontRoadsterPressed()
           
 String storeFrontSUVPressed()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.commons.logging.Log log
Constructor Detail

CarStore

public CarStore()
Method Detail

chooseLocaleFromMap

public void chooseLocaleFromMap(javax.faces.event.ActionEvent actionEvent)

chooseLocaleFromLink

public void chooseLocaleFromLink(javax.faces.event.ActionEvent event)

choosePackage

public void choosePackage(javax.faces.event.ActionEvent event)

choosePackage

public void choosePackage(String packageName)

storeFrontJalopyPressed

public String storeFrontJalopyPressed()

storeFrontRoadsterPressed

public String storeFrontRoadsterPressed()

storeFrontLuxuryPressed

public String storeFrontLuxuryPressed()

storeFrontSUVPressed

public String storeFrontSUVPressed()

buyCurrentCar

public String buyCurrentCar()

getCurrentModel

public CarBean getCurrentModel()

getModels

public Map getModels()

getCustomizers

public Map getCustomizers()


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.