📄 alerttype.java
字号:
/*
* Created on 2005-8-18 by pcy
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package javax.microedition.lcdui;
import a.a.a.midp.lcdui.*;
/**
* @author pcy
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class AlertType {
private BQAlertType instance;
static final int ALERT_INFO = 1;
static final int ALERT_WARN = 2;
static final int ALERT_ERR = 3;
static final int ALERT_ALRM = 4;
static final int ALERT_CFM = 5;
public static final AlertType INFO = new AlertType(ALERT_INFO);
public static final AlertType WARNING = new AlertType(ALERT_WARN);
public static final AlertType ERROR = new AlertType(ALERT_ERR);
public static final AlertType ALARM = new AlertType(ALERT_ALRM);
public static final AlertType CONFIRMATION = new AlertType(ALERT_CFM);
AlertType(int type) {
instance=new BQAlertType(type);
instance.setShell(this);
}
protected AlertType() {
instance=new BQAlertType();
instance.setShell(this);
}
public boolean playSound(Display display) {
/*synchronized (Display.LCDUILock) {
return display.playAlertSound(this);
}*/
return false;
}
/*int getType() {
return instance.getType();
}*/
BQAlertType getBQAlertType(){
return instance;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -