Liferay 7.0-ce-m6

com.liferay.portlet.dynamicdatamapping.io
Class DDMFormLayoutJSONSerializerImpl

java.lang.Object
  extended by com.liferay.portlet.dynamicdatamapping.io.DDMFormLayoutJSONSerializerImpl
All Implemented Interfaces:
DDMFormLayoutJSONSerializer

public class DDMFormLayoutJSONSerializerImpl
extends Object
implements DDMFormLayoutJSONSerializer


Constructor Summary
DDMFormLayoutJSONSerializerImpl()
           
 
Method Summary
protected  void addColumns(JSONObject jsonObject, List<DDMFormLayoutColumn> ddmFormLayoutColumns)
           
protected  void addDefaultLanguageId(JSONObject jsonObject, Locale defaultLocale)
           
protected  void addDescription(JSONObject pageJSONObject, LocalizedValue description)
           
protected  void addFieldNames(JSONObject jsonObject, List<String> ddmFormFieldNames)
           
protected  void addPages(JSONObject jsonObject, List<DDMFormLayoutPage> ddmFormLayoutPages)
           
protected  void addRows(JSONObject jsonObject, List<DDMFormLayoutRow> ddmFormLayoutRows)
           
protected  void addTitle(JSONObject pageJSONObject, LocalizedValue title)
           
 String serialize(DDMFormLayout ddmFormLayout)
           
protected  JSONObject toJSONObject(DDMFormLayoutColumn ddmFormLayoutColumn)
           
protected  JSONObject toJSONObject(DDMFormLayoutPage ddmFormLayoutPage)
           
protected  JSONObject toJSONObject(DDMFormLayoutRow ddmFormLayoutRow)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDMFormLayoutJSONSerializerImpl

public DDMFormLayoutJSONSerializerImpl()
Method Detail

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)

Liferay 7.0-ce-m6