khtml Library API Documentation

KJavaAppletWidget Class Reference

Inheritance diagram for KJavaAppletWidget:

Inheritance graph
[legend]
Collaboration diagram for KJavaAppletWidget:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KJavaAppletWidget (QWidget *parent=0, const char *name=0)
 ~KJavaAppletWidget ()
KJavaAppletapplet ()
void showApplet ()
QSize sizeHint () const
void resize (int, int)

Protected Slots

void setWindow (WId w)

Protected Member Functions

void showEvent (QShowEvent *)

Static Protected Attributes

static int appletCount = 0

Detailed Description

Definition at line 78 of file kjavaappletwidget.h.


Member Function Documentation

KJavaApplet* KJavaAppletWidget::applet  )  [inline]
 

Returns a pointer to the KJavaApplet.

Use this to configure the applet's parameters. You can also use it to start and stop the Applet.

Definition at line 91 of file kjavaappletwidget.h.

Referenced by AppletParameterDialog::AppletParameterDialog(), KJavaAppletViewer::openURL(), KJavaAppletViewerBrowserExtension::restoreState(), showEvent(), and AppletParameterDialog::slotClose().

void KJavaAppletWidget::showApplet  ) 
 

Tells the AppletServer to create, initialize, and show the Applet.

Definition at line 67 of file kjavaappletwidget.cpp.

References KJavaApplet::create(), KWinModule::doNotManage(), KJavaApplet::isCreated(), and setWindow().

Referenced by KJavaAppletViewer::openURL(), KJavaAppletViewerBrowserExtension::restoreState(), and showEvent().

void KJavaAppletWidget::setWindow WId  w  )  [protected, slot]
 

This slot is called by KWin when new windows are added.

We check to see if the window has the title we set. If so we embed it.

Definition at line 79 of file kjavaappletwidget.cpp.

References QXEmbed::embed(), endl(), kdDebug(), QWidget::setFocus(), KWin::windowInfo(), and KWin::WindowInfo().

Referenced by showApplet().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for khtml Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Sep 16 07:10:49 2005 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003