\section{KJava\-Applet\-Context Class Reference}
\label{classKJavaAppletContext}\index{KJavaAppletContext@{KJavaAppletContext}}
Provides a context for KJava\-Applet\-Widgets.  


{\tt \#include $<$kjavaappletcontext.h$>$}

Inheritance diagram for KJava\-Applet\-Context:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=71pt]{classKJavaAppletContext__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KJava\-Applet\-Context:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=180pt]{classKJavaAppletContext__coll__graph}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf show\-Status} (const {\bf QString} \&txt)
\item 
void {\bf show\-Document} (const {\bf QString} \&url, const {\bf QString} \&target)
\item 
void {\bf applet\-Loaded} ()
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
int {\bf context\-Id} ()
\item 
void {\bf set\-Context\-Id} (int id)
\item 
void {\bf register\-Applet} ({\bf KJava\-Applet} $\ast$)
\item 
bool {\bf create} ({\bf KJava\-Applet} $\ast$)
\item 
void {\bf destroy} ({\bf KJava\-Applet} $\ast$)
\item 
void {\bf init} ({\bf KJava\-Applet} $\ast$)
\item 
void {\bf start} ({\bf KJava\-Applet} $\ast$)
\item 
void {\bf stop} ({\bf KJava\-Applet} $\ast$)
\item 
void {\bf process\-Cmd} ({\bf QString} cmd, {\bf QString\-List} args)
\item 
bool {\bf get\-Member} ({\bf QString\-List} \&args, {\bf QString\-List} \&ret\_\-args)
\item 
bool {\bf put\-Member} ({\bf QString\-List} \&args)\label{classKJavaAppletContext_a12}

\item 
bool {\bf call\-Member} ({\bf QString\-List} \&args, {\bf QString\-List} \&ret\_\-args)\label{classKJavaAppletContext_a13}

\item 
void {\bf deref\-Object} ({\bf QString\-List} \&args)\label{classKJavaAppletContext_a14}

\item 
{\bf KJava\-Applet\-Server} $\ast$ {\bf get\-Server} () const \label{classKJavaAppletContext_a15}

\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
void {\bf received} (const {\bf QString} \&cmd, const {\bf QString\-List} \&arg)\label{classKJavaAppletContext_j0}

\item 
void {\bf java\-Process\-Exited} (int)\label{classKJavaAppletContext_j1}

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
{\bf KJava\-Applet\-Server} $\ast$ {\bf server}\label{classKJavaAppletContext_p0}

\end{CompactItemize}
\subsection*{Static Protected Attributes}
\begin{CompactItemize}
\item 
static int {\bf context\-Count} = 0\label{classKJavaAppletContext_t0}

\end{CompactItemize}


\subsection{Detailed Description}
Provides a context for KJava\-Applet\-Widgets. 

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.

\begin{Desc}
\item[Author:]Richard J. Moore, {\tt rich@kde.org} 

Wynn Wilkes, {\tt wynnw@caldera.com} \end{Desc}




Definition at line 45 of file kjavaappletcontext.h.

\subsection{Member Function Documentation}
\index{KJavaAppletContext@{KJava\-Applet\-Context}!contextId@{contextId}}
\index{contextId@{contextId}!KJavaAppletContext@{KJava\-Applet\-Context}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KJava\-Applet\-Context::context\-Id ()}\label{classKJavaAppletContext_a2}


Returns the ID of this context. 



Definition at line 72 of file kjavaappletcontext.cpp.\index{KJavaAppletContext@{KJava\-Applet\-Context}!setContextId@{setContextId}}
\index{setContextId@{setContextId}!KJavaAppletContext@{KJava\-Applet\-Context}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KJava\-Applet\-Context::set\-Context\-Id (int {\em id})}\label{classKJavaAppletContext_a3}


Sets the ID of this context. 



Definition at line 77 of file kjavaappletcontext.cpp.\index{KJavaAppletContext@{KJava\-Applet\-Context}!registerApplet@{registerApplet}}
\index{registerApplet@{registerApplet}!KJavaAppletContext@{KJava\-Applet\-Context}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KJava\-Applet\-Context::register\-Applet ({\bf KJava\-Applet} $\ast$)}\label{classKJavaAppletContext_a4}


registers applet 



Definition at line 82 of file kjavaappletcontext.cpp.

Referenced by KJava\-Applet::set\-Applet\-Context().\index{KJavaAppletContext@{KJava\-Applet\-Context}!create@{create}}
\index{create@{create}!KJavaAppletContext@{KJava\-Applet\-Context}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KJava\-Applet\-Context::create ({\bf KJava\-Applet} $\ast$)}\label{classKJavaAppletContext_a5}


Sends a message to create the applet. 



Definition at line 90 of file kjavaappletcontext.cpp.

References KJava\-Applet\-Server::create\-Applet().

Referenced by KJava\-Applet::create().\index{KJavaAppletContext@{KJava\-Applet\-Context}!destroy@{destroy}}
\index{destroy@{destroy}!KJavaAppletContext@{KJava\-Applet\-Context}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KJava\-Applet\-Context::destroy ({\bf KJava\-Applet} $\ast$)}\label{classKJavaAppletContext_a6}


Sends a message to destroy the applet. 



Definition at line 108 of file kjavaappletcontext.cpp.

References KJava\-Applet\-Server::destroy\-Applet().\index{KJavaAppletContext@{KJava\-Applet\-Context}!init@{init}}
\index{init@{init}!KJavaAppletContext@{KJava\-Applet\-Context}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KJava\-Applet\-Context::init ({\bf KJava\-Applet} $\ast$)}\label{classKJavaAppletContext_a7}


Sends a message to initialize the applet. 



Definition at line 116 of file kjavaappletcontext.cpp.

References KJava\-Applet\-Server::init\-Applet().

Referenced by KJava\-Applet::init().\index{KJavaAppletContext@{KJava\-Applet\-Context}!start@{start}}
\index{start@{start}!KJavaAppletContext@{KJava\-Applet\-Context}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KJava\-Applet\-Context::start ({\bf KJava\-Applet} $\ast$)}\label{classKJavaAppletContext_a8}


Sends a message to start the applet. 



Definition at line 121 of file kjavaappletcontext.cpp.

References KJava\-Applet\-Server::start\-Applet().

Referenced by KJava\-Applet::start().\index{KJavaAppletContext@{KJava\-Applet\-Context}!stop@{stop}}
\index{stop@{stop}!KJavaAppletContext@{KJava\-Applet\-Context}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KJava\-Applet\-Context::stop ({\bf KJava\-Applet} $\ast$)}\label{classKJavaAppletContext_a9}


Sends a message to stop the applet. 



Definition at line 126 of file kjavaappletcontext.cpp.

References KJava\-Applet\-Server::stop\-Applet().

Referenced by KJava\-Applet::stop().\index{KJavaAppletContext@{KJava\-Applet\-Context}!processCmd@{processCmd}}
\index{processCmd@{processCmd}!KJavaAppletContext@{KJava\-Applet\-Context}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KJava\-Applet\-Context::process\-Cmd ({\bf QString} {\em cmd}, {\bf QString\-List} {\em args})}\label{classKJavaAppletContext_a10}


use this for applet call backs, the Applet\-Server calls this directly. 



Definition at line 131 of file kjavaappletcontext.cpp.\index{KJavaAppletContext@{KJava\-Applet\-Context}!getMember@{getMember}}
\index{getMember@{getMember}!KJavaAppletContext@{KJava\-Applet\-Context}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KJava\-Applet\-Context::get\-Member ({\bf QString\-List} \& {\em args}, {\bf QString\-List} \& {\em ret\_\-args})}\label{classKJavaAppletContext_a11}


Live\-Connect functions. 



Definition at line 254 of file kjavaappletcontext.cpp.

References KJava\-Applet\-Server::get\-Member().\index{KJavaAppletContext@{KJava\-Applet\-Context}!showStatus@{showStatus}}
\index{showStatus@{showStatus}!KJavaAppletContext@{KJava\-Applet\-Context}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KJava\-Applet\-Context::show\-Status (const {\bf QString} \& {\em txt})\hspace{0.3cm}{\tt  [signal]}}\label{classKJavaAppletContext_l0}


Signals the KHMTL Part to show this as the status message. 

\index{KJavaAppletContext@{KJava\-Applet\-Context}!showDocument@{showDocument}}
\index{showDocument@{showDocument}!KJavaAppletContext@{KJava\-Applet\-Context}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KJava\-Applet\-Context::show\-Document (const {\bf QString} \& {\em url}, const {\bf QString} \& {\em target})\hspace{0.3cm}{\tt  [signal]}}\label{classKJavaAppletContext_l1}


Signals the KHTML Part to show a url in a given target. 

\index{KJavaAppletContext@{KJava\-Applet\-Context}!appletLoaded@{appletLoaded}}
\index{appletLoaded@{appletLoaded}!KJavaAppletContext@{KJava\-Applet\-Context}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KJava\-Applet\-Context::applet\-Loaded ()\hspace{0.3cm}{\tt  [signal]}}\label{classKJavaAppletContext_l2}


Signals the KHTML Part an applet is loaded. 



The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
kjavaappletcontext.h\item 
kjavaappletcontext.cpp\end{CompactItemize}
