FileDocCategorySizeDatePackage
UserProfile.javaAPI DocExample2810Tue Jun 08 11:26:42 BST 2004com.mycompany.expense

UserProfile

public class UserProfile extends Object
This class holds the user preferences that can be set for the sample expense report application.
author
Hans Bergsten, Gefion Software
version
1.0

Fields Summary
private String
firstName
private String
lastName
private String
street
private String
city
private String
state
private String
zip
private String
locale
private String
fontStyle
private String
fontSize
Constructors Summary
Methods Summary
public java.lang.StringgetCity()
Returns the city name.

	return city;
    
public java.lang.StringgetFirstName()
Returns the first name.

	return firstName;
    
public java.lang.StringgetFontSize()
Returns the preferred font size.

	return fontSize;
    
public java.lang.StringgetFontStyle()
Returns the preferred font style.

	return fontStyle;
    
public java.lang.StringgetLastName()
Returns the last name.

	return lastName;
    
public java.lang.StringgetLocale()
Returns the preferred locale, or "en" if none is set.

	if (locale == null) {
	    locale = "en";
	}
	return locale;
    
public java.lang.StringgetState()
Returns the state name.

	return state;
    
public java.lang.StringgetStreet()
Returns the street address.

	return street;
    
public java.lang.StringgetZip()
Returns the postal code (e.g., ZIP code).

	return zip;
    
public voidsetCity(java.lang.String city)
Sets the city name.

	this.city = city;
    
public voidsetFirstName(java.lang.String firstName)
Sets the first name.

	this.firstName = firstName;
    
public voidsetFontSize(java.lang.String fontSize)
Sets the preferred font size.

	this.fontSize = fontSize;
    
public voidsetFontStyle(java.lang.String fontStyle)
Sets the preferred font style.

	this.fontStyle = fontStyle;
    
public voidsetLastName(java.lang.String lastName)
Sets the last name.

	this.lastName = lastName;
    
public voidsetLocale(java.lang.String locale)
Sets the preferred locale.

	this.locale = locale;
    
public voidsetState(java.lang.String state)
Sets the state name.

	this.state = state;
    
public voidsetStreet(java.lang.String street)
Sets the street address.

	this.street = street;
    
public voidsetZip(java.lang.String zip)
Sets the postal code (e.g., ZIP code).

	this.zip = zip;