Exemple #1
0
 public String getSubject(int len) {
   StringBuilder tmp = new StringBuilder();
   for (int i = 0; i < this.lev; i++) {
     tmp.append("&nbsp;");
   }
   return CommonUtil.showHtml(tmp + CommonUtil.cropByte(this.subject, len, "..."));
 }
Exemple #2
0
 public String getContentView() {
   if ("1".equals(this.html)) {
     return HttpLinker.getLinkedSource(CommonUtil.rplc(this.content, "<", "&lt;"));
   } else if ("0".equals(this.html)) {
     return HttpLinker.getLinkedSource(CommonUtil.showHtml(this.content));
   }
   return HttpLinker.getLinkedSource(this.content);
 }
Exemple #3
0
 public String getWhen(String format) {
   if (this.when == null) return "";
   return CommonUtil.formatDate(this.when, format);
 }
Exemple #4
0
 public String getWriter(int len) {
   return CommonUtil.showHtml(CommonUtil.cropByte(getWriter(), len, "."));
 }