softkey.java
来自「j2me下的1套UI框架.包含j2me开发中会应用的各种低级组件」· Java 代码 · 共 48 行
JAVA
48 行
package com.jmobilecore.ui.core;
import javax.microedition.lcdui.Font;
/**
* This class represents either of the three soft keys, which are right below the
* screen on the left, in center and right sides. Soft keys are pressed by the user to
* perform actions, such as calculating a result.
*
* @author Greg Gridin
*/
abstract public class SoftKey {
/**
* The left soft key key code
*/
public final static int LEFT = PlatformCanvas.KEY_SOFT_LEFT;
/**
* The center soft key key code
*/
public final static int CENTER = PlatformCanvas.KEY_FIRE;
/**
* The right soft key key code
*/
public final static int RIGHT = PlatformCanvas.KEY_SOFT_RIGHT;
/**
* The soft key label.
*/
public String label;
/**
* Creates a new <code>SoftKey</code> instance.
*
* @param label String to display on the screen above the soft key.
*/
public SoftKey(String label) {
this.label = label;
}
/**
* Performs an action.
*/
abstract public void performAction();
} // class SoftKey
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?