示例#1
0
 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;
 }
示例#2
0
 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);
   }
 }
示例#3
0
 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;
 }