📄 loginsuccessui.java
字号:
package ui;
import ui.table.*;
import javax.microedition.lcdui.*;
public class LoginSuccessUI 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 LoginSuccessUI(UIControler uicontroler,Scrollable c){
super(c);
this.uicontroler = uicontroler;
this.addCommand(backCommand);
this.addCommand(selectCommand);
this.setCommandListener(this);
}
public void setScrollable(Scrollable c){
this.setScrollable(c);
}
public void commandAction(Command cmd,Displayable displayable){
if(cmd == backCommand){
uicontroler.handleEvent(UIControler.EventID.SHOW_LOGIN);
}else if(cmd == selectCommand){
//详细显示当前选中的书籍的信息
String[] borrow = this.getScrollable().getTableModel().getValueAt(this.getScrollable().getCurrentRow()-1);
uicontroler.handleEvent(UIControler.EventID.SHOW_USER_BOOK,borrow);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -