📄 helpscreen.java
字号:
/* * JRemCntl - Copyright (C) 2007 Filippo Di Vattimo <fildiv@gmail.com> * See COPYING */package fildiv.jremcntl.client.ui;import javax.microedition.lcdui.Command;import javax.microedition.lcdui.CommandListener;import javax.microedition.lcdui.Displayable;import javax.microedition.lcdui.Form;import fildiv.jremcntl.client.core.AppConstants;import fildiv.jremcntl.client.core.AppContext;import fildiv.jremcntl.client.util.UIUtils;public class HelpScreen extends AbstractScreen implements CommandListener { private final static Command CMD_BACK = new Command("Back", Command.BACK, 1); private Form helpForm; public HelpScreen(AppContext appCtx, Screen backTo) { super(appCtx, backTo); helpForm = new Form(AppConstants.HELP_SCREEN_CAPTION); helpForm.addCommand(CMD_BACK); helpForm.setCommandListener(this); fillHelpText(); } private void fillHelpText() { String msg = ""; msg+="This help describes all the commands you can find for each application panel "; msg+="\n"; msg+="* Scan "; msg+="\n"; msg+="Use scan command to enter in connection panel to find new bluetooth devices."; msg+="\n"; msg+="* Save Prefs "; msg+="\n"; msg+="Use this command to save the currents preferences. Only the latest successfull"; msg+="connection will be saved in this version."; msg+="\n"; msg+="* Reconnect "; msg+="\n"; msg+="Use Reconnect command to reconnect the latest device. This command will be available"; msg+="even if the latest successfull connection has been saved by Save Pref command."; msg+=". "; msg+="\n"; msg+="* Logs "; msg+="\n"; msg+="Show Logs Panel. Some operations causes jremcntl to write log information."; msg+="\n"; msg+="* About "; msg+="\n"; msg+="Show about and license issues."; msg+="\n"; msg+="* Back"; msg+="\n"; msg+="Back to previous application panel."; msg+="\n"; msg+="* Switch view "; msg+="\n"; msg+="During the connection you can perform remote commands using two "; msg+="panels, Fast Panel and List panel. With Fast panel (yellow background) you can "; msg+="perform all commands using directly the mobile keys from 0 to 9 you mapped by "; msg+="server configuration. Using the list panel you can choose the commands from a "; msg+="scrollable list. Through \"Switch view\" commands you can switch from list panel to "; msg+="fast panel and viceverse."; msg+="\n"; msg+="* Exit "; msg+="\n"; msg+="Exit from application"; UIUtils.appendText(helpForm, msg); } protected void onActivate() { super.onActivate(); getAppCtx().getDisplay().setCurrent(helpForm); } public void commandAction(Command arg0, Displayable arg1) { hide(); } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -