📄 rowtextbox.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -