Exemplo n.º 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, "..."));
 }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 public String getWhen(String format) {
   if (this.when == null) return "";
   return CommonUtil.formatDate(this.when, format);
 }
Exemplo n.º 4
0
 public String getWriter(int len) {
   return CommonUtil.showHtml(CommonUtil.cropByte(getWriter(), len, "."));
 }