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

📄 bqcommand.java

📁 J2me唆哈的代码
💻 JAVA
字号:
/*
 * Created on 2005-9-20 by pcy
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package a.a.a.midp.lcdui;

import javax.microedition.lcdui.*;
public class BQCommand {

	private Command shell;
	
    private String shortLabel;

    private String longLabel;

    private int commandType;

    private int priority;

    private int id;

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

    public BQCommand(String shortLabel, String longLabel, int commandType,
            int priority) {
        initialize(commandType, priority);
        setLabel(shortLabel, longLabel);
    }
    
    public String getLabel() {
        return shortLabel;
    }

    public String getLongLabel() {
        return longLabel;
    }

    public int getCommandType() {
        return commandType;
    }

    public int getPriority() {
        return priority;
    }
    
    int getID() {
        return id;
    }

    void setInternalID(int num) {
        this.id = num;
    }
    
    private void setLabel(String shortLabel, String longLabel) {

        if (shortLabel == null) {
            throw new NullPointerException();
        }
        this.shortLabel = shortLabel;
        this.longLabel = longLabel;
    }

    private final void initialize(int commandType, int priority) {

        if ((commandType < Command.SCREEN) || (commandType > Command.ITEM)) {
            throw new IllegalArgumentException();
        }
        this.commandType = commandType;
        this.priority = priority;
    }
    
    public void setShell(Command cmd){
    	shell=cmd;
    }
    
    public Command getShell(){
    	return shell;
    }

}

⌨️ 快捷键说明

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