|
/**************************************************************************
*
* The code is generated for Microsoft VC++ 6.0
*
* with OOJNI Demo Tool developed by Vitaly Shelest (Javain Ltd.)
*
* You may use the code generated with OOJNI Demo only
*
* for evaluation and any use other than evaluation
*
* requiers a purchase of a license.
*
* Do not change the content of this file.
*
* You can order the latest version of OOJNI Add-in at http://www.javain.com
*
**************************************************************************/
#include "stdafx.h"
#include "defproxies.h"
const char* CPP_Java_Bridge::java::awt::PanelJNIProxy::_clazzName = "java/awt/Panel";
void CPP_Java_Bridge::java::awt::PanelJNIProxy::Panel_init(){
Panel_ID = 0;
add_ID = 0;
setBackground_ID = 0;
}
CPP_Java_Bridge::java::awt::PanelJNIProxy::PanelJNIProxy() : clazz(0) {
try{
jobject tmpclazz = ::jni_helpers::_simple_class_loader::getClass(_clazzName);
if(tmpclazz == 0)
tmpclazz = ::jni_helpers::JNIEnvHelper::FindClass(_clazzName);
clazz = reinterpret_cast<jclass> (::jni_helpers::JNIEnvHelper::NewGlobalRef(tmpclazz));
Panel_init();
if(Panel_ID == 0)
Panel_ID = ::jni_helpers::JNIEnvHelper::GetMethodID( clazz, "<init>", "()V" );
jobject tmpobj = ::jni_helpers::JNIEnvHelper::NewObject(clazz, Panel_ID);
Assign(tmpobj);
if(tmpobj)
::jni_helpers::JNIEnvHelper::DeleteLocalRef(tmpobj);
::jni_helpers::JNIEnvHelper::DeleteLocalRef(tmpclazz);
}catch(::jni_helpers::JVMException e){
throw ::jni_helpers::JVMException(jni_helpers::CSmartString("CPP_Java_Bridge::java::awt::PanelJNIProxy::PanelJNIProxy:\n") + e.getMessage());
}catch(...){
throw ::jni_helpers::JVMException("CPP_Java_Bridge::java::awt::PanelJNIProxy::PanelJNIProxy: System Error");
}
}
CPP_Java_Bridge::java::awt::Component CPP_Java_Bridge::java::awt::PanelJNIProxy::add(CPP_Java_Bridge::java::awt::Component p0) {
try{
CPP_Java_Bridge::java::awt::Component result;
if(add_ID == 0)
add_ID = ::jni_helpers::JNIEnvHelper::GetMethodID(clazz, "add", "(Ljava/awt/Component;)Ljava/awt/Component;");
jobject tmpobject =::jni_helpers::JNIEnvHelper::CallObjectMethod(*this, add_ID, (jobject)p0);
result = tmpobject;
if(tmpobject)
::jni_helpers::JNIEnvHelper::DeleteLocalRef(tmpobject);
return result;
}catch(::jni_helpers::JVMException e){
throw ::jni_helpers::JVMException(jni_helpers::CSmartString("CPP_Java_Bridge::java::awt::PanelJNIProxy::add:\n") + e.getMessage());
}catch(...){
throw ::jni_helpers::JVMException("CPP_Java_Bridge::java::awt::PanelJNIProxy::add: System Error");
}
}
void CPP_Java_Bridge::java::awt::PanelJNIProxy::setBackground(CPP_Java_Bridge::java::awt::Color p0) {
try{
if(setBackground_ID == 0)
setBackground_ID = ::jni_helpers::JNIEnvHelper::GetMethodID(clazz, "setBackground", "(Ljava/awt/Color;)V");
::jni_helpers::JNIEnvHelper::CallVoidMethod(*this, setBackground_ID, (jobject)p0);
}catch(::jni_helpers::JVMException e){
throw ::jni_helpers::JVMException(jni_helpers::CSmartString("CPP_Java_Bridge::java::awt::PanelJNIProxy::setBackground:\n") + e.getMessage());
}catch(...){
throw ::jni_helpers::JVMException("CPP_Java_Bridge::java::awt::PanelJNIProxy::setBackground: System Error");
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.