Class EmbeddedResources
- java.lang.Object
-
- org.pepstock.charba.client.resources.AbstractResources
-
- org.pepstock.charba.client.resources.EmbeddedResources
-
public final class EmbeddedResources extends AbstractResources
Java script resources container to reference LUXON as date time library (synchronous mode).
It has been invoked in order to have an java script injection, needed to CHARBA, where CHART.JS and date library will be load in embedded mode.- Author:
- Andrea "Stock" Stocchero
-
-
Field Summary
Fields Modifier and Type Field Description static EmbeddedResources
INSTANCE
Static reference to LUXON resources which is injecting the LUXON library.static EmbeddedResources
INSTANCE_WITHOUT_DATE_LIBRARY
Static reference to LUXON resources which is NOT injecting the LUXON library, because LUXON date library could be used in other libraries and to avoid to inject the library more than once.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
inject()
Injects CHART.JS, date adapter and library if not already injected.
-
-
-
Field Detail
-
INSTANCE
public static final EmbeddedResources INSTANCE
Static reference to LUXON resources which is injecting the LUXON library.
-
INSTANCE_WITHOUT_DATE_LIBRARY
public static final EmbeddedResources INSTANCE_WITHOUT_DATE_LIBRARY
Static reference to LUXON resources which is NOT injecting the LUXON library, because LUXON date library could be used in other libraries and to avoid to inject the library more than once.
-
-
Method Detail
-
inject
public void inject()
Injects CHART.JS, date adapter and library if not already injected.- Specified by:
inject
in classAbstractResources
-
-