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

📄 operation.java

📁 最强手机阅读器Anyview3.0版的界面代码
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -