Package | Description |
---|---|
org.apache.tapestry5.internal.json |
[INTERNAL USE ONLY] support classes for the JSON module; API subject to change
|
org.apache.tapestry5.internal.services |
[INTERNAL USE ONLY] internal service classes; API subject to change
|
org.apache.tapestry5.internal.services.ajax |
[INTERNAL USE ONLY] AJAX support services; API subject to change
|
org.apache.tapestry5.json |
Repackaged, improved (and tested) version of code originally https://github.com/tdunning/open-json
Starting in release 5.4,
JSONObject and JSONArray
are serializable. |
org.apache.tapestry5.services.javascript |
Support for Javascript (and CSS), including dynamically-added JavaScript and
services that manage dynamically-added links to JavaScript (and CSS) assets.
|
Modifier and Type | Method and Description |
---|---|
JSONArray |
StringToJSONArray.coerce(String input) |
Modifier and Type | Method and Description |
---|---|
void |
DocumentLinkerImpl.addInitialization(InitializationPriority priority,
String moduleName,
String functionName,
JSONArray arguments) |
void |
DocumentLinker.addInitialization(InitializationPriority priority,
String moduleName,
String functionName,
JSONArray arguments)
Adds initialization, based on invoking functions exported by JavaScript modules.
|
void |
PartialMarkupDocumentLinker.addInitialization(InitializationPriority priority,
String moduleName,
String functionName,
JSONArray arguments) |
void |
ModuleInitsManager.addInitialization(InitializationPriority priority,
String moduleName,
String functionName,
JSONArray arguments) |
void |
JSONArrayEventResultProcessor.processResultValue(JSONArray value) |
Modifier and Type | Method and Description |
---|---|
void |
JavaScriptSupportImpl.addInitializerCall(InitializationPriority priority,
String functionName,
JSONArray parameter) |
void |
JavaScriptSupportImpl.addInitializerCall(String functionName,
JSONArray parameter) |
Modifier and Type | Method and Description |
---|---|
static JSONArray |
JSONArray.from(Iterable<?> iterable)
Create a new array, and adds all values from the iterable to the array (using
putAll(Iterable) . |
JSONArray |
JSONArray.getJSONArray(int index)
Returns the value at
index if it exists and is a JSONArray . |
JSONArray |
JSONObject.getJSONArray(String name)
Returns the value mapped by
name if it exists and is a JSONArray , or throws otherwise. |
JSONArray |
JSONObject.getJSONArrayOrDefault(String name,
JSONArray defaultValue)
Returns the value to which the specified key is mapped and a JSONArray, or
defaultValue if this JSONObject contains no mapping for the key. |
JSONArray |
JSONObject.names()
Returns an array containing the string names in this object.
|
JSONArray |
JSONArray.put(int index,
Object value)
Sets the value at
index to value , null padding this array
to the required length if necessary. |
JSONArray |
JSONArray.put(Object value)
Deprecated.
The use of
add(Object) is encouraged. |
JSONArray |
JSONArray.putAll(Iterable<?> collection)
Puts all objects from the collection into this JSONArray, using
put(Object) . |
Modifier and Type | Method and Description |
---|---|
JSONArray |
JSONObject.getJSONArrayOrDefault(String name,
JSONArray defaultValue)
Returns the value to which the specified key is mapped and a JSONArray, or
defaultValue if this JSONObject contains no mapping for the key. |
Modifier and Type | Method and Description |
---|---|
void |
JavaScriptSupport.addInitializerCall(InitializationPriority priority,
String functionName,
JSONArray parameter)
Deprecated.
Deprecated in 5.4; refactor to use JavaScript modules instead
|
void |
JavaScriptSupport.addInitializerCall(String functionName,
JSONArray parameter)
Deprecated.
Deprecated in 5.4; refactor to use JavaScript modules instead
|
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.