⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 softkey.java

📁 开发j2me 手机程序必须的用到的。文件较小
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -