Collection getRowKeys() { if (rowKeys == null) { rowKeys = new LinkedList(); for (Iterator itr = children.values().iterator(); itr.hasNext(); ) { GroupCell gc = (GroupCell) itr.next(); rowKeys.addAll(gc.getRowKeys()); } } return rowKeys; }
private void writeChildGroups(Writer out) throws IOException { boolean writeTr = parent == null; if (children != null) { for (Iterator itr = sortedGroups(); itr.hasNext(); ) { GroupCell gc = (GroupCell) children.get(itr.next()); gc.toHTML(out, writeTr); writeTr = true; } } else { writeRows(out); } }
private int calculateRowSpan() { int result = 0; if (children == null) { result = rowKeys.size(); } else { for (Iterator itr = children.values().iterator(); itr.hasNext(); ) { GroupCell gc = (GroupCell) itr.next(); result += gc.getRowSpan(); } } result += group.foots.size(); return result; }