Example #1
0
 public String toHTMLString() {
   String str = "";
   for (Clue clue : clues) {
     str +=
         "<tr><td><a href='"
             + link
             + "' target='_blank'>"
             + displayEntity
             + "</a></td><td>"
             + edu.stanford.muse.email.CalendarUtil.formatDateForDisplay(lastSeenDate)
             + "</td><td>"
             + nMessages
             + "</td><td>"
             + nThreads
             + "</td><td>"
             + (clue != null ? clue.clueStats.finalScore : "-")
             + "</td></tr>"
             + "<tr><td class=\"clue\" colspan=\"6\">"
             + (clue != null
                 ? (clue.clue
                     + "<br/><br/><div class=\"stats\"> stats: "
                     + Util.fieldsToString(clue.clueStats, false))
                 : "No clue")
             + "</div><br/><br/></td></tr><br>";
   }
   return str;
 }
Example #2
0
 public String toString() {
   return Util.fieldsToString(this);
 }