|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcarstore.CarStore
public class CarStore
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.
The "chooseLocale" page uses actionListener
attributes to point to the chooseLocaleFromMap(javax.faces.event.ActionEvent)
and chooseLocaleFromLink(javax.faces.event.ActionEvent)
methods.
The "storeFront" page uses value binding expressions to pull information about four of the known car models in the store.
The "carDetail" page uses value binding expressions to pull
information about the currently chosen model. It also uses the
action
attribute to convey the user's package
choices.
The "confirmChoices" page uses value binding expressions to pull the user's choices from the currently chosen model.
Constructor Summary | |
---|---|
CarStore()
|
Method Summary | |
---|---|
java.lang.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(java.lang.String packageName)
|
CarBean |
getCurrentModel()
|
java.util.Map |
getCustomizers()
|
java.util.Map |
getModels()
|
java.lang.String |
storeFrontJalopyPressed()
|
java.lang.String |
storeFrontLuxuryPressed()
|
java.lang.String |
storeFrontRoadsterPressed()
|
java.lang.String |
storeFrontSUVPressed()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CarStore()
Method Detail |
---|
public void chooseLocaleFromMap(javax.faces.event.ActionEvent actionEvent)
public void chooseLocaleFromLink(javax.faces.event.ActionEvent event)
public void choosePackage(javax.faces.event.ActionEvent event)
public void choosePackage(java.lang.String packageName)
public java.lang.String storeFrontJalopyPressed()
public java.lang.String storeFrontRoadsterPressed()
public java.lang.String storeFrontLuxuryPressed()
public java.lang.String storeFrontSUVPressed()
public java.lang.String buyCurrentCar()
public CarBean getCurrentModel()
public java.util.Map getModels()
public java.util.Map getCustomizers()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |