public String getModuleContent() { String moduleiId; if (this.isSingle()) { moduleiId = this.name + "-single"; } else { if (this.id == null) { moduleiId = System.currentTimeMillis() + ""; } else { moduleiId = this.id; } } pager.append("Module", this.toVaules()); StringBuilder sb = new StringBuilder(); sb.append("<div class='module' "); sb.append("module='"); sb.append(this.name); sb.append("' id='"); sb.append(moduleiId); sb.append("' editable='"); sb.append(editable); if (fixed == true) { sb.append("' removeable='"); sb.append(false); } sb.append("'>"); sb.append(pager.getContent()); sb.append("</div>"); return sb.toString(); }
public void out(HttpServletResponse response) throws Exception { response.setContentType("text/html;charset=GBK"); pager.append("Module", this.toVaules()); pager.out(response.getWriter()); }
public void out(Writer writer) throws Exception { pager.append("Module", this.toVaules()); pager.out(writer); }
public JpageModule addVariables(HashMap<String, Object> map) { pager.append(map); return this; }
public JpageModule addVariable(String key, Object value) { pager.append(key, value); return this; }
public JpageModule addAttribute(String key, Object value) { pager.addSessionAttribute(key, value); return this; }
public JpageModule setRequest(HttpServletRequest request) { pager.addSessionAttribute("request", request); pager.addSessionAttribute("urlSetter", new URLQueryHandler(request)); return this; }