📄 boardbean.java
字号:
/* * * BoardBean * Author : 倾怕疙 * Email : tmhuh@hananet.net * Homepage : http://tmhuh.xwow.net:8080 **/package board;public class BoardBean { private int idx; // 霸矫拱 锅龋 private String name; // 霸矫拱 累己磊 private String email; // email address private String password; // 厚剐锅龋 private String moment; // 霸矫拱 累己 矫埃 private int html; // true搁 html tag 荤侩 啊瓷 private String title; // 霸矫拱 力格 private String content; // 霸矫拱 郴侩 private int count; // 炼雀荐 private String filename; // 诀肺靛 颇老疙 private long filesize; // 颇老农扁 private int ref; // 翠函锅龋甫 历厘窍扁 困茄 饭欺繁胶 private int step; // 翠函 拌摸 private int re_level; // 翠函狼 甸咯静扁 历厘阑 困茄 函荐 public int getIdx() { return idx; } public String getName() { return name; } public String getEmail() { return email; } public String getPassword() { return password; } public String getMoment() { return moment; } public int getHtml() { return html; } public String getTitle() { return title; } public String getContent() { return content; } public int getCount() { return count; } public String getFilename() { return filename; } public long getFilesize() { return filesize; } public int getRef() { return ref; } public int getStep() { return step; } public int getRe_level() { return re_level; } public void setIdx(int _idx) { idx = _idx; } public void setName(String _name) { name = _name; } public void setEmail(String _email) { email = _email; } public void setPassword(String _password) { password = _password; } public void setMoment(String _moment) { moment = _moment; } public void setHtml(int _html) { html = _html; } public void setTitle(String _title) { title = _title; } public void setContent(String _content) { content = _content; } public void setCount(int _count) { count = _count; } public void setFilename(String _filename) { filename = _filename; } public void setFilesize(long _filesize) { filesize = _filesize; } public void setRef(int _ref) { ref = _ref; } public void setStep(int _step) { step = _step; } public void setRe_level(int _re_level) { re_level = _re_level; } // 臂 郴侩阑 免仿且 锭 html俊 嘎霸 免仿窍扁 困茄 皋家靛 public String convertContent() { String temp = content; int pos; if(html == 0) { pos = 0; while((pos = temp.indexOf("<", pos + 1)) != -1) { String left = temp.substring(0, pos); String right = temp.substring(pos + 1, temp.length()); temp = left + "<" + right; } } pos = 0; while((pos = temp.indexOf("\n")) != -1) { String left = temp.substring(0, pos); String right = temp.substring(pos + 1, temp.length()); temp = left + "<br>" + right; } pos = 0; while((pos = temp.indexOf(" ", pos)) != -1) { String left = temp.substring(0, pos); String right = temp.substring(pos + 1, temp.length()); temp = left + " " + right; pos += 4; } return temp; } // 翠函臂老 锭 菊俊 > 免仿秦辑 臂郴侩 府畔 public String contentForReply() { String temp = ">" + content; int pos = 0; while((pos = temp.indexOf("\n", pos)) != -1) { String left = temp.substring(0, pos + 1); String right = temp.substring(pos + 1, temp.length()); temp = left + ">" + right; pos += 1; } return temp; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -