⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 newsitembean.java

📁 JSP设计(第三版)一书源代码 JSP设计(第三版)》得到了充分的修订和更新
💻 JAVA
字号:
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 2.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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -