- java.lang.Object
-
- com.flexganttfx.core.FlexGanttFX
-
public final class FlexGanttFX extends Object
Utility class for setting the license key.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description static String
FEATURE_LICENSEE
Represents the "Licensee" feature.static String
FEATURE_PRODUCT
Represents the "Product" feature.static String
FEATURE_RUNTIME
Represents the "Runtime" feature.static String
FEATURE_VENDOR
Represents the "Vendor" feature.static String
FEATURE_VERSION
Represents the "Version" feature.
-
Constructor Summary
Constructors Constructor Description FlexGanttFX()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.smardec.license4j.License
getLicense()
static String
getLicensedVersion()
Returns the version (e.g.static String
getLicensee()
Returns the name of the licensee.static String
getProduct()
Returns the product type (e.g.static String
getPublicKey()
Returns the public key used for decoding the license key.static String
getVendor()
Returns the name of the vendor (e.g.static String
getVersion()
Returns the FlexGanttFX version number in the format major.minor.bug (1.0.0).static boolean
isDevelopmentLicense()
Determines if the product uses a development license.static boolean
isLicenseKeySet()
Determines if thesetLicenseKey(String)
method has been called.static boolean
isRuntimeLicense()
Determines if the product uses a runtime license.static boolean
isTrialLicense()
Determines if the product is run as a trial.static void
setLicenseKey(String key)
Sets the license key used for FlexGantt.
-
-
-
Field Detail
-
FEATURE_LICENSEE
public static final String FEATURE_LICENSEE
Represents the "Licensee" feature.- Since:
- 1.0
- See Also:
- Constant Field Values
-
FEATURE_PRODUCT
public static final String FEATURE_PRODUCT
Represents the "Product" feature.- Since:
- 1.0
- See Also:
- Constant Field Values
-
FEATURE_RUNTIME
public static final String FEATURE_RUNTIME
Represents the "Runtime" feature.- Since:
- 1.0
- See Also:
- Constant Field Values
-
FEATURE_VENDOR
public static final String FEATURE_VENDOR
Represents the "Vendor" feature.- Since:
- 1.0
- See Also:
- Constant Field Values
-
FEATURE_VERSION
public static final String FEATURE_VERSION
Represents the "Version" feature.- Since:
- 1.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
getVersion
public static String getVersion()
Returns the FlexGanttFX version number in the format major.minor.bug (1.0.0).- Returns:
- the FlexGanttFX version number
- Since:
- 1.0
-
getLicensee
public static String getLicensee()
Returns the name of the licensee.- Returns:
- the licensee's name
- Since:
- 1.0
-
getProduct
public static String getProduct()
Returns the product type (e.g. "LITE", "STANDARD", "ENTERPRISE").- Returns:
- the product type
- Since:
- 1.0
-
getPublicKey
public static String getPublicKey()
Returns the public key used for decoding the license key.- Returns:
- the public key used for decoding the license key
- Since:
- 1.0
-
getVendor
public static String getVendor()
Returns the name of the vendor (e.g. ComponentSource, DLSC, Evget, ...).- Returns:
- the vendor's name
- Since:
- 1.0
-
getLicensedVersion
public static String getLicensedVersion()
Returns the version (e.g. "1", "2", ...). This number is the version number used for licensing issues only. It represents the major version number. A more detailed version number can be looked up by callinggetVersion()
.- Returns:
- the product version
- Since:
- 1.0
-
isDevelopmentLicense
public static boolean isDevelopmentLicense()
Determines if the product uses a development license.- Returns:
- true if the product uses a development license
- Since:
- 1.0
-
isRuntimeLicense
public static boolean isRuntimeLicense()
Determines if the product uses a runtime license.- Returns:
- true if the product uses a runtime license
- Since:
- 1.0
-
isTrialLicense
public static boolean isTrialLicense()
Determines if the product is run as a trial.- Returns:
- true if the product is run as a trial
- Since:
- 1.0
-
isLicenseKeySet
public static boolean isLicenseKeySet()
Determines if thesetLicenseKey(String)
method has been called.- Returns:
- true if the license key has already been set
- Since:
- 1.0
-
setLicenseKey
public static void setLicenseKey(String key)
Sets the license key used for FlexGantt. The key determines whether the product uses a development or a runtime license.- Parameters:
key
- the license key- Throws:
IllegalStateException
- if the license key gets set more than once- Since:
- 1.0
-
getLicense
public static com.smardec.license4j.License getLicense()
-
-