Example usage for com.liferay.portal.kernel.json JSONArray getJSONArray

List of usage examples for com.liferay.portal.kernel.json JSONArray getJSONArray

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.json JSONArray getJSONArray.

Prototype

public JSONArray getJSONArray(int index);

Source Link

Usage

From source file:com.liferay.exportimport.resources.importer.internal.util.FileSystemImporter.java

License:Open Source License

protected void addLayoutColumns(Layout layout, String columnPrefix, JSONArray columnsJSONArray)
        throws Exception {

    if (columnsJSONArray == null) {
        return;//from w ww.j  a va  2s  .com
    }

    for (int i = 0; i < columnsJSONArray.length(); i++) {
        JSONArray columnJSONArray = columnsJSONArray.getJSONArray(i);

        addLayoutColumn(layout, columnPrefix + (i + 1), columnJSONArray);
    }
}