public void analyzeTweets(OccurrenceCounter counter, CountingContext context) { countables = counter.getCountables(); countables.addAll(Lists.newArrayList(TwitterStats.values())); for (Groupable groupable : getMembers()) { groupable.analyzeTweets(counter, context); } }
public void toHTML(Writer out, GroupCell gc) throws IOException { out.write( "<tr " + ((cls != null && cls.trim().length() > 0) ? ("class=\"" + cls + "\"") : "") + ">"); for (Iterator itr = groupable.unGroupedColumns(); itr.hasNext(); ) { FootColumn fc = (FootColumn) footColumns.get(itr.next()); if (fc == null) { out.write("<td> </td>"); } else { fc.toHTML(out, gc); for (int i = 1; i < fc.getColSpan() && itr.hasNext(); i++) { itr.next(); } } } out.write("</tr>"); }
DataTable getDataTable() { return group.getReport().getDataTable(); }
private Iterator sortedRowKeys() { return group.getRowSorter().sortRowKeys(getDataTable(), getRowKeys()).iterator(); }
private void writeGroupCell(Writer out) throws IOException { if (parent != null) { wirteCell(out, group.getGroupColumn(), groupKey, getRowSpan()); } }
public Report getReport() { return groupable.getReport(); }