PaP
Class UserProfile

java.lang.Object
  |
  +--PaP.UserProfile
All Implemented Interfaces:
java.io.Serializable

public class UserProfile
extends java.lang.Object
implements java.io.Serializable

The UserProfile class contains the data of the UserProfile of a user. A user profile has a username and a password, and a boolean variable indicating wether the user that this UserProfile belongs to has logged in or not. It has also some properties used by the UserWindow to show User mobility.

Version:
1.0 - 12.05.02
Author:
Lars Erik Liljebäck
See Also:
UserWindow, Serialized Form

Field Summary
 java.awt.Color backgroundColor
          The background color of the UserWindow.
 boolean loggedIn
          Specifies wether the the user that this UserProfil belongs to is logged in or not.
 java.lang.String password
          The password of the user this profile belongs to.
 java.lang.String username
          The username of the user this profile belongs to.
 int windowHeight
          The height of the UserWindow.
 java.awt.Point windowLocation
          The point specifying the top left corner of the UserWindow.
 int windowWidth
          The width of the UserWindow.
 
Constructor Summary
UserProfile()
          Creates a new userprofile.
 
Method Summary
 boolean isValid()
          Returns true if none of the properties are null and the height and widht are greater or equal to 0, else it returns false.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

username

public java.lang.String username
The username of the user this profile belongs to.

password

public java.lang.String password
The password of the user this profile belongs to.

loggedIn

public boolean loggedIn
Specifies wether the the user that this UserProfil belongs to is logged in or not.

backgroundColor

public java.awt.Color backgroundColor
The background color of the UserWindow.

windowLocation

public java.awt.Point windowLocation
The point specifying the top left corner of the UserWindow.

windowHeight

public int windowHeight
The height of the UserWindow.

windowWidth

public int windowWidth
The width of the UserWindow.
Constructor Detail

UserProfile

public UserProfile()
Creates a new userprofile.
Method Detail

isValid

public boolean isValid()
Returns true if none of the properties are null and the height and widht are greater or equal to 0, else it returns false.