<HTML> <HEAD> <TITLE>class KJavaAppletServer</TITLE> <META NAME="Generator" CONTENT="KDOC "> </HEAD> <BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff"> <TABLE WIDTH="100%" BORDER="0"> <TR> <TD> <TABLE BORDER="0"> <TR><TD valign="top" align="left" cellspacing="10"> <h1>class KJavaAppletServer</h1> </TD> <TD valign="top" align="right" colspan="1">Provides a context for KJavaAppletWidgets. <small><A HREF="#longdesc">More...</A></small></TD></TR> </TABLE> <HR> <TABLE BORDER="0"> <TR><TH>Definition</TH><TD><code>#include <<A HREF="kjavaappletserver_h.html">kjavaappletserver.h</A>></code></TD></TR> <TR><TH>Inherits</TH><TD><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qobject.html">QObject</A> <small>(qt)</small> <small>[public ]</small></TD></TR> <TR><TH><A HREF="full-list-KJavaAppletServer.html">List of all Methods</A></TH></TR> </TABLE> </TD> <TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR> <TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR> <TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR> <TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR> <TR><TD><small><A HREF="index.html">Index</A></small></TD></TR> </TABLE></TD></TR></TABLE> <h4>Public Methods</h4><ul><LI> <b><A HREF="#ref1">KJavaAppletServer</A></b> () </LI> <LI> <b><A HREF="#ref2">~KJavaAppletServer</A></b> () </LI> <LI>void <b><A HREF="#ref6">createContext</A></b> ( int contextId, <A HREF="KJavaAppletContext.html">KJavaAppletContext</A>* context ) </LI> <LI>void <b><A HREF="#ref7">destroyContext</A></b> ( int contextId ) </LI> <LI>void <b><A HREF="#ref8">createApplet</A></b> ( int contextId, int appletId, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> name, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> clazzName, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> baseURL, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> codeBase, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> jarFile, <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qsize.html">QSize</A> size, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qmap.html">QMap</A><<A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>, <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>>& params, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> windowTitle ) </LI> <LI>void <b><A HREF="#ref9">initApplet</A></b> ( int contextId, int appletId ) </LI> <LI>void <b><A HREF="#ref10">destroyApplet</A></b> ( int contextId, int appletId ) </LI> <LI>void <b><A HREF="#ref11">startApplet</A></b> ( int contextId, int appletId ) </LI> <LI>void <b><A HREF="#ref12">stopApplet</A></b> ( int contextId, int appletId ) </LI> <LI>void <b><A HREF="#ref13">sendURLData</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& loaderID, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& url, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qbytearray.html">QByteArray</A>& data ) </LI> <LI>void <b><A HREF="#ref14">quit</A></b> () </LI> <LI><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> <b><A HREF="#ref15">appletLabel</A></b> () </LI> </ul><h4>Public Static Methods</h4><ul><LI>static <A HREF="KJavaAppletServer.html">KJavaAppletServer</A> * <b><A HREF="#ref3">allocateJavaServer</A></b> () </LI> <LI>static void <b><A HREF="#ref4">freeJavaServer</A></b> () </LI> <LI>static <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> <b><A HREF="#ref5">getAppletLabel</A></b> () </LI> </ul><h4>Protected Methods</h4><ul><LI>void <b><A HREF="#ref16">setupJava</A></b> ( <A HREF="KJavaProcess.html">KJavaProcess</A>* p ) </LI> </ul><h4>Protected Slots</h4><ul><LI>void <b><A HREF="#ref18">slotJavaRequest</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qbytearray.html">QByteArray</A>& qb ) </LI> <LI>void <b><A HREF="#ref19">checkShutdown</A></b> () </LI> </ul><h4>Protected Members</h4><ul><LI>KJavaProcess* <b><A HREF="#ref17">process</A></b></LI> </ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p> </p> <p> Applets run in a context- (see the Java documentation for more information on contexts). Currently, each document in KHTML creates one context, in which multiple applets can run. </p> <p></p> <A NAME="KJavaAppletServer"></A><A NAME="ref1"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>KJavaAppletServer</strong> () <br></td><td align="right"><h3><strong>KJavaAppletServer</strong></h3></td></tr></table><p></p><p> Create the applet server. These shouldn't be used directly, use allocateJavaServer instead </p> <A NAME="~KJavaAppletServer"></A><A NAME="ref2"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>~KJavaAppletServer</strong> () <br></td><td align="right"><h3><strong>~KJavaAppletServer</strong></h3></td></tr></table><p></p><A NAME="allocateJavaServer"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="KJavaAppletServer.html">KJavaAppletServer</A> * <strong>allocateJavaServer</strong> () <br></td><td align="right"><h3><strong>allocateJavaServer</strong></h3></td></tr></table><p> <small>[static]</small></p><p> A factory method that returns the default server. This is the way this class is usually instantiated. </p> <A NAME="freeJavaServer"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void <strong>freeJavaServer</strong> () <br></td><td align="right"><h3><strong>freeJavaServer</strong></h3></td></tr></table><p> <small>[static]</small></p><p> When you are done using your reference to the AppletServer, you must dereference it by calling freeJavaServer(). </p> <A NAME="getAppletLabel"></A><A NAME="ref5"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> <strong>getAppletLabel</strong> () <br></td><td align="right"><h3><strong>getAppletLabel</strong></h3></td></tr></table><p> <small>[static]</small></p><p> This allows the KJavaAppletWidget to display some feedback in a QLabel while the applet is being loaded. If the java process could not be started, an error message is displayed instead. </p> <A NAME="createContext"></A><A NAME="ref6"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>createContext</strong> ( int contextId, <A HREF="KJavaAppletContext.html">KJavaAppletContext</A>* context ) <br></td><td align="right"><h3><strong>createContext</strong></h3></td></tr></table><p></p><p> Create an applet context with the specified id. </p> <A NAME="destroyContext"></A><A NAME="ref7"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>destroyContext</strong> ( int contextId ) <br></td><td align="right"><h3><strong>destroyContext</strong></h3></td></tr></table><p></p><p> Destroy the applet context with the specified id. All the applets in the context will be destroyed as well. </p> <A NAME="createApplet"></A><A NAME="ref8"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>createApplet</strong> ( int contextId, int appletId, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> name, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> clazzName, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> baseURL, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> codeBase, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> jarFile, <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qsize.html">QSize</A> size, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qmap.html">QMap</A><<A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>, <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>>& params, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> windowTitle ) <br></td><td align="right"><h3><strong>createApplet</strong></h3></td></tr></table><p></p><p> Create an applet in the specified context with the specified id. The applet name, class etc. are specified in the same way as in the HTML APPLET tag. </p> <A NAME="initApplet"></A><A NAME="ref9"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>initApplet</strong> ( int contextId, int appletId ) <br></td><td align="right"><h3><strong>initApplet</strong></h3></td></tr></table><p></p><p> This should be called by the KJavaAppletWidget </p> <A NAME="destroyApplet"></A><A NAME="ref10"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>destroyApplet</strong> ( int contextId, int appletId ) <br></td><td align="right"><h3><strong>destroyApplet</strong></h3></td></tr></table><p></p><p> Destroy an applet in the specified context with the specified id. </p> <A NAME="startApplet"></A><A NAME="ref11"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>startApplet</strong> ( int contextId, int appletId ) <br></td><td align="right"><h3><strong>startApplet</strong></h3></td></tr></table><p></p><p> Start the specified applet. </p> <A NAME="stopApplet"></A><A NAME="ref12"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>stopApplet</strong> ( int contextId, int appletId ) <br></td><td align="right"><h3><strong>stopApplet</strong></h3></td></tr></table><p></p><p> Stop the specified applet. </p> <A NAME="sendURLData"></A><A NAME="ref13"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>sendURLData</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& loaderID, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& url, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qbytearray.html">QByteArray</A>& data ) <br></td><td align="right"><h3><strong>sendURLData</strong></h3></td></tr></table><p></p><p> Send data we got back from a KJavaDownloader back to the appropriate class loader. (This is currently unimplemented on the java side. </p> <A NAME="quit"></A><A NAME="ref14"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>quit</strong> () <br></td><td align="right"><h3><strong>quit</strong></h3></td></tr></table><p></p><p> Shut down the KJAS server. </p> <A NAME="appletLabel"></A><A NAME="ref15"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> <strong>appletLabel</strong> () <br></td><td align="right"><h3><strong>appletLabel</strong></h3></td></tr></table><p></p><A NAME="setupJava"></A><A NAME="ref16"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>setupJava</strong> ( <A HREF="KJavaProcess.html">KJavaProcess</A>* p ) <br></td><td align="right"><h3><strong>setupJava</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="process"></A><A NAME="ref17"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="KJavaProcess.html">KJavaProcess</A>* <strong>process</strong> </td><td align="right"><h3><strong>process</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="slotJavaRequest"></A><A NAME="ref18"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>slotJavaRequest</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qbytearray.html">QByteArray</A>& qb ) <br></td><td align="right"><h3><strong>slotJavaRequest</strong></h3></td></tr></table><p> <small>[protected slots slot]</small></p><A NAME="checkShutdown"></A><A NAME="ref19"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>checkShutdown</strong> () <br></td><td align="right"><h3><strong>checkShutdown</strong></h3></td></tr></table><p> <small>[protected slots slot]</small></p><HR><UL><LI><i>Version</i>: $Id: kjavaappletcontext.h,v 1.13 2001/01/23 17:30:01 wynnw Exp $ </LI><LI><i>Author</i>: Wynn Wilkes, wynnw@caldera.com </LI><LI><i>Generated</i>: qateam on updates.mandrakesoft.com on Mon Dec 30 16:09:38 2002, using kdoc 2.0a53.</LI></UL></BODY></HTML>