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 TypeMethodDescriptionvoid
DocumentLinker.addInitialization
(InitializationPriority priority, String moduleName, String functionName, JSONArray arguments) Adds initialization, based on invoking functions exported by JavaScript modules.void
DocumentLinkerImpl.addInitialization
(InitializationPriority priority, String moduleName, String functionName, JSONArray arguments) void
ModuleInitsManager.addInitialization
(InitializationPriority priority, String moduleName, String functionName, JSONArray arguments) void
PartialMarkupDocumentLinker.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 TypeMethodDescriptionvoid
JavaScriptSupportImpl.addInitializerCall
(String functionName, JSONArray parameter) void
JavaScriptSupportImpl.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 JSONArray
Create a new array, and adds all values from the iterable to the array (usingputAll(Iterable)
.JSONArray.getJSONArray
(int index) Returns the value atindex
if it exists and is aJSONArray
.JSONObject.getJSONArray
(String name) Returns the value mapped byname
if 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, ordefaultValue
if this JSONObject contains no mapping for the key.JSONObject.names()
Returns an array containing the string names in this object.Sets the value atindex
tovalue
, 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 aCollector
that 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, ordefaultValue
if 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 TypeMethodDescriptionvoid
JavaScriptSupport.addInitializerCall
(String functionName, JSONArray parameter) Deprecated.Deprecated in 5.4; refactor to use JavaScript modules insteadvoid
JavaScriptSupport.addInitializerCall
(InitializationPriority priority, String functionName, JSONArray parameter) Deprecated.Deprecated in 5.4; refactor to use JavaScript modules instead
add(Object)
is encouraged.