⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 loginsuccessui.java

📁 移动图书馆 用j2me 加 jsp servlet 开发 环境 netbeans + tomcat
💻 JAVA
字号:
/*
 * LoginSuccessUI.java
 *
 * Created on 2006年5月25日, 上午1:16
 *
 * 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 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 + -