//====START_GENERATED_PROLOG======================================
//
//
//   COMPONENT_NAME: odother
//
//   CLASSES: none
//
//   ORIGINS: 27
//
//
//   (C) COPYRIGHT International Business Machines Corp. 1995,1996
//   All Rights Reserved
//   Licensed Materials - Property of IBM
//   US Government Users Restricted Rights - Use, duplication or
//   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
//
//   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
//   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
//   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
//   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
//   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
//   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
//   OR PERFORMANCE OF THIS SOFTWARE.
//
//====END_GENERATED_PROLOG========================================
//
// @(#) 1.1 nt/src/samples/JavaPart/Bean.h, odjavapart, od96nt, odnt9714c 3/19/97 04:07:15 [ 4/2/97 17:55:05 ]

#ifndef IBMSample_BEAN
#define IBMSample_BEAN

#ifndef SOM_JavaPart_xh
#include "IODJava.xh"
#endif

#include <windows.h>

extern "C" {
	#include "JEmpower.h"
}

class BeanTag;

class Bean {
public:
	Bean (JavaPart* part, BeanTag* tag);
	~Bean ();

	void Init ();
	void Resize (int width, int height);

	static void ShowConsole ();
	static void HideConsole ();

	BeanTag* GetBeanTag ();

private:
	JavaPart* fJavaPart;
	jobject   fBean;

	BeanTag*  fBeanTag;
};

#endif /* IBMSample_BEAN */
