Package org.dashbuilder.dataset.impl

Examples of org.dashbuilder.dataset.impl.DataColumnImpl


        dataSet.setColumns(createDataColumns(jsDataSet.getJsColumns()));
        return dataSet;
    }

    public static DataColumn createDataColumn(JsDataColumn jsDataColumn) {
        DataColumnImpl dataColumn = new DataColumnImpl();
        dataColumn.setId(jsDataColumn.getId());
        dataColumn.setColumnType(ColumnType.getByName(jsDataColumn.getType()));
        if (dataColumn.getColumnType().equals(ColumnType.NUMBER)) {
            dataColumn.setValues(createListNumber(jsDataColumn.getJsNumbers()));
        } else if (dataColumn.getColumnType().equals(ColumnType.DATE)) {
            dataColumn.setValues(createListDate(jsDataColumn.getJsStrings()));
        } else {
            dataColumn.setValues(createListString(jsDataColumn.getJsStrings()));
        }
        return dataColumn;
    }
View Full Code Here

TOP

Related Classes of org.dashbuilder.dataset.impl.DataColumnImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.