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

📄 command.java

📁 J2me唆哈的代码
💻 JAVA
字号:
/*
 * Created on 2004-12-25 by Tianlei
 * version 1.0.0.3
 * since MIDP1.0
 *
 * ģ��J2ME���Command��,Ŀǰ���붼�Ǵ�2.0��Դ�����濽��4��
 * �ο�Ӣ��ע��,Ŀǰ��û��ʵ��Command��صĽӿ�
 */
package javax.microedition.lcdui;

import a.a.a.midp.lcdui.*;

/**
 * @author Tianlei
 * @version 1.0.0.3
 * @since MIDP1.0
 * 
 * ģ��J2ME���Command��,Ŀǰ���붼�Ǵ�2.0��Դ�����濽��4��
 * �ο�Ӣ��ע��,Ŀǰ��û��ʵ��Command��صĽӿ�
 */
public class Command {

    private BQCommand instance;
    
    public static final int SCREEN = 1;

    public static final int BACK = 2;

    public static final int CANCEL = 3;

    public static final int OK = 4;

    public static final int HELP = 5;

    public static final int STOP = 6;

    public static final int EXIT = 7;

    public static final int ITEM = 8;

    
    // Constructors //

    public Command(String label, int commandType, int priority) {
        this(label, null, commandType, priority);
    }

    public Command(String shortLabel, String longLabel, int commandType,
            int priority) {
        instance=new BQCommand(shortLabel,longLabel,commandType,priority);
        instance.setShell(this);
    }

    public String getLabel() {
        return instance.getLabel();
    }

    public String getLongLabel() {
        return instance.getLongLabel();
    }

    public int getCommandType() {
        return instance.getCommandType();
    }

    public int getPriority() {
        return instance.getPriority();
    }
    
    public BQCommand getBQCommand(){
        return instance;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -