📄 searchresultui.java
字号:
/*
* SearchResultUI.java
*
* Created on 2006年5月25日, 上午12:35
*
* 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.ui.table.*;
import javax.microedition.lcdui.*;
/**
*
* @author pandaxiaoxi
*/
public class SearchResultUI extends ScrollPane implements CommandListener{
private UIControler uicontroler;
private static final Command backCommand = new Command("返回",Command.BACK,2);
private static final Command selectCommand = new Command("选择",Command.OK, 1);
/** Creates a new instance of SearchResultUI */
public SearchResultUI(UIControler uicontroler,Scrollable c){
super(c);
this.uicontroler = uicontroler;
this.addCommand(backCommand);
this.addCommand(selectCommand);
this.setCommandListener(this);
}
public void commandAction(Command cmd,Displayable displayable){
if(cmd == backCommand){
uicontroler.handleEvent(UIControler.EventID.SHOW_SEARCH_BOOK);
}else if(cmd == selectCommand){
//详细显示当前选中的书籍的信息
String[] borrow = this.getScrollable().getTableModel().getValueAt(this.getScrollable().getCurrentRow()-1);
uicontroler.handleEvent(UIControler.EventID.SHOW_EACH_BOOK,borrow);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -