?? eachbookdetailui.java
字號:
/*
* EachBookDetailUI.java
*
* Created on 2006年5月26日, 上午12:17
*
* To change this template, choose Tools | Options and locate the template under
* the Source Creation and Management node. Right-click the template and choose
* Open. You can then make changes to the template in the Source Editor.
*/
package cn.edu.uestc.pandawireless.ui;
import cn.edu.uestc.pandawireless.model.HttpHandler;
import javax.microedition.lcdui.*;
/**
*
* @author 熊貓曉希
*/
public class EachBookDetailUI extends Form implements CommandListener{
private UIControler uicontroler;
private HttpHandler httphandler;
private static final Command backCommand = new Command("返回",Command.BACK, 2);
//private static final Command selectCommand = new Command("設置",Command.OK, 1);
//private DateField datefield;
/** Creates a new instance of BorrowDetailUI */
public EachBookDetailUI(UIControler uicontroler,String[] data,HttpHandler httphandler) {
super(Title.eachbookDetailTitle);
this.uicontroler = uicontroler;
this.httphandler = httphandler;
this.append("書名:"+data[0]+"\n");
this.append("索書號:"+data[1]+"\n");
this.append("狀態:"+data[2]+"\n");
this.append("應還日期:"+data[3]+"\n");
this.append("作者:"+data[4]+"\n");
this.append("出版社:"+data[5]+"\n");
this.append("出版日期:"+data[6]+"\n");
//this.append("\n\n"+"請輸入日期(程序將會在那時提醒你還書)");
//datefield = new DateField("",DateField.DATE_TIME);
//this.append(datefield);
this.addCommand(backCommand);
//this.addCommand(selectCommand);
this.setCommandListener(this);
}
public void commandAction(Command cmd,Displayable displayable){
if(cmd == backCommand){
uicontroler.libmidlet.setCurrent(httphandler.srUI);
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -