com.liferay.portlet.dynamicdatamapping.io
Class DDMFormLayoutJSONSerializerImpl
java.lang.Object
com.liferay.portlet.dynamicdatamapping.io.DDMFormLayoutJSONSerializerImpl
- All Implemented Interfaces:
- DDMFormLayoutJSONSerializer
public class DDMFormLayoutJSONSerializerImpl
- extends Object
- implements DDMFormLayoutJSONSerializer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DDMFormLayoutJSONSerializerImpl
public DDMFormLayoutJSONSerializerImpl()
serialize
public String serialize(DDMFormLayout ddmFormLayout)
- Specified by:
serialize in interface DDMFormLayoutJSONSerializer
addColumns
protected void addColumns(JSONObject jsonObject,
List<DDMFormLayoutColumn> ddmFormLayoutColumns)
addDefaultLanguageId
protected void addDefaultLanguageId(JSONObject jsonObject,
Locale defaultLocale)
addDescription
protected void addDescription(JSONObject pageJSONObject,
LocalizedValue description)
addFieldNames
protected void addFieldNames(JSONObject jsonObject,
List<String> ddmFormFieldNames)
addPages
protected void addPages(JSONObject jsonObject,
List<DDMFormLayoutPage> ddmFormLayoutPages)
addRows
protected void addRows(JSONObject jsonObject,
List<DDMFormLayoutRow> ddmFormLayoutRows)
addTitle
protected void addTitle(JSONObject pageJSONObject,
LocalizedValue title)
toJSONObject
protected JSONObject toJSONObject(DDMFormLayoutColumn ddmFormLayoutColumn)
toJSONObject
protected JSONObject toJSONObject(DDMFormLayoutPage ddmFormLayoutPage)
toJSONObject
protected JSONObject toJSONObject(DDMFormLayoutRow ddmFormLayoutRow)