All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.preferences.PassWordFieldThread

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----semper.preferences.PassWordFieldThread

public class PassWordFieldThread
extends Thread
This class is reponsible to manage what happens when the change-password button is pressed in preferences. The knowledge of the actual value for the password is tested and if ok then a new value is asked. TINGUIN is used to interact with the user.


Variable Index

 o PASSWORD_LIMIT
 o TITLE

Constructor Index

 o PassWordFieldThread(PrefFieldPassWord)
Constructor for a new runnable object able to ask the user to supply a new password.

Method Index

 o clean()
This method is used when the user press cancel in the preferences group when a password thread is actually running on the TINGUIN.
 o isDone()
Returns whether or not the run method has been completed once.
 o isSuccess()
Returns whether or not the password has been changed successfully.
 o run()
Defines a thread which change the password according to user choice.

Variables

 o PASSWORD_LIMIT
 public int PASSWORD_LIMIT
 o TITLE
 public static final String TITLE

Constructors

 o PassWordFieldThread
 public PassWordFieldThread(PrefFieldPassWord owner)
Constructor for a new runnable object able to ask the user to supply a new password. This object should be run only once.

Parameters:
owner - is the password field owning this potential thread.

Methods

 o run
 public void run()
Defines a thread which change the password according to user choice. This method refuses to be executed twice. If a new attempt has to be made then a new instance must be created.

Overrides:
run in class Thread
 o clean
 public void clean()
This method is used when the user press cancel in the preferences group when a password thread is actually running on the TINGUIN. The result is to release the display and close the session.

 o isDone
 public boolean isDone()
Returns whether or not the run method has been completed once.

Returns:
true iff the run method has been completed once.
 o isSuccess
 public boolean isSuccess()
Returns whether or not the password has been changed successfully. Returns always false if the run method is not done yet.


All Packages  Class Hierarchy  This Package  Previous  Next  Index