class KJavaAppletServer

Provides a context for KJavaAppletWidgets. More...

Definition#include <kjavaappletserver.h>
InheritsQObject [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods

Protected Methods

Protected Slots

Protected Members


Detailed Description

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.

 KJavaAppletServer ()

Create the applet server. These shouldn't be used directly, use allocateJavaServer instead

 ~KJavaAppletServer ()

KJavaAppletServerallocateJavaServer ()

[static]

A factory method that returns the default server. This is the way this class is usually instantiated.

void  freeJavaServer ()

[static]

When you are done using your reference to the AppletServer, you must dereference it by calling freeJavaServer().

QString  getAppletLabel ()

[static]

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.

void  createContext ( int contextId, KJavaAppletContext* context )

Create an applet context with the specified id.

void  destroyContext ( int contextId )

Destroy the applet context with the specified id. All the applets in the context will be destroyed as well.

void  createApplet ( int contextId, int appletId, const QString name, const QString clazzName, const QString baseURL, const QString codeBase, const QString jarFile, QSize size, const QMap<QString, QString>& params, const QString windowTitle )

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.

void  initApplet ( int contextId, int appletId )

This should be called by the KJavaAppletWidget

void  destroyApplet ( int contextId, int appletId )

Destroy an applet in the specified context with the specified id.

void  startApplet ( int contextId, int appletId )

Start the specified applet.

void  stopApplet ( int contextId, int appletId )

Stop the specified applet.

void  sendURLData ( const QString& loaderID, const QString& url, const QByteArray& data )

Send data we got back from a KJavaDownloader back to the appropriate class loader. (This is currently unimplemented on the java side.

void  quit ()

Shut down the KJAS server.

QString  appletLabel ()

void  setupJava ( KJavaProcess* p )

[protected: ]

KJavaProcess* process

[protected: ]

void  slotJavaRequest ( const QByteArray& qb )

[protected slots: slot]

void  checkShutdown ()

[protected slots: slot]