?? edit.java
字號:
/* * Copyright (C) 2004 MobileBlogger Development Team */package net.sourceforge.mobileblogger;import javax.microedition.lcdui.*;import javax.microedition.midlet.*;public class Edit extends Form implements CommandListener { private Display display; private MIDlet midlet; private final static Command CMD_OK = new Command("OK", Command.ITEM, 1); private final static Command CMD_NEXT = new Command("Next", Command.ITEM, 1); private final static Command CMD_ENTER = new Command("Enter", Command.ITEM, 1); private final static Command CMD_SETSITE = new Command("OK", Command.ITEM, 1); private final static Command CMD_SETUSER = new Command("OK", Command.ITEM, 2); private final static Command CMD_BACK = new Command("Back", Command.BACK, 2); private final static Command CMD_EXIT = new Command("Exit", Command.STOP, 3); private final static Command CMD_POST = new Command("Post", Command.OK, 1); private final static Command CMD_SAVE = new Command("Save", Command.OK, 1); public Edit(MIDlet m, Display d) { super("Edit Post"); midlet = m; display = d; addCommand(CMD_BACK); setCommandListener(this); append("Not working..."); } public void commandAction(Command c, Displayable d) { if(c == CMD_BACK) { display.setCurrent( new Menu(midlet, display) ); } }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -