• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KHTML

KJavaApplet Class Reference

#include <kjavaapplet.h>

Inheritance diagram for KJavaApplet:

Inheritance graph
[legend]

List of all members.


Public Types

enum  AppletState {
  UNKNOWN = 0, CLASS_LOADED = 1, INSTANCIATED = 2, INITIALIZED = 3,
  STARTED = 4, STOPPED = 5, DESTROYED = 6
}

Signals

void jsEvent (const QStringList &args)

Public Member Functions

QString & appletClass ()
int appletId ()
QString & appletName ()
QString & archives ()
const QString & authName () const
QString & baseURL ()
QString & codeBase ()
void create ()
bool failed () const
KJavaAppletContext * getContext () const
QMap< QString, QString > & getParams ()
QString & getWindowName ()
void init ()
bool isAlive () const
bool isCreated ()
void jsData (const QStringList &args)
 KJavaApplet (KJavaAppletWidget *_parent, KJavaAppletContext *_context=0)
QString & parameter (const QString &name)
const QString & password () const
void resizeAppletWidget (int width, int height)
void setAppletClass (const QString &clazzName)
void setAppletContext (KJavaAppletContext *_context)
void setAppletId (int id)
void setAppletName (const QString &name)
void setArchives (const QString &_archives)
void setAuthName (const QString &_auth)
void setBaseURL (const QString &base)
void setCodeBase (const QString &codeBase)
void setFailed ()
void setParameter (const QString &name, const QString &value)
void setPassword (const QString &_password)
void setSize (QSize size)
void setUser (const QString &_user)
void setWindowName (const QString &title)
QSize size ()
void start ()
AppletState state () const
void stateChange (const int newState)
void stop ()
const QString & user () const
 ~KJavaApplet ()

Detailed Description

Definition at line 50 of file kjavaapplet.h.


Member Enumeration Documentation

enum KJavaApplet::AppletState

Enumerator:
UNKNOWN 
CLASS_LOADED 
INSTANCIATED 
INITIALIZED 
STARTED 
STOPPED 
DESTROYED 

Definition at line 57 of file kjavaapplet.h.


Constructor & Destructor Documentation

KJavaApplet::KJavaApplet ( KJavaAppletWidget *  _parent,
KJavaAppletContext *  _context = 0 
)

Definition at line 49 of file kjavaapplet.cpp.

KJavaApplet::~KJavaApplet (  ) 

Definition at line 65 of file kjavaapplet.cpp.


Member Function Documentation

QString & KJavaApplet::appletClass (  ) 

Get the name of the Class file the applet should run.

Definition at line 89 of file kjavaapplet.cpp.

int KJavaApplet::appletId (  ) 

Returns the unique ID this applet is given.

Definition at line 203 of file kjavaapplet.cpp.

QString & KJavaApplet::appletName (  ) 

Get the name the applet should be called in its context.

Definition at line 176 of file kjavaapplet.cpp.

QString & KJavaApplet::archives (  ) 

Get the list of Archives that should be searched for class files and other resources.

Definition at line 144 of file kjavaapplet.cpp.

const QString& KJavaApplet::authName (  )  const [inline]

Definition at line 222 of file kjavaapplet.h.

QString & KJavaApplet::baseURL (  ) 

get the Base URL of the document embedding the applet

Definition at line 114 of file kjavaapplet.cpp.

QString & KJavaApplet::codeBase (  ) 

Get the codebase of the applet classes.

Definition at line 124 of file kjavaapplet.cpp.

void KJavaApplet::create (  ) 

Send message to AppletServer to create this applet's frame to be swallowed and download the applet classes.

Definition at line 181 of file kjavaapplet.cpp.

bool KJavaApplet::failed (  )  const

Definition at line 284 of file kjavaapplet.cpp.

KJavaAppletContext* KJavaApplet::getContext (  )  const [inline]

Definition at line 204 of file kjavaapplet.h.

QMap< QString, QString > & KJavaApplet::getParams (  ) 

Get a reference to the Paramaters and their values.

Definition at line 104 of file kjavaapplet.cpp.

QString & KJavaApplet::getWindowName (  ) 

Get the window title this applet should use.

Definition at line 171 of file kjavaapplet.cpp.

void KJavaApplet::init (  ) 

Send message to AppletServer to Initialize and show this applet.

Definition at line 188 of file kjavaapplet.cpp.

bool KJavaApplet::isAlive (  )  const

Definition at line 272 of file kjavaapplet.cpp.

bool KJavaApplet::isCreated (  ) 

Returns status of applet- whether it's been created or not.

Definition at line 73 of file kjavaapplet.cpp.

void KJavaApplet::jsData ( const QStringList &  args  )  [inline]

JavaScript coming from Java.

Definition at line 237 of file kjavaapplet.h.

void KJavaApplet::jsEvent ( const QStringList &  args  )  [signal]

QString & KJavaApplet::parameter ( const QString &  name  ) 

Look up the parameter value for the given Parameter.

Returns QString::null if the name has not been set.

Definition at line 94 of file kjavaapplet.cpp.

const QString& KJavaApplet::password (  )  const [inline]

Definition at line 216 of file kjavaapplet.h.

void KJavaApplet::resizeAppletWidget ( int  width,
int  height 
)

Interface for applets to resize themselves.

Definition at line 149 of file kjavaapplet.cpp.

void KJavaApplet::setAppletClass ( const QString &  clazzName  ) 

Specify the name of the class file to run.

For example 'Lake.class'.

Definition at line 84 of file kjavaapplet.cpp.

void KJavaApplet::setAppletContext ( KJavaAppletContext *  _context  ) 

Set the applet context'.

Definition at line 78 of file kjavaapplet.cpp.

void KJavaApplet::setAppletId ( int  id  ) 

Set the applet ID.

Definition at line 208 of file kjavaapplet.cpp.

void KJavaApplet::setAppletName ( const QString &  name  ) 

Set the name the applet should be called in its context.

Definition at line 161 of file kjavaapplet.cpp.

void KJavaApplet::setArchives ( const QString &  _archives  ) 

Set the list of archives at the Applet's codebase to search in for class files and other resources.

Definition at line 139 of file kjavaapplet.cpp.

void KJavaApplet::setAuthName ( const QString &  _auth  )  [inline]

Get/Set the auth name.

Definition at line 221 of file kjavaapplet.h.

void KJavaApplet::setBaseURL ( const QString &  base  ) 

Set the URL of the document embedding the applet.

Definition at line 109 of file kjavaapplet.cpp.

void KJavaApplet::setCodeBase ( const QString &  codeBase  ) 

Set the codebase of the applet classes.

Definition at line 119 of file kjavaapplet.cpp.

void KJavaApplet::setFailed (  ) 

Definition at line 268 of file kjavaapplet.cpp.

void KJavaApplet::setParameter ( const QString &  name,
const QString &  value 
)

Specify a parameter to be passed to the applet.

Definition at line 99 of file kjavaapplet.cpp.

void KJavaApplet::setPassword ( const QString &  _password  )  [inline]

Get/Set the user password.

Definition at line 215 of file kjavaapplet.h.

void KJavaApplet::setSize ( QSize  size  ) 

Set the size of the applet.

Definition at line 129 of file kjavaapplet.cpp.

void KJavaApplet::setUser ( const QString &  _user  )  [inline]

Get/Set the user name.

Definition at line 209 of file kjavaapplet.h.

void KJavaApplet::setWindowName ( const QString &  title  ) 

Set the window title for swallowing.

Definition at line 166 of file kjavaapplet.cpp.

QSize KJavaApplet::size (  ) 

Get the size of the applet.

Definition at line 134 of file kjavaapplet.cpp.

void KJavaApplet::start (  ) 

Run the applet.

Definition at line 193 of file kjavaapplet.cpp.

KJavaApplet::AppletState KJavaApplet::state (  )  const

Definition at line 280 of file kjavaapplet.cpp.

void KJavaApplet::stateChange ( const int  newState  ) 

called from the protocol engine changes the status according to the one on the java side.

Do not call this yourself!

Definition at line 213 of file kjavaapplet.cpp.

void KJavaApplet::stop (  ) 

Pause the applet.

Definition at line 198 of file kjavaapplet.cpp.

const QString& KJavaApplet::user (  )  const [inline]

Definition at line 210 of file kjavaapplet.h.


The documentation for this class was generated from the following files:
  • kjavaapplet.h
  • kjavaapplet.cpp

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal