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

📄 enwordscreen.java

📁 simple english library,it need to improve
💻 JAVA
字号:
package org.blog.enghelper.screen.sub;

import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.Form;
import  org.blog.enghelper.util.Navigator;
import javax.microedition.lcdui.CommandListener;
import  org.blog.enghelper.screen.AddWordScreen;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.TextField;

/**
 * <br><strong>英语学习助手-AddWordScreen-修改单词屏幕</strong><br>
 * <br>该屏幕是隶属于AddWordScreen下的子屏幕,用于修改英文单词.
 */

public class EnWordScreen  extends Form implements CommandListener{
    /**
     * english单词
     */
    public TextField word=null;
    private AddWordScreen aws=null;
    private Command cancel=null;
    private Command update=null;


    public EnWordScreen(AddWordScreen addw) {
        super("修改单词");
        aws=addw;
        word=new TextField("单词:",aws.enWord,100,TextField.ANY);
        append(word);
        cancel=new Command("取消",Command.CANCEL,1);
        update=new Command("确定",Command.OK,1);
        addCommand(cancel);
        addCommand(update);
        setCommandListener(this);
    }

    public void commandAction(Command command, Displayable displayable) {
        String lb=command.getLabel();
        if(lb.equals("确定")){
            aws.enWord=word.getString();
        }
        Navigator.show(aws);
    }
}

⌨️ 快捷键说明

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