org.books.view
Class AddressBean

java.lang.Object
  extended by org.books.common.BaseBean
      extended by org.books.view.AddressBean
All Implemented Interfaces:
java.io.Serializable

public class AddressBean
extends BaseBean

The class Address contains the data of an address.

Version:
1.1
Author:
Stephan Fischli and marc at bouquet dot ch
See Also:
@link{org.books.common.BaseBean}, Serialized Form

Constructor Summary
AddressBean()
          Default constrcutor
 
Method Summary
 java.lang.String address()
          This method call the address view.
 java.lang.String credit()
          This method call the credit card view.
 Address getAddress()
          return the address data object
 java.lang.String getCity()
          get a city
 java.lang.String getCountry()
          get current country
 java.util.List<javax.faces.model.SelectItem> getCountryList()
          Gets the countryList.
 java.lang.String getName()
          get a name
 java.lang.String getStreet()
          get a street
 java.lang.String getZip()
          get a zip
 void loadCountryList()
          load a list with countries
 java.lang.String reset()
          This method reset all values
 void setCity(java.lang.String city)
          set city
 void setCountry(java.lang.String country)
          set current country
 void setCountryList(java.util.List<javax.faces.model.SelectItem> countryList)
          Sets the countryList.
 void setName(java.lang.String name)
          set name
 void setStreet(java.lang.String street)
          set street
 void setZip(java.lang.String zip)
          set zip
 
Methods inherited from class org.books.common.BaseBean
getFacesContext, getManagedBean, getRequest, getResponse, getSession, getText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddressBean

public AddressBean()
Default constrcutor

Method Detail

address

public java.lang.String address()
This method call the address view.

Returns:
String value for the navigation handling

credit

public java.lang.String credit()
This method call the credit card view.

Returns:
String value for the navigation handling

reset

public java.lang.String reset()
This method reset all values

Returns:
String value for the navigation handling

loadCountryList

public void loadCountryList()
load a list with countries


getAddress

public Address getAddress()
return the address data object

Returns:
Address

getCountryList

public java.util.List<javax.faces.model.SelectItem> getCountryList()
Gets the countryList.

Returns:
the countryList

getName

public java.lang.String getName()
get a name

Returns:
String

getStreet

public java.lang.String getStreet()
get a street

Returns:
String

getCity

public java.lang.String getCity()
get a city

Returns:
String

getZip

public java.lang.String getZip()
get a zip

Returns:
String

getCountry

public java.lang.String getCountry()
get current country

Returns:
String

setCountryList

public void setCountryList(java.util.List<javax.faces.model.SelectItem> countryList)
Sets the countryList.

Parameters:
countryList - The countryList to set

setName

public void setName(java.lang.String name)
set name

Parameters:
name -

setStreet

public void setStreet(java.lang.String street)
set street

Parameters:
street -

setCity

public void setCity(java.lang.String city)
set city

Parameters:
city -

setZip

public void setZip(java.lang.String zip)
set zip

Parameters:
zip -

setCountry

public void setCountry(java.lang.String country)
set current country

Parameters:
country -


Copyright © 2007 - bouquet dot ch, 3032 Hinterkappelen. All Rights Reserved.