/*
 * Copyright 2015 Axel Howind <axel@dua3.com>.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.dua3.meja.model.generic;

/**
 *
 * @author Axel Howind <axel@dua3.com>
 */
public class GenericRow {

}

@@ -648,83 +648,792 @@
 c;%0A%0A
-/**%0A *%0A * @author Axel Howind %3Caxel@dua3.com%3E%0A */%0Apublic class GenericRow %7B
+import com.dua3.meja.model.Cell;%0Aimport com.dua3.meja.model.Row;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A/**%0A *%0A * @author Axel Howind %3Caxel@dua3.com%3E%0A */%0Apublic class GenericRow implements Row %7B%0A%0A    private final GenericSheet sheet;%0A    private final List%3CGenericCell%3E cells = new ArrayList%3C%3E();%0A%0A    public GenericRow(GenericSheet sheet) %7B%0A        this.sheet = sheet;%0A        reserve(sheet.getNumberOfColumns());%0A    %7D%0A%0A    @Override%0A    public GenericSheet getSheet() %7B%0A        return sheet;%0A    %7D%0A%0A    @Override%0A    public Cell getCell(int col) %7B%0A        reserve(col);%0A        return cells.get(col);%0A    %7D%0A%0A    private void reserve(int col) %7B%0A        for (int colNum=cells.size(); colNum%3C=col; colNum++) %7B%0A            cells.add(new GenericCell(this));%0A        %7D%0A    %7D
 %0A%0A%7D%0A

implement generic model (wip)