KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencms > applet > upload > FileUploadThread


1
2 package org.opencms.applet.upload;
3
4 /*
5  * File : $Source: /usr/local/cvs/opencms/src-components/org/opencms/applet/upload/FileUploadThread.java,v $
6  * Date : $Date: 2006/10/17 13:33:11 $
7  * Version: $Revision: 1.10 $
8  *
9  * This library is part of OpenCms -
10  * the Open Source Content Mananagement System
11  *
12  * Copyright (c) 2005 Alkacon Software GmbH (http://www.alkacon.com)
13  *
14  * This library is free software; you can redistribute it and/or
15  * modify it under the terms of the GNU Lesser General Public
16  * License as published by the Free Software Foundation; either
17  * version 2.1 of the License, or (at your option) any later version.
18  *
19  * This library is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22  * Lesser General Public License for more details.
23  *
24  * For further information about Alkacon Software GmbH, please see the
25  * company website: http://www.alkacon.com
26  *
27  * For further information about OpenCms, please see the
28  * project website: http://www.opencms.org
29  *
30  * You should have received a copy of the GNU Lesser General Public
31  * License along with this library; if not, write to the Free Software
32  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
33  */

34
35 /**
36  * File Upload Applet Thread, creates the upload animation.<p>
37  *
38  * @author Michael Emmerich
39  *
40  * @version $Revision: 1.10 $
41  *
42  * @since 6.0.0
43  */

44 public class FileUploadThread extends Thread JavaDoc {
45
46     /** The upload applet. */
47     FileUploadApplet m_fileupload;
48
49     /**
50      * Initializes the thread. <p>
51      *
52      * @param fileupload reference to the upload applet
53      */

54     public void init(FileUploadApplet fileupload) {
55
56         m_fileupload = fileupload;
57     }
58
59     /**
60      * @see java.lang.Runnable#run()
61      */

62     public void run() {
63
64         while (true) {
65             m_fileupload.moveFloater();
66             try {
67                 sleep(50);
68             } catch (Exception JavaDoc e) {
69                 // noop
70
}
71         }
72     }
73 }
Popular Tags