Class JsUtils

java.lang.Object
com.vdoc.sdk.commons.js.utils.JsUtils

public class JsUtils extends Object
Javascript utility class Created on 6 sept. 2011
Author:
vmartinon
  • Method Details

    • invoke

      public static Object invoke(Object o, String method, List<String> cNameClasses, List<Object> cParameters)
      This method is used to invoke a java method from javascript Can be used for example to solve problems with reserved method names (eg : delete)
      Parameters:
      o - the object on which we execute method
      method - the method name
      cNameClasses - arraylist of classes full names needed by method definition (String and not Class)
      cParameters - arraylist of parameters to send to the method
      Returns:
      the result object