class KJavaAppletServer

# class KJavaAppletServer | Provides a context for KJavaAppletWidgets. More...
Definition | `#include <kjavaappletserver.h>`
Inherits | QObject (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KJavaAppletServer ()
- ~KJavaAppletServer ()
- void createContext ( int contextId, KJavaAppletContext* context )
- void destroyContext ( int contextId )
- bool createApplet ( int contextId, int appletId, const QString & name, const QString & clazzName, const QString & baseURL, const QString & user, const QString & password, const QString & authname, const QString & codeBase, const QString & jarFile, QSize size, const QMap<QString, QString>& params, const QString & windowTitle )
- void initApplet ( int contextId, int appletId )
- void destroyApplet ( int contextId, int appletId )
- void startApplet ( int contextId, int appletId )
- void stopApplet ( int contextId, int appletId )
- void sendURLData ( const QString& loaderID, const QString& url, const QByteArray& data )
- void quit ()
- QString appletLabel ()
- bool getMember (int contextId, int appletId, const unsigned long, const QString &, int &, unsigned long &, QString &)
- bool putMember (int contextId, int appletId, const unsigned long, const QString &, const QString &)
- bool callMember (int contextId, int appletId, const unsigned long, const QString &, const QStringList &, int &, unsigned long &, QString &)
- void derefObject (int contextId, int appletId, const unsigned long id)

#### Public Static Methods

- static KJavaAppletServer * allocateJavaServer ()
- static void freeJavaServer ()
- static QString getAppletLabel ()

#### Protected Methods

- void setupJava ( KJavaProcess* p )

#### Protected Slots

- void slotJavaRequest ( const QByteArray& qb )
- void checkShutdown ()

#### Protected Members

- KJavaProcess* process

## 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 () | ### KJavaAppletServer

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

~KJavaAppletServer () | ### ~KJavaAppletServer

KJavaAppletServer * allocateJavaServer () | ### allocateJavaServer

[static]

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

void freeJavaServer () | ### freeJavaServer

[static]

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

QString getAppletLabel () | ### 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 ) | ### createContext

Create an applet context with the specified id.

void destroyContext ( int contextId ) | ### destroyContext

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

bool createApplet ( int contextId, int appletId, const QString & name, const QString & clazzName, const QString & baseURL, const QString & user, const QString & password, const QString & authname, const QString & codeBase, const QString & jarFile, QSize size, const QMap<QString, QString>& params, const QString & windowTitle ) | ### createApplet

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 ) | ### initApplet

This should be called by the KJavaAppletWidget

void destroyApplet ( int contextId, int appletId ) | ### destroyApplet

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

void startApplet ( int contextId, int appletId ) | ### startApplet

Start the specified applet.

void stopApplet ( int contextId, int appletId ) | ### stopApplet

Stop the specified applet.

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

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

void quit () | ### quit

Shut down the KJAS server.

QString appletLabel () | ### appletLabel

bool getMember (int contextId, int appletId, const unsigned long, const QString &, int &, unsigned long &, QString &) | ### getMember

bool putMember (int contextId, int appletId, const unsigned long, const QString &, const QString &) | ### putMember

bool callMember (int contextId, int appletId, const unsigned long, const QString &, const QStringList &, int &, unsigned long &, QString &) | ### callMember

void derefObject (int contextId, int appletId, const unsigned long id) | ### derefObject

void setupJava ( KJavaProcess* p ) | ### setupJava

[protected]

KJavaProcess* process | ### process

[protected]

void slotJavaRequest ( const QByteArray& qb ) | ### slotJavaRequest

[protected slots slot]

void checkShutdown () | ### checkShutdown

[protected slots slot]

- Version: $Id: kjavaappletcontext.h,v 1.17.2.2 2003/05/06 20:56:39 vriezen Exp $
- Author: Wynn Wilkes, wynnw@caldera.com
- Generated: root on macppc.ports.openbsd.org on Sat Sep 6 10:37:53 2003, using kdoc 2.0a54.