Uses of Class
org.apache.tapestry5.json.JSONArray
Packages that use JSONArray
Package
Description
[INTERNAL USE ONLY] support classes for the JSON module; API subject to change
[INTERNAL USE ONLY] internal service classes; API subject to change
[INTERNAL USE ONLY] AJAX support services; API subject to change
Repackaged, improved (and tested) version of code originally https://github.com/tdunning/open-json
Starting in release 5.4,
JSONObject and JSONArray
are serializable.Support for Javascript (and CSS), including dynamically-added JavaScript and
services that manage dynamically-added links to JavaScript (and CSS) assets.
-
Uses of JSONArray in org.apache.tapestry5.internal.json
Methods in org.apache.tapestry5.internal.json that return JSONArray -
Uses of JSONArray in org.apache.tapestry5.internal.services
Methods in org.apache.tapestry5.internal.services with parameters of type JSONArrayModifier and TypeMethodDescriptionvoidDocumentLinker.addInitialization(InitializationPriority priority, String moduleName, String functionName, JSONArray arguments) Adds initialization, based on invoking functions exported by JavaScript modules.voidDocumentLinkerImpl.addInitialization(InitializationPriority priority, String moduleName, String functionName, JSONArray arguments) voidModuleInitsManager.addInitialization(InitializationPriority priority, String moduleName, String functionName, JSONArray arguments) voidPartialMarkupDocumentLinker.addInitialization(InitializationPriority priority, String moduleName, String functionName, JSONArray arguments) -
Uses of JSONArray in org.apache.tapestry5.internal.services.ajax
Methods in org.apache.tapestry5.internal.services.ajax with parameters of type JSONArrayModifier and TypeMethodDescriptionvoidJavaScriptSupportImpl.addInitializerCall(String functionName, JSONArray parameter) voidJavaScriptSupportImpl.addInitializerCall(InitializationPriority priority, String functionName, JSONArray parameter) -
Uses of JSONArray in org.apache.tapestry5.json
Methods in org.apache.tapestry5.json that return JSONArrayModifier and TypeMethodDescriptionstatic JSONArrayCreate a new array, and adds all values from the iterable to the array (usingputAll(Iterable).JSONArray.getJSONArray(int index) Returns the value atindexif it exists and is aJSONArray.JSONObject.getJSONArray(String name) Returns the value mapped bynameif it exists and is aJSONArray, or throws otherwise.JSONObject.getJSONArrayOrDefault(String name, JSONArray defaultValue) Returns the value to which the specified key is mapped and a JSONArray, ordefaultValueif this JSONObject contains no mapping for the key.JSONObject.names()Returns an array containing the string names in this object.Sets the value atindextovalue, null padding this array to the required length if necessary.Deprecated.Puts all objects from the collection into this JSONArray, usingput(Object).Methods in org.apache.tapestry5.json that return types with arguments of type JSONArrayModifier and TypeMethodDescriptionJSONCollectors.toArray()Returns aCollectorthat accumulates the input elements into a newJSONArray.Methods in org.apache.tapestry5.json with parameters of type JSONArrayModifier and TypeMethodDescriptionJSONObject.getJSONArrayOrDefault(String name, JSONArray defaultValue) Returns the value to which the specified key is mapped and a JSONArray, ordefaultValueif this JSONObject contains no mapping for the key. -
Uses of JSONArray in org.apache.tapestry5.services.javascript
Methods in org.apache.tapestry5.services.javascript with parameters of type JSONArrayModifier and TypeMethodDescriptionvoidJavaScriptSupport.addInitializerCall(String functionName, JSONArray parameter) Deprecated.Deprecated in 5.4; refactor to use JavaScript modules insteadvoidJavaScriptSupport.addInitializerCall(InitializationPriority priority, String functionName, JSONArray parameter) Deprecated.Deprecated in 5.4; refactor to use JavaScript modules instead
add(Object)is encouraged.