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.
-
PASSWORD_LIMIT
-
-
TITLE
-
-
PassWordFieldThread(PrefFieldPassWord)
- Constructor for a new runnable object able to ask the user to supply a new password.
-
clean()
- This method is used when the user press cancel in the preferences group when
a password thread is actually running on the TINGUIN.
-
isDone()
- Returns whether or not the run method has been completed once.
-
isSuccess()
- Returns whether or not the password has been changed successfully.
-
run()
- Defines a thread which change the password according to user choice.
PASSWORD_LIMIT
public int PASSWORD_LIMIT
TITLE
public static final String TITLE
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.
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
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.
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.
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