📄 newsinfoform.java
字号:
/*
* @(#)NewsInfoForm.java 1.11 01/08/23
* Copyright (c) 2004-2005 wuhua of workroom Inc. All Rights Reserved.
* @version 1.0, 10/05/2004
* @author 饶荣庆
* @author 余煜辉
*/
package com.j2me.football.england;
import javax.microedition.lcdui.*;
/**
*此类是英国超级联赛新闻中心的详细新闻信息的类
*/
public class NewsInfoForm extends Form implements CommandListener
{
private Display display;
private NewsList news;
private Alert errorAlert = null;
public Command backCommand = null; //定义离开软键
/*-------------------------------------------------------------------
*初始化
*/
public NewsInfoForm(String title, String info, Display display, NewsList news)
{
super(title);
this.display = display;
this.news = news;
errorAlert = new Alert("ERROR", "连接网络失败 ", null, AlertType.ERROR);
this.append(info);
this.backCommand = new Command("返回", Command.BACK, 2);
this.addCommand(backCommand);
this.setCommandListener(this);
}
/*public showForm(display,*/
public void commandAction(Command c,Displayable s)
{
if(c == backCommand)
{
this.display.setCurrent(news);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -