garbageclear.java

来自「J2ME文件管理系统 操作文件的源码。界面很不错」· Java 代码 · 共 60 行

JAVA
60
字号
package cn.zqk.ui;

import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;


public class GarbageClear extends MIDlet {
	
	public static Display disp;
	public static GarbageClear instance;
	
	private  MainMange mainMange;
	
	public static String filepath[]=null;		//{"","","",""};
	
	public static int setid=0;	//mini or custom flag
	
	public static int dircount=0;	//delete dir count;
	
	public static boolean finished =false;	//the delete operation has finished flag
	
	public static String deleinfo="";
	
	public static long savefilesize = 0;		//the total saved file size
	public static long savefilecount = 0;		//the total saved file count
	
	public int  customitemlen= 4;				//the custom setting path count
	
	public static String detailsettingalert="";		//
	
	//test ....
	public static String teststr="";
	public static String teststr2="";
	public static int height =20;
	
	
	public GarbageClear() {
		super();
		instance = this;	
		filepath = new String[customitemlen];
		
		mainMange = new MainMange();		
		disp = Display.getDisplay(this);			
	}
	
	protected void pauseApp() {

	}


	protected void startApp() throws MIDletStateChangeException {
		disp.setCurrent(mainMange);
	}
	
	protected void destroyApp(boolean arg0) throws MIDletStateChangeException {

	}
	
}

⌨️ 快捷键说明

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