Class AuUtility

java.lang.Object
org.zkoss.zats.mimic.impl.au.AuUtility

public class AuUtility extends Object
A utility for AU.
Author:
dennis, jumperchen
  • Constructor Details

    • AuUtility

      public AuUtility()
  • Method Details

    • lookupEventTarget

      public static ComponentAgent lookupEventTarget(ComponentAgent c, String evtname)
      lookup the event target of a component, it look up the component and its ancient. use this for search the actual target what will receive a event for a action on a component-agent

      Currently, i get it by server side directly

    • convertToResponses

      public static List<org.zkoss.zk.au.AuResponse> convertToResponses(Map<String,Object> jsonObject)
      convert JSON object of AU. response to AuResponse list.
      Parameters:
      jsonObject - AU. response. If null, throw null point exception.
      Returns:
      list of AuResponse if the format of object is valid, or null if otherwise.
    • decodeHexEscapes

      public static String decodeHexEscapes(String input)
    • parseAuResponseFromLayout

      public static Map<String,Object> parseAuResponseFromLayout(String raw)
    • fetchJavascriptFunctionArguments

      public static String fetchJavascriptFunctionArguments(String funcName, String code)
      Returns:
      an json array text contained specified function's arguments, or null otherwise.
    • filterNonJSON

      public static String filterNonJSON(String json)