rowtextbox.java
来自「最强手机阅读器Anyview3.0版的界面代码」· Java 代码 · 共 30 行
JAVA
30 行
package com.ismyway.fairyui;import javax.microedition.lcdui.Command;import javax.microedition.lcdui.CommandListener;import javax.microedition.lcdui.Displayable;import javax.microedition.lcdui.TextBox;public class RowTextBox extends TextBox implements CommandListener { private InputBlock row; Panel from; public RowTextBox(InputBlock row, Panel from) { super("", row.getText(), 255, row.getConstrains()); this.row = row; this.from = from; Command ok = new Command("确定", Command.OK, 1); Command cancel = new Command("取消", Command.BACK, 1); this.addCommand(ok); this.addCommand(cancel); this.setCommandListener(this); } public void commandAction(Command c, Displayable d) { if (c.getLabel().equals("确定")) { row.setText(getString()); } MainCanvas.getInstance().setContainerCurrent(); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?