2F admin Post by : 2008-04-04 11:16:07.0
java代码
- package org.javawind.System;
-
- import java.sql.Timestamp;
-
- import org.apache.struts.action.ActionForm;
- import org.javawind.beans.UbbCode;
-
- public class Post extends ActionForm {
- private static final long serialVersionUID = 1L;
- private int pid;
- private int fid;
- private String tid;
- private int parentId;
- private String title;
- private String content;
- private String formatContent="";
- private int userId;
- private Timestamp postTime;
- private UserInfo userInfo;
- private int floor;
-
-
- public int getPid() {
- return pid;
- }
- public void setPid(int pid) {
- this.pid = pid;
- }
- public int getFid() {
- return fid;
- }
- public void setFid(int fid) {
- this.fid = fid;
- }
- public String getTid() {
- return tid;
- }
- public void setTid(String tid) {
- this.tid = tid;
- }
- public int getParentId() {
- return parentId;
- }
- public void setParentId(int parentId) {
- this.parentId = parentId;
- }
- public String getTitle() {
- return title;
- }
- public void setTitle(String title) {
- this.title = title;
- }
- public String getContent() {
- return content;
- }
- public void setContent(String content) {
- this.content = content;
- }
- public String getFormatContent() {
- if(formatContent.equals("")){
- formatContent=getContent();
- return UbbCode.Print(formatContent,0,getParentId());
- }
- else
- return formatContent;
- }
- public void setFormatContent(String formatContent) {
- this.formatContent = formatContent;
- }
- public int getUserId() {
- return userId;
- }
- public void setUserId(int userId) {
- this.userId = userId;
- }
- public Timestamp getPostTime() {
- return postTime;
- }
- public void setPostTime(Timestamp postTime) {
- this.postTime = postTime;
- }
- public UserInfo getUserInfo() {
- return userInfo;
- }
- public void setUserInfo(UserInfo userInfo) {
- this.userInfo = userInfo;
- }
- public int getFloor() {
- return floor;
- }
- public void setFloor(int floor) {
- this.floor = floor;
- }
-
- }
|