📄 hellomidlet.java
字号:
/** This method returns instance for okCommand1 component and should be called instead of accessing okCommand1 field directly.//GEN-BEGIN:MVDGetBegin14
* @return Instance for okCommand1 component
*/
public Command get_okCommand1() {
if (okCommand1 == null) {//GEN-END:MVDGetBegin14
// Insert pre-init code here
okCommand1 = new Command("\u786E\u5B9A", Command.OK, 1);//GEN-LINE:MVDGetInit14
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd14
return okCommand1;
}//GEN-END:MVDGetEnd14
/** This method returns instance for form1 component and should be called instead of accessing form1 field directly.//GEN-BEGIN:MVDGetBegin16
* @return Instance for form1 component
*/
public Form get_form1() {
if (form1 == null) {//GEN-END:MVDGetBegin16
// Insert pre-init code here
form1 = new Form("\u652F\u961F\u77ED\u4FE1\u7FA4\u53D1", new Item[] {get_stringItem1()});//GEN-BEGIN:MVDGetInit16
form1.addCommand(get_exitCommand1());
form1.addCommand(get_backCommand3());
form1.addCommand(get_backCommand4());
form1.addCommand(get_okCommand9());
form1.setCommandListener(this);//GEN-END:MVDGetInit16
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd16
return form1;
}//GEN-END:MVDGetEnd16
/** This method returns instance for stringItem1 component and should be called instead of accessing stringItem1 field directly.//GEN-BEGIN:MVDGetBegin17
* @return Instance for stringItem1 component
*/
public StringItem get_stringItem1() {
if (stringItem1 == null) {//GEN-END:MVDGetBegin17
// Insert pre-init code here
stringItem1 = new StringItem("\u53D1\u9001\u72B6\u6001:", "");//GEN-LINE:MVDGetInit17
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd17
return stringItem1;
}//GEN-END:MVDGetEnd17
/** This method returns instance for backCommand1 component and should be called instead of accessing backCommand1 field directly.//GEN-BEGIN:MVDGetBegin18
* @return Instance for backCommand1 component
*/
public Command get_backCommand1() {
if (backCommand1 == null) {//GEN-END:MVDGetBegin18
// Insert pre-init code here
backCommand1 = new Command("\u540E\u9000", Command.BACK, 1);//GEN-LINE:MVDGetInit18
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd18
return backCommand1;
}//GEN-END:MVDGetEnd18
/** This method returns instance for exitCommand1 component and should be called instead of accessing exitCommand1 field directly.//GEN-BEGIN:MVDGetBegin20
* @return Instance for exitCommand1 component
*/
public Command get_exitCommand1() {
if (exitCommand1 == null) {//GEN-END:MVDGetBegin20
// Insert pre-init code here
exitCommand1 = new Command("\u9000\u51FA", Command.EXIT, 1);//GEN-LINE:MVDGetInit20
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd20
return exitCommand1;
}//GEN-END:MVDGetEnd20
/** This method returns instance for list1 component and should be called instead of accessing list1 field directly.//GEN-BEGIN:MVDGetBegin23
* @return Instance for list1 component
*/
public List get_list1() {
if (list1 == null) {//GEN-END:MVDGetBegin23
// Insert pre-init code here
list1 = new List("\u90E8\u95E8\u9009\u62E9", Choice.MULTIPLE, new String[0], new Image[0]);//GEN-BEGIN:MVDGetInit23
list1.addCommand(get_backCommand2());
list1.addCommand(get_okCommand2());
list1.addCommand(get_okCommand5());
list1.addCommand(get_okCommand6());
list1.setCommandListener(this);
list1.setSelectedFlags(new boolean[0]);//GEN-END:MVDGetInit23
// Insert post-init code here
for(int i=0;i<tel.xzfs.length;i++){
list1.append(tel.xzfs[i],null);
list1.setSelectedIndex(i,tel.sarry[i]);
}
}//GEN-BEGIN:MVDGetEnd23
return list1;
}//GEN-END:MVDGetEnd23
/** This method returns instance for backCommand2 component and should be called instead of accessing backCommand2 field directly.//GEN-BEGIN:MVDGetBegin25
* @return Instance for backCommand2 component
*/
public Command get_backCommand2() {
if (backCommand2 == null) {//GEN-END:MVDGetBegin25
// Insert pre-init code here
backCommand2 = new Command("\u4E0A\u4E00\u6B65", Command.BACK, 1);//GEN-LINE:MVDGetInit25
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd25
return backCommand2;
}//GEN-END:MVDGetEnd25
/** This method returns instance for okCommand2 component and should be called instead of accessing okCommand2 field directly.//GEN-BEGIN:MVDGetBegin27
* @return Instance for okCommand2 component
*/
public Command get_okCommand2() {
if (okCommand2 == null) {//GEN-END:MVDGetBegin27
// Insert pre-init code here
okCommand2 = new Command("\u4E0B\u4E00\u6B65", Command.OK, 1);//GEN-LINE:MVDGetInit27
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd27
return okCommand2;
}//GEN-END:MVDGetEnd27
/** This method returns instance for okCommand3 component and should be called instead of accessing okCommand3 field directly.//GEN-BEGIN:MVDGetBegin29
* @return Instance for okCommand3 component
*/
public Command get_okCommand3() {
if (okCommand3 == null) {//GEN-END:MVDGetBegin29
// Insert pre-init code here
okCommand3 = new Command("\u4E0B\u4E00\u6B65", Command.OK, 1);//GEN-LINE:MVDGetInit29
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd29
return okCommand3;
}//GEN-END:MVDGetEnd29
/** This method returns instance for backCommand3 component and should be called instead of accessing backCommand3 field directly.//GEN-BEGIN:MVDGetBegin31
* @return Instance for backCommand3 component
*/
public Command get_backCommand3() {
if (backCommand3 == null) {//GEN-END:MVDGetBegin31
// Insert pre-init code here
backCommand3 = new Command("\u5468\u5F3A", Command.OK, 1);//GEN-LINE:MVDGetInit31
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd31
return backCommand3;
}//GEN-END:MVDGetEnd31
/** This method returns instance for backCommand4 component and should be called instead of accessing backCommand4 field directly.//GEN-BEGIN:MVDGetBegin33
* @return Instance for backCommand4 component
*/
public Command get_backCommand4() {
if (backCommand4 == null) {//GEN-END:MVDGetBegin33
// Insert pre-init code here
backCommand4 = new Command("\u4E0A\u4E00\u6B65", Command.BACK, 1);//GEN-LINE:MVDGetInit33
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd33
return backCommand4;
}//GEN-END:MVDGetEnd33
/** This method returns instance for list2 component and should be called instead of accessing list2 field directly.//GEN-BEGIN:MVDGetBegin35
* @return Instance for list2 component
*/
public List get_list2() {
if (list2 == null) {//GEN-END:MVDGetBegin35
// Insert pre-init code here
list2 = new List("\u4EBA\u5458\u9009\u62E9", Choice.MULTIPLE, new String[0], new Image[0]);//GEN-BEGIN:MVDGetInit35
list2.addCommand(get_backCommand5());
list2.addCommand(get_okCommand4());
list2.addCommand(get_okCommand7());
list2.addCommand(get_okCommand8());
list2.addCommand(get_okCommand10());
list2.setCommandListener(this);
list2.setSelectedFlags(new boolean[0]);
list2.setSelectCommand(null);//GEN-END:MVDGetInit35
// Insert post-init code here
int li_int=0;
for(int i=0;i<tel.hm.length;i++){
if(tel.sarry[Integer.parseInt(tel.hm[i][1])]){
String num = "";
String ls ="";
num = Integer.toString(i);
for(int j=0;j<tel.hmcd - num.length();j++){
ls += "0";
}
num = ls + num;
li_int = list2.append(num + " " + tel.hm[i][2] + " " + tel.hm[i][0],null);
list2.setSelectedIndex(li_int,true);
}
}
}//GEN-BEGIN:MVDGetEnd35
return list2;
}//GEN-END:MVDGetEnd35
/** This method returns instance for backCommand5 component and should be called instead of accessing backCommand5 field directly.//GEN-BEGIN:MVDGetBegin37
* @return Instance for backCommand5 component
*/
public Command get_backCommand5() {
if (backCommand5 == null) {//GEN-END:MVDGetBegin37
// Insert pre-init code here
backCommand5 = new Command("\u4E0A\u4E00\u6B65", Command.BACK, 1);//GEN-LINE:MVDGetInit37
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd37
return backCommand5;
}//GEN-END:MVDGetEnd37
/** This method returns instance for okCommand4 component and should be called instead of accessing okCommand4 field directly.//GEN-BEGIN:MVDGetBegin39
* @return Instance for okCommand4 component
*/
public Command get_okCommand4() {
if (okCommand4 == null) {//GEN-END:MVDGetBegin39
// Insert pre-init code here
okCommand4 = new Command("\u4E0B\u4E00\u6B65", Command.OK, 1);//GEN-LINE:MVDGetInit39
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd39
return okCommand4;
}//GEN-END:MVDGetEnd39
/** This method returns instance for okCommand5 component and should be called instead of accessing okCommand5 field directly.//GEN-BEGIN:MVDGetBegin43
* @return Instance for okCommand5 component
*/
public Command get_okCommand5() {
if (okCommand5 == null) {//GEN-END:MVDGetBegin43
// Insert pre-init code here
okCommand5 = new Command("\u5168\u90E8\u9009\u62E9", Command.OK, 1);//GEN-LINE:MVDGetInit43
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd43
return okCommand5;
}//GEN-END:MVDGetEnd43
/** This method returns instance for okCommand6 component and should be called instead of accessing okCommand6 field directly.//GEN-BEGIN:MVDGetBegin50
* @return Instance for okCommand6 component
*/
public Command get_okCommand6() {
if (okCommand6 == null) {//GEN-END:MVDGetBegin50
// Insert pre-init code here
okCommand6 = new Command("\u5168\u90E8\u4E0D\u9009", Command.OK, 1);//GEN-LINE:MVDGetInit50
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd50
return okCommand6;
}//GEN-END:MVDGetEnd50
/** This method returns instance for okCommand7 component and should be called instead of accessing okCommand7 field directly.//GEN-BEGIN:MVDGetBegin54
* @return Instance for okCommand7 component
*/
public Command get_okCommand7() {
if (okCommand7 == null) {//GEN-END:MVDGetBegin54
// Insert pre-init code here
okCommand7 = new Command("\u5168\u90E8\u9009\u62E9", Command.OK, 1);//GEN-LINE:MVDGetInit54
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd54
return okCommand7;
}//GEN-END:MVDGetEnd54
/** This method returns instance for okCommand8 component and should be called instead of accessing okCommand8 field directly.//GEN-BEGIN:MVDGetBegin56
* @return Instance for okCommand8 component
*/
public Command get_okCommand8() {
if (okCommand8 == null) {//GEN-END:MVDGetBegin56
// Insert pre-init code here
okCommand8 = new Command("\u5168\u90E8\u4E0D\u9009", Command.OK, 1);//GEN-LINE:MVDGetInit56
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd56
return okCommand8;
}//GEN-END:MVDGetEnd56
/** This method returns instance for okCommand9 component and should be called instead of accessing okCommand9 field directly.//GEN-BEGIN:MVDGetBegin58
* @return Instance for okCommand9 component
*/
public Command get_okCommand9() {
if (okCommand9 == null) {//GEN-END:MVDGetBegin58
// Insert pre-init code here
okCommand9 = new Command("\u53D1\u9001", Command.OK, 1);//GEN-LINE:MVDGetInit58
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd58
return okCommand9;
}//GEN-END:MVDGetEnd58
/** This method returns instance for okCommand10 component and should be called instead of accessing okCommand10 field directly.//GEN-BEGIN:MVDGetBegin61
* @return Instance for okCommand10 component
*/
public Command get_okCommand10() {
if (okCommand10 == null) {//GEN-END:MVDGetBegin61
// Insert pre-init code here
okCommand10 = new Command("\u62E8\u6253\u7535\u8BDD", Command.OK, 1);//GEN-LINE:MVDGetInit61
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd61
return okCommand10;
}//GEN-END:MVDGetEnd61
/** This method returns instance for list3 component and should be called instead of accessing list3 field directly.//GEN-BEGIN:MVDGetBegin63
* @return Instance for list3 component
*/
public List get_list3() {
if (list3 == null) {//GEN-END:MVDGetBegin63
// Insert pre-init code here
list3 = new List("\u9009\u62E9\u529F\u80FD", Choice.IMPLICIT, new String[0], new Image[0]);//GEN-BEGIN:MVDGetInit63
list3.setCommandListener(this);
list3.setSelectedFlags(new boolean[0]);
list3.setSelectCommand(get_okCommand15());//GEN-END:MVDGetInit63
// Insert post-init code here
list3.append("拨打电话",null);
list3.append("发送短信",null);
}//GEN-BEGIN:MVDGetEnd63
return list3;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -