Class FlexGanttFX


  • public final class FlexGanttFX
    extends Object
    Utility class for setting the license key.
    Since:
    1.0
    • Constructor Detail

      • FlexGanttFX

        public FlexGanttFX()
    • 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 calling getVersion().
        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 the setLicenseKey(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()