com.jgoodies.uifextras.convenience
Class SetupManager

java.lang.Object
  extended by com.jgoodies.uifextras.convenience.SetupManager

public final class SetupManager
extends Object

Manages the setup procedure: checks whether the user has accepted an appropriate license agreement, opens a license acceptance dialog, and stores the result in the user preferences.

Version:
$Revision: 1.9 $
Author:
Karsten Lentzsch

Nested Class Summary
static interface SetupManager.WizardPanel
          An interface that describes the welcome and license agreement panels.
 
Method Summary
static boolean checkLicense()
          Checks and answers whether the user has accepted the current license agreement.
static String getAcceptedLicense()
          Returns the accepted license.
static boolean hasAcceptedVersion(String version)
          Checks and answers if the user has ever accepted the given version.
static void incrementUsageCounter()
          Increments the usage counter by one.
static void setAcceptedLicense(String version)
          Sets the accepted license to the specified version string.
static void setLicensePanel(SetupLicensePanel panel)
          Sets a license panel and overrides the default license panel.
static void setWelcomePanel(SetupManager.WizardPanel panel)
          Sets a welcome panel and overrides the default welcome panel.
static int usageCount()
          Answers how often the tool has been startet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasAcceptedVersion

public static boolean hasAcceptedVersion(String version)
Checks and answers if the user has ever accepted the given version.


getAcceptedLicense

public static String getAcceptedLicense()
Returns the accepted license.


setAcceptedLicense

public static void setAcceptedLicense(String version)
Sets the accepted license to the specified version string.


checkLicense

public static boolean checkLicense()
Checks and answers whether the user has accepted the current license agreement. Opens a license acceptance dialog, if necessary.


setWelcomePanel

public static void setWelcomePanel(SetupManager.WizardPanel panel)
Sets a welcome panel and overrides the default welcome panel.


setLicensePanel

public static void setLicensePanel(SetupLicensePanel panel)
Sets a license panel and overrides the default license panel.


usageCount

public static int usageCount()
Answers how often the tool has been startet.


incrementUsageCounter

public static void incrementUsageCounter()
Increments the usage counter by one.



Copyright © 2000-2008 JGoodies Karsten Lentzsch. All Rights Reserved.