// Path: src/org/drugepi/table/TableRowCol.java
// public enum RowColTypes { NORMAL, HEADER };


import java.util.*;
import org.drugepi.table.TableRowCol.RowColTypes;
import java.io.InputStream;
	}

	public void addRow(TableRowCol row) {
		rowsMap.put(row.id, row);
		if (rowsList.contains(row))
			rowsList.remove(row);
		rowsList.add(row);

	}

	public void addCol(TableRowCol col) {
		colsMap.put(col.id, col);
		if (colsList.contains(col))
			colsList.remove(col);
		colsList.add(col);

	}
	
	public void addCell(TableCell cell) {
		cells.put(cell.id, cell);
	}
	
	public List<TableRowCol> getRowsColsAtLevel(List<TableRowCol> rcs, int level) {
		ArrayList<TableRowCol> rowsColsAtLevel = new ArrayList<TableRowCol>();
		
		for (TableRowCol rc: rcs) {
			if (TableRowCol.getDepth(rc) == level)
				rowsColsAtLevel.add(rc);
		}
		
// Path: src/org/drugepi/table/TableRowCol.java
// public enum RowColTypes { NORMAL, HEADER };


// Path: src/org/drugepi/table/Table.java
import java.util.*;
import org.drugepi.table.TableRowCol.RowColTypes;
import java.io.InputStream;

	}

	public void addRow(TableRowCol row) {
		rowsMap.put(row.id, row);
		if (rowsList.contains(row))
			rowsList.remove(row);
		rowsList.add(row);

	}

	public void addCol(TableRowCol col) {
		colsMap.put(col.id, col);
		if (colsList.contains(col))
			colsList.remove(col);
		colsList.add(col);

	}
	
	public void addCell(TableCell cell) {
		cells.put(cell.id, cell);
	}
	
	public List<TableRowCol> getRowsColsAtLevel(List<TableRowCol> rcs, int level) {
		ArrayList<TableRowCol> rowsColsAtLevel = new ArrayList<TableRowCol>();
		
		for (TableRowCol rc: rcs) {
			if (TableRowCol.getDepth(rc) == level)
				rowsColsAtLevel.add(rc);
		}
		
		return rowsColsAtLevel;