📄 forminfo.java
字号:
/**
* Class : short description
* @author Michele 'Miccar' Cardinale miccar@gmail.com
* @author Natale Vinto ebballon@interfree.it
* @version 1.0
*/
/*
* goText : text messaging over GPRS
* Copyright (C) 2006 Natale Vinto <ebballon@interfree.it>
* OpenJLab Group www.openjlab.org
* Copyright (C) 2006 Michele Cardinale 'Miccar' <miccar@gmail.com>
* www.miccar.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
import javax.microedition.lcdui.*;
public class FormInfo extends Form implements CommandListener {
protected goText gotext;
protected Lang l;
private Command command_back;
private Image i;
public FormInfo(goText gotext) {
super("goText 1.0");
this.gotext=gotext;
l=new Lang(gotext.lang);
command_back=new Command(l.COMMAND_BACK,Command.BACK,2);
this.addCommand(command_back);
this.setCommandListener(this);
//FA=FormInfo
try
{
i=Image.createImage("/img/0p.png");
}
catch (Exception e) { System.out.println(e.toString()); }
append(new ImageItem(null,i,ImageItem.LAYOUT_CENTER+ImageItem.LAYOUT_NEWLINE_AFTER,"0p.png"));
append(new StringItem("\n"+l.FA_SMS_TOT,gotext.options.getCounter()+"\n"));
append(new StringItem(l.FA_ABOUT,l.FA_ABOUT_DESCR+"\n"));
append(new StringItem(l.FA_WHATIS,l.FA_WHATIS_DESCR+"\n"));
append(new StringItem(l.FA_HOWTO,l.FA_HOWTO_DESCR+"\n"));
append(new StringItem(l.FA_MESS,l.FA_MESS_DESCR+"\n"));
append(new StringItem(l.FA_SERV,l.FA_SERV_DESCR+"\n"));
this.show();
}
public void show(){
gotext.display.setCurrent(this);
}
public void commandAction(Command c, Displayable d){
if (c==command_back){
gotext.mc.show();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -