Interface DisplayCallback<C extends ChartContext>

  • All Superinterfaces:
    Scriptable<Object,​C>

    public interface DisplayCallback<C extends ChartContext>
    extends Scriptable<Object,​C>
    Callback interface to set display property where it can be set by Display or a boolean.
    Author:
    Andrea "Stock" Stocchero
    • Method Summary

      Static Methods 
      Modifier and Type Method Description
      static Object checkAndGet​(Object result, Display defaultValue)
      Checks the result of this callback returning the right value to set in the options.
      • Methods inherited from interface org.pepstock.charba.client.callbacks.Scriptable

        invoke
    • Method Detail

      • checkAndGet

        static Object checkAndGet​(Object result,
                                  Display defaultValue)
        Checks the result of this callback returning the right value to set in the options.
        Parameters:
        result - result of callback invocation
        defaultValue - default value to use if the result is not consistent
        Returns:
        the right value to set in the options