Class DeferredCharba


  • public final class DeferredCharba
    extends Object
    Entry point to initialize and inject all Charba modules, leveraging on deferred resources mode.
    This helps when the GWT application is leveraging on code splitting.
    Author:
    Andrea "Stock" Stocchero
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void enable​(Runnable runnable)
      Enables Charba in the application, injecting also the date time library.
      Start an entry point as a runnable.
      This runnable instance must contains all calls to chart.
      This helps when the GWT application is leveraging on code splitting.
      static void enable​(Runnable runnable, boolean loadDateTimeLibrary)
      Enables Charba in the application.
      If the argument is set to false, the date time library is not injected.
      This runnable instance must contains all calls to chart.
      This helps when the GWT application is leveraging on code splitting.
    • Method Detail

      • enable

        public static void enable​(Runnable runnable)
        Enables Charba in the application, injecting also the date time library.
        Start an entry point as a runnable.
        This runnable instance must contains all calls to chart.
        This helps when the GWT application is leveraging on code splitting.
        Parameters:
        runnable - the entry point instance as runnable
      • enable

        public static void enable​(Runnable runnable,
                                  boolean loadDateTimeLibrary)
        Enables Charba in the application.
        If the argument is set to false, the date time library is not injected.
        This runnable instance must contains all calls to chart.
        This helps when the GWT application is leveraging on code splitting.
        Parameters:
        runnable - the entry point instance as runnable
        loadDateTimeLibrary - if false, the date time library is not injected