Class ResourcesType


  • public final class ResourcesType
    extends Object
    Utility to set which kind of resources type must be use to load injectable resources.
    This utility MUST be called as first statement before using Charba.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • setResources

        public static <T extends AbstractResources> void setResources​(ChartEnvelop<T> envelop)
        Sets the resources type to use to inject java script code.
        If the resources type was already set or if is null an exception will be throw.
        This is deprecated, use Charba.
        Type Parameters:
        T - type of resources to inject
        Parameters:
        envelop - envelop which contains the resources type to use to inject java script code
      • getResources

        public static AbstractResources getResources()
        Returns the resources type to use to inject java script code.
        If the resources type was not already set, an exception will be throw.
        Returns:
        the resources type to use to inject java script code
      • isInjected

        public static boolean isInjected()
        Returns true if the resource has been injected.
        Returns:
        true if the resource has been injected