org.psychomad.psycholib.ui
Class EasyLicenseAgreement
java.lang.Object
org.psychomad.psycholib.ui.EasyLicenseAgreement
public abstract class EasyLicenseAgreement
- extends java.lang.Object
This class allow to use a window to validate (or not) the user license
agreement.
Method Summary |
static boolean |
askLicenseAgreement()
Ask the user to accept the license. |
static boolean |
checkLicense()
|
static boolean |
checkLicense(java.lang.String licenseAgreementFilename)
Allow to check if the license had been accepted by the user. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EasyLicenseAgreement
public EasyLicenseAgreement()
checkLicense
public static boolean checkLicense()
- See Also:
checkLicense( String )
checkLicense
public static boolean checkLicense(java.lang.String licenseAgreementFilename)
- Allow to check if the license had been accepted by the user.
In fact this method look at a variable in a resource file, and return its
value (true = already accepted; false = NOT already accepted).
If the file doesn't exist it returns false.
- Parameters:
licenseAgreementFilename
- the filename where to read/store the
license agreement.
- Returns:
- true if the license had been accepted, false otherwise.
askLicenseAgreement
public static boolean askLicenseAgreement()
- Ask the user to accept the license. If he does, a value is save (to true
value) in order to remind his agreement. Otherwise nothing append, but
generally the application should close itself.
- Returns:
- true if the user accept the license, false otherwise.
Copyright 2006 null. All Rights Reserved.