source: 3thparty/jupload/src/main/java/wjhk/jupload2/EmptyApplet.java @ 3951

Revision 3951, 3.7 KB checked in by alexandrecorreia, 13 years ago (diff)

Ticket #1709 - Adicao de codigo fonte java do componente jupload

Line 
1/**
2 * This applet is just an empty applet ...
3 *
4 * I use it to use the HtmlConverter binary 'given' in the JDK: <DIR> <LI>I
5 * embed an instance of the EmptyApplet in my page, that contains the
6 * JUploadApplet: the user will be prompt to download the JRE of the correct
7 * version, if it nos installed. <LI>The JUploadApplet is created through the
8 * basic APPLET tag: it's much simplier this way, as I often change the applet
9 * parameters. </DIR> <BR>
10 *
11 * Below is a sample of the HTML code you can insert in you HTML/ASP/PHP/JSP/ or
12 * whatever page. It has been generated by using the jdk tool HtmlConverter from
13 * a simple applet tag (see the applet commented, at the end of the sample). <BR>
14 * This sample has been generate from an applet tag. Just replace all occurences
15 * of <I>plugins/jupload/wjhk.jupload.jar</I> by the URL of your jar file that
16 * contains the empty applet.
17 *
18 *
19 * <!--"CONVERTED_APPLET"--> <!-- The next applet is an empty one. It uses for
20 * one thing: prompt the --> <!-- user to download the JRE, if it's not
21 * installed on its computer' --> <!-- HTML CONVERTER --> <script
22 * language="JavaScript" type="text/javascript"><!-- var _info =
23 * navigator.userAgent; var _ns = false; var _ns6 = false; var _ie =
24 * (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 &&
25 * _info.indexOf("Windows 3.1") < 0); //--></script> <comment> <script
26 * language="JavaScript" type="text/javascript"><!-- var _ns =
27 * (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 &&
28 * _info.indexOf("Win16") < 0 &&
29 * java.lang.System.getProperty("os.version").indexOf("3.5") < 0) ||
30 * (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0) ||
31 * (_info.indexOf("AIX") > 0) || (_info.indexOf("OS/2") > 0) ||
32 * (_info.indexOf("IRIX") > 0))); var _ns6 = ((_ns == true) &&
33 * (_info.indexOf("Mozilla/5") >= 0)); //--></script> </comment>
34 *
35 * <script language="JavaScript" type="text/javascript"><!-- if (_ie == true)
36 * document.writeln('<object
37 * classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = "0" HEIGHT = "0"
38 * NAME = "EmptyApplet" codebase=
39 * "http://java.sun.com/update/1.5.0/jinstall-1_5-windows-i586.cab#Version=5,0,0,3"
40 * ><noembed><xmp>'); else if (_ns == true && _ns6 == false)
41 * document.writeln('<embed ' + 'type="application/x-java-applet;version=1.5" \
42 * CODE = "wjhk.jupload2.EmptyApplet" \ ARCHIVE =
43 * "plugins/jupload/wjhk.jupload.jar" \ NAME = "EmptyApplet" \ WIDTH = "0" \
44 * HEIGHT = "0" ' + 'scriptable=false ' +'pluginspage="http://java.sun.com/products/plugin/index.html#download"><noembed><xmp>'
45 * ) ; //--></script> <applet CODE = "wjhk.jupload2.EmptyApplet" ARCHIVE =
46 * "plugins/jupload/wjhk.jupload.jar" WIDTH = "0" HEIGHT = "0" NAME =
47 * "EmptyApplet"></xmp> <PARAM NAME = CODE VALUE = "wjhk.jupload2.EmptyApplet" >
48 * <PARAM NAME = ARCHIVE VALUE = "plugins/jupload/wjhk.jupload.jar" > <PARAM
49 * NAME = NAME VALUE = "EmptyApplet" > <param name="type"
50 * value="application/x-java-applet;version=1.5"> <param name="scriptable"
51 * value="false">
52 *
53 * Java 1.4 or higher plugin required. </applet> </noembed> </embed> </object>
54 *
55 * <!-- <APPLET CODE = "wjhk.jupload2.EmptyApplet" ARCHIVE =
56 * "plugins/jupload/wjhk.jupload.jar" WIDTH = "0" HEIGHT = "0" NAME =
57 * "EmptyApplet"> Java 1.4 or higher plugin required.
58 *
59 * </APPLET> --> <!--"END_CONVERTED_APPLET"-->
60 *
61 *
62 */
63package wjhk.jupload2;
64
65import java.applet.Applet;
66
67/**
68 *
69 * @author etienne_sf
70 */
71public class EmptyApplet extends Applet {
72
73    /** A generated serialVersionUID, to avoid warning during compilation */
74    private static final long serialVersionUID = 1L;
75
76    /**
77     *
78     */
79    public EmptyApplet() {
80        // We do ... an empty constructor ... ;-)
81    }
82
83}
Note: See TracBrowser for help on using the repository browser.