Search in sources :

Example 1 with CellModel

use of com.developmentontheedge.be5.query.impl.model.TableModel.CellModel in project be5 by DevelopmentOnTheEdge.

the class TableRowsBuilder method build.

public List<RowT> build(TableModel tableModel) {
    List<RowT> rows = new ArrayList<>();
    for (RowModel rowModel : tableModel.getRows()) {
        List<CellT> cells = new ArrayList<>();
        for (CellModel cellModel : rowModel.getCells()) {
            cells.add(createCell(cellModel));
        }
        rows.add(createRow(rowModel, cells));
    }
    return rows;
}
Also used : ArrayList(java.util.ArrayList) RowModel(com.developmentontheedge.be5.query.impl.model.TableModel.RowModel) CellModel(com.developmentontheedge.be5.query.impl.model.TableModel.CellModel)

Aggregations

CellModel (com.developmentontheedge.be5.query.impl.model.TableModel.CellModel)1 RowModel (com.developmentontheedge.be5.query.impl.model.TableModel.RowModel)1 ArrayList (java.util.ArrayList)1