articleshowui.java

来自「基于J2ME的RSS阅读器」· Java 代码 · 共 41 行

JAVA
41
字号
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package pp.rss.reader.ui;import javax.microedition.lcdui.*;import pp.rss.reader.midlet.RSSReader;/** * * @author Administrator */public class ArticleShowUI extends Form implements CommandListener{    private RSSReader midlet;    private Command back;    private StringItem article;    public ArticleShowUI(RSSReader midlet)    {        super("");        this.midlet=midlet;        back=new Command("返回",Command.BACK,1);        this.addCommand(back);        article=new StringItem("","");        this.append(article);        this.setCommandListener(this);    }    public void setArticleContent(String content)    {        article.setText(content);    }    public void setArticleTitle(String title)    {        this.setTitle(title);    }    public void commandAction(Command command,Displayable displayable)    {        midlet.showHeadlines();    }}

⌨️ 快捷键说明

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