📄 bqform.java
字号:
/*
* Created on 2005-9-21 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 BQForm extends BQScreen {
public static final long serialVersionUID=1;
public BQForm(String title, BQItem[] items) {
super(title);
if(items==null){
return;
}
for (int i = 0; i < items.length; i++) {
append(items[i]);
}
}
public int append(BQItem item){
if (item.getOwner() != null) {
throw new IllegalStateException();
}
return this.appendItem(item);
}
public int append(String str){
if (str == null) {
throw new NullPointerException();
}
return append(new StringItem(null, str).getBQItem());
}
public int append(BQImage img){
if (img == null) {
throw new NullPointerException();
}
return append(new BQImageItem(null, img, ImageItem.LAYOUT_DEFAULT, null));
}
public void insert(int itemNum, BQItem item){
this.insertItem(itemNum,item);
}
public void delete(int itemNum){
this.deleteItem(itemNum);
}
public void deleteAll(){
this.deleteAllItems();
}
public void set(int itemNum,
BQItem item){
if (item.getOwner() != null) {
throw new IllegalStateException();
}
this.setItemByIndex(itemNum,item);
}
public BQItem get(int itemNum){
return this.getItemByIndex(itemNum);
}
public void setItemStateListener(ItemStateListener iListener){
}
public int getItemCount(){
return this.getFormItemCount();
}
public int getFormWidth(){
return super.getDisplayWidth();
}
public int getFormHeight(){
return super.getDisplayHeight();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -