newsitembean.java
来自「大家好啊 快来抢购J2ME东东 挺不错的啊 不要后悔啊 抓住机会」· Java 代码 · 共 82 行
JAVA
82 行
package com.ora.jsp.beans.news;
import java.io.*;
import java.util.*;
/**
* This class holds information about one news item. It's
* only intended as an example.
*
* @author Hans Bergsten, Gefion software <hans@gefionsoftware.com>
* @version 1.0
*/
public class NewsItemBean implements Serializable {
private String category;
private String msg;
private String postedBy;
private Date postedDate = new Date();
private int id;
/**
* Returns the category property value.
*/
public String getCategory() {
return category;
}
/**
* Sets the category property value.
*/
public void setCategory(String category) {
this.category = category;
}
/**
* Returns the msg property value.
*/
public String getMsg() {
return msg;
}
/**
* Sets the msg property value.
*/
public void setMsg(String msg) {
this.msg = msg;
}
/**
* Returns the postedBy property value.
*/
public String getPostedBy() {
return postedBy;
}
/**
* Sets the postedBy property value.
*/
public void setPostedBy(String postedBy) {
this.postedBy = postedBy;
}
/**
* Returns the postedDate property value.
*/
public Date getPostedDate() {
return postedDate;
}
/**
* Returns the id property value.
*/
public int getId() {
return id;
}
/**
* Sets the id property value.
*/
public void setId(int id) {
this.id = id;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?