operation.java
来自「最强手机阅读器Anyview3.0版的界面代码」· Java 代码 · 共 35 行
JAVA
35 行
package com.ismyway.anyview.others;
import com.ismyway.anyview.win.FileExplorer;
public class Operation {
public static final byte INIT_OP = 1;
public static final byte OPEN_OP = 2;
public static final byte DELETE_OP = 3;
public final byte operationCode;
private FileExplorer fileExplorer;
public Operation(FileExplorer fe, byte operationCode) {
this.fileExplorer = fe;
this.operationCode = operationCode;
}
public void execute() {
if (this.fileExplorer != null) {
switch (operationCode) {
case INIT_OP:
this.fileExplorer.openRootDir();
break;
case OPEN_OP:
this.fileExplorer.openSelected((byte)0);
break;
case DELETE_OP:
this.fileExplorer.deleteCurrent();
break;
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?