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

📄 globalstorage.java

📁 Sound recorder application using swing...
💻 JAVA
字号:
/*
	This file is part of SwingRec version 1.0
	Coded / Copyright 2005 by Bert Szoghy

	webmaster@quadmore.com
	This program is free software; you can redistribute it and/or modify it under the terms
	of the GNU General Public License version 2 as published by the Free Software Foundation;
	This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
	the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
	See the GNU General Public License for more details. You should have received a copy of
	the GNU General Public License along with this program; if not, write to the
	Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

	This class stores global variables that will be used to communicate between two
	asynchroneous threads of the SwingRecorder application.
*/
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.util.*;

public class GlobalStorage
{
		private static boolean blnStopIsNext = false;
		private static boolean blnUploadFile = true;
		private static int intTickingClock = 11;
		private static String strFilename = "";
		private static String strEmail = "unknown@localhost.com";
		private static String strURL = "http://localhost/simpleup.php";

		public static boolean isStopIsNext()
		{
			return blnStopIsNext;
		}

		public static void setStopIsNext(boolean blnValue)
		{
			blnStopIsNext = blnValue;
		}

		public static int getTickingClock()
		{
			return intTickingClock;
		}

		public static void setTickingClock(int intValueOne)
		{
			intTickingClock = intValueOne;
		}

		//This stores the text file name so it can be used by different threads:
		public static void setFilename(String strValueTwo)
		{
			strFilename = strValueTwo;
		}

		public static String getFilename()
		{
			return strFilename;
		}

		public static boolean isUploadFile()
		{
			return blnUploadFile;
		}

		public static void setUploadFile(boolean blnValue)
		{
			blnUploadFile = blnValue;
		}

		public static void setEmail(String strValue)
		{
			strEmail = strValue;
		}

		public static String getEmail()
		{
			return strEmail;
		}

		public static void setURL(String strValueThree)
		{
			strURL = strValueThree;
		}

		public static String getURL()
		{
			return strURL;
		}
}

⌨️ 快捷键说明

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