Class ResourcesType
- java.lang.Object
-
- org.pepstock.charba.client.resources.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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.static boolean
isInjected()
Returnstrue
if the resource has been injected.static <T extends AbstractResources>
voidsetResources(ChartEnvelop<T> envelop)
Sets the resources type to use to inject java script code.
If the resources type was already set or if isnull
an exception will be throw.
This is deprecated, useCharba
.
-
-
-
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 isnull
an exception will be throw.
This is deprecated, useCharba
.- 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()
Returnstrue
if the resource has been injected.- Returns:
true
if the resource has been injected
-
-