java.lang.Object
com.flexganttfx.core.FlexGanttFX
Utility class for setting the license key.
- Since:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Represents the "Licensee" feature.static final String
Represents the "Product" feature.static final String
Represents the "Runtime" feature.static final String
Represents the "Vendor" feature.static final String
Represents the "Version" feature. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.smardec.license4j.License
static String
Returns the version (e.g.static String
Returns the name of the licensee.static String
Returns the product type (e.g.static String
Returns the public key used for decoding the license key.static String
Returns the name of the vendor (e.g.static String
Returns the FlexGanttFX version number in the format major.minor.bug (1.0.0).static boolean
Determines if the product uses a development license.static boolean
Determines if thesetLicenseKey(String)
method has been called.static boolean
Determines if the product uses a runtime license.static boolean
Determines if the product is run as a trial.static void
setLicenseKey
(String key) Sets the license key used for FlexGantt.
-
Field Details
-
FEATURE_LICENSEE
Represents the "Licensee" feature.- Since:
- 1.0
- See Also:
-
FEATURE_PRODUCT
Represents the "Product" feature.- Since:
- 1.0
- See Also:
-
FEATURE_RUNTIME
Represents the "Runtime" feature.- Since:
- 1.0
- See Also:
-
FEATURE_VENDOR
Represents the "Vendor" feature.- Since:
- 1.0
- See Also:
-
FEATURE_VERSION
Represents the "Version" feature.- Since:
- 1.0
- See Also:
-
-
Constructor Details
-
FlexGanttFX
public FlexGanttFX()
-
-
Method Details
-
getVersion
Returns the FlexGanttFX version number in the format major.minor.bug (1.0.0).- Returns:
- the FlexGanttFX version number
- Since:
- 1.0
-
getLicensee
Returns the name of the licensee.- Returns:
- the licensee's name
- Since:
- 1.0
-
getProduct
Returns the product type (e.g. "LITE", "STANDARD", "ENTERPRISE").- Returns:
- the product type
- Since:
- 1.0
-
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
Returns the name of the vendor (e.g. ComponentSource, DLSC, Evget, ...).- Returns:
- the vendor's name
- Since:
- 1.0
-
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
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()
-