rsssourceentry.java

来自「J2ME 从入门到精通(程序开发使用案例) 书中代码」· Java 代码 · 共 53 行

JAVA
53
字号
/*
 * RSSSourceEntry.java
 *
 * Created on 2006年12月20日, 上午2:42
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package cn.edu.uestc.pandarss;

/**
 *
 * @author pandaxiaoxi
 */
/*--------------------------------------------------
 * NewsSourceEntry.java
 *
 * Each news source has a description and http link
 *-------------------------------------------------*/
public class RSSSourceEntry {
    private String description, link;
    public RSSSourceEntry(String description, String link) {
        this.description = description;
        this.link = link;
    }
/*--------------------------------------------------
 * Get description field
 *-------------------------------------------------*/
    public String getDescription() {
        return description;
    }
/*--------------------------------------------------
 * Set description field
 *-------------------------------------------------*/
    public void setDescription(String description) {
        this.description = description;
    }
/*--------------------------------------------------
Forum.Nokia.com
J2ME? RSS News Reader 46
 * Get linkfield
 *-------------------------------------------------*/
    public String getLink() {
        return link;
    }
/*--------------------------------------------------
 * Set description field
 *-------------------------------------------------*/
    public void setLink(String link) {
        this.link = link;
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?