/***************************************************************************
                            KJavaAppletContext.java -  description
                             -------------------
    begin                : Sun Jan 27 16:22:17 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Jan 27 16:22:17 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

package org.kde.koala;

import org.kde.qt.*;
import java.util.*;
import java.lang.Error;

/**


 See {@link KJavaAppletContextSignals} for signals emitted by KJavaAppletContext.

 See {@link KJavaAppletContextEventHandling} for event handlers to override in subclasses of KJavaAppletContext.

 @author Richard J. Moore, rich@kde.org
 
 @version $Id: KJavaAppletContext.java,v 1.5 2002/01/31 04:48:57 rdale Exp $

 @short Communicates with a KJAS server to display and control Java applets.

*/
public class KJavaAppletContext extends QObject  {
	protected KJavaAppletContext(Class dummy){super((Class) null);}

	private native void newKJavaAppletContext();
	public KJavaAppletContext() {
		super((Class) null);
		newKJavaAppletContext();
	}
	protected native void finalize() throws InternalError;
	public native void dispose();
	public native boolean isDisposed();

/** 
 Returns the ID of this context.
     
*/
	public native int contextId();

/** 
 Sets the ID of this context.
     
*/
	public native void setContextId( int identifier);

/** 
 Sends a message to create the applet.
     
*/
	public native void create( KJavaApplet arg1);

/** 
 Sends a message to destroy the applet.
     
*/
	public native void destroy( KJavaApplet arg1);

/** 
 Sends a message to initialize the applet.
     
*/
	public native void init( KJavaApplet arg1);

/** 
 Sends a message to start the applet.
     
*/
	public native void start( KJavaApplet arg1);

/** 
 Sends a message to stop the applet.
     
*/
	public native void stop( KJavaApplet arg1);

/** 
 use this for applet call backs, the AppletServer
 calls this directly.
     
*/
	public native void processCmd( String cmd, String[] args);
	protected native void received( String cmd, String[] arg);
}
