commandfactory.java

来自「A J2ME Weblog Client for mobile devices 」· Java 代码 · 共 37 行

JAVA
37
字号
/* * Copyright (C) 2004 Mobile Blogger Development Team */package net.sourceforge.mobileblogger;import javax.microedition.lcdui.Command;public class CommandFactory {	public final static Command CMD_BACK = new Command("Back", Command.BACK, 1);	public final static Command CMD_EXIT = new Command("Exit", Command.EXIT, 1);	public final static Command CMD_OK = new Command("Ok", Command.OK, 1);	public final static Command CMD_PROTOCOL = new Command("Protocol Select", Command.BACK, 1);	public final static Command CMD_START = new Command("Start", Command.OK, 1);	public static boolean isCMD_BACK(Command c) {		if(c == CMD_BACK)			return true;		else			return false;	}	public static boolean isCMD_OK(Command c) {		if(c == CMD_OK)			return true;		else			return false;	}	public static boolean isCMD_PROTOCOL(Command c) {		if(c == CMD_PROTOCOL)			return true;		else			return false;	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?