Package org.zkoss.zats.mimic.impl.au
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 Summary
Constructors Constructor Description AuUtility()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<org.zkoss.zk.au.AuResponse>convertToResponses(Map<String,Object> jsonObject)convert JSON object of AU.static StringdecodeHexEscapes(String input)static StringfetchJavascriptFunctionArguments(String funcName, String code)static StringfilterNonJSON(String json)static ComponentAgentlookupEventTarget(ComponentAgent c, String evtname)lookup the event target of a component, it look up the component and its ancient.static Map<String,Object>parseAuResponseFromLayout(String raw)
-
-
-
Method Detail
-
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.
-
fetchJavascriptFunctionArguments
public static String fetchJavascriptFunctionArguments(String funcName, String code)
- Returns:
- an json array text contained specified function's arguments, or null otherwise.
-
-