Package com.smartgwt.client.tools
Class SerializationSettings
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.tools.SerializationSettings
- All Implemented Interfaces:
HasHandlers
Settings to control
EditContext
serialization.- See Also:
-
Field Summary
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionOverrides the default indention setting during serialization.static SerializationSettings
getOrCreateRef
(JavaScriptObject jsObj) Overrides the default component output setting during serialization.When true specify DataSources in full rather than assuming they can be downloaded from the server.Overrides the default indention setting during serialization.setOutputComponentsIndividually
(Boolean outputComponentsIndividually) Overrides the default component output setting during serialization.setServerless
(Boolean serverless) When true specify DataSources in full rather than assuming they can be downloaded from the server.Methods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
-
Constructor Details
-
SerializationSettings
public SerializationSettings() -
SerializationSettings
-
-
Method Details
-
getOrCreateRef
-
setIndent
Overrides the default indention setting during serialization. XML defaults to indented and JSON defaults to non-indented.- Parameters:
indent
- New indent value. Default value is null- Returns:
SerializationSettings
instance, for chaining setter calls
-
getIndent
Overrides the default indention setting during serialization. XML defaults to indented and JSON defaults to non-indented.- Returns:
- Current indent value. Default value is null
-
setOutputComponentsIndividually
Overrides the default component output setting during serialization. By default Canvas and DrawItem components are serialized individually and referenced by their containers.- Parameters:
outputComponentsIndividually
- New outputComponentsIndividually value. Default value is true- Returns:
SerializationSettings
instance, for chaining setter calls
-
getOutputComponentsIndividually
Overrides the default component output setting during serialization. By default Canvas and DrawItem components are serialized individually and referenced by their containers.- Returns:
- Current outputComponentsIndividually value. Default value is true
-
setServerless
When true specify DataSources in full rather than assuming they can be downloaded from the server.- Parameters:
serverless
- New serverless value. Default value is null- Returns:
SerializationSettings
instance, for chaining setter calls
-
getServerless
When true specify DataSources in full rather than assuming they can be downloaded from the server.- Returns:
- Current serverless value. Default value is null
-