Package org.zkoss.zats.mimic.impl.au
Class AuUtility
java.lang.Object
org.zkoss.zats.mimic.impl.au.AuUtility
A utility for AU.
- Author:
- dennis, jumperchen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
AuUtility
public AuUtility()
-
-
Method Details
-
lookupEventTarget
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
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
-
parseAuResponseFromLayout
-
fetchJavascriptFunctionArguments
- Returns:
- an json array text contained specified function's arguments, or null otherwise.
-
filterNonJSON
-