//Auto-generated by kalyptus. DO NOT EDIT.
#include <qrect.h>
#include <qstring.h>
#include <qtable.h>
#include <qpalette.h>
#include <qsize.h>
#include <qpixmap.h>

#include <qtjava/QtSupport.h>
#include <qtjava/QTableItem.h>

class QTableItemJBridge : public QTableItem
{
public:
	QTableItemJBridge(QTable* arg1,QTableItem::EditType arg2) : QTableItem(arg1,arg2) {};
	QTableItemJBridge(QTable* arg1,QTableItem::EditType arg2,const QString& arg3) : QTableItem(arg1,arg2,arg3) {};
	QTableItemJBridge(QTable* arg1,QTableItem::EditType arg2,const QString& arg3,const QPixmap& arg4) : QTableItem(arg1,arg2,arg3,arg4) {};
	~QTableItemJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTableItem_alignment(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QTableItem*) QtSupport::getQt(env, obj))->alignment();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTableItem_colSpan(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QTableItem*) QtSupport::getQt(env, obj))->colSpan();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTableItem_col(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QTableItem*) QtSupport::getQt(env, obj))->col();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTableItem_createEditor(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QTableItem*) QtSupport::getQt(env, obj))->createEditor(), "org.kde.qt.QWidget");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTableItem_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QTableItem_finalize(env, obj);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTableItem_editType(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QTableItem*) QtSupport::getQt(env, obj))->editType();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTableItem_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((QTableItem*)(QTableItem*)QtSupport::getQt(env, obj))->table() == 0) {
		delete (QTableItem*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTableItem_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTableItem_isEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QTableItem*) QtSupport::getQt(env, obj))->isEnabled();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTableItem_isReplaceable(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QTableItem*) QtSupport::getQt(env, obj))->isReplaceable();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QTableItem_key(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QTableItem*) QtSupport::getQt(env, obj))->key();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTableItem_newQTableItem__Lorg_kde_qt_QTable_2I(JNIEnv* env, jobject obj, jobject table, jint et)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QTableItemJBridge((QTable*) QtSupport::getQt(env, table), (QTableItem::EditType) et));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTableItem_newQTableItem__Lorg_kde_qt_QTable_2ILjava_lang_String_2(JNIEnv* env, jobject obj, jobject table, jint et, jstring text)
{
static QString* _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QTableItemJBridge((QTable*) QtSupport::getQt(env, table), (QTableItem::EditType) et, (const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTableItem_newQTableItem__Lorg_kde_qt_QTable_2ILjava_lang_String_2Lorg_kde_qt_QPixmap_2(JNIEnv* env, jobject obj, jobject table, jint et, jstring text, jobject p)
{
static QString* _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QTableItemJBridge((QTable*) QtSupport::getQt(env, table), (QTableItem::EditType) et, (const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QPixmap&)*(const QPixmap*) QtSupport::getQt(env, p)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTableItem_paint(JNIEnv* env, jobject obj, jobject p, jobject cg, jobject cr, jboolean selected)
{
	((QTableItem*) QtSupport::getQt(env, obj))->paint((QPainter*) QtSupport::getQt(env, p), (const QColorGroup&)*(const QColorGroup*) QtSupport::getQt(env, cg), (const QRect&)*(const QRect*) QtSupport::getQt(env, cr), (bool) selected);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTableItem_pixmap(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((QTableItem*) QtSupport::getQt(env, obj))->pixmap()), "org.kde.qt.QPixmap", TRUE);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTableItem_rowSpan(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QTableItem*) QtSupport::getQt(env, obj))->rowSpan();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTableItem_row(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QTableItem*) QtSupport::getQt(env, obj))->row();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTableItem_rtti(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QTableItem*) QtSupport::getQt(env, obj))->rtti();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTableItem_setCol(JNIEnv* env, jobject obj, jint c)
{
	((QTableItem*) QtSupport::getQt(env, obj))->setCol((int) c);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTableItem_setContentFromEditor(JNIEnv* env, jobject obj, jobject w)
{
	((QTableItem*) QtSupport::getQt(env, obj))->setContentFromEditor((QWidget*) QtSupport::getQt(env, w));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTableItem_setEnabled(JNIEnv* env, jobject obj, jboolean b)
{
	((QTableItem*) QtSupport::getQt(env, obj))->setEnabled((bool) b);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTableItem_setPixmap(JNIEnv* env, jobject obj, jobject p)
{
	((QTableItem*) QtSupport::getQt(env, obj))->setPixmap((const QPixmap&)*(const QPixmap*) QtSupport::getQt(env, p));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTableItem_setReplaceable(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QTableItem*) QtSupport::getQt(env, obj))->setReplaceable((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTableItem_setRow(JNIEnv* env, jobject obj, jint r)
{
	((QTableItem*) QtSupport::getQt(env, obj))->setRow((int) r);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTableItem_setSpan(JNIEnv* env, jobject obj, jint rs, jint cs)
{
	((QTableItem*) QtSupport::getQt(env, obj))->setSpan((int) rs, (int) cs);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTableItem_setText(JNIEnv* env, jobject obj, jstring t)
{
static QString* _qstring_t = 0;
	((QTableItem*) QtSupport::getQt(env, obj))->setText((const QString&)*(QString*) QtSupport::toQString(env, t, &_qstring_t));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTableItem_setWordWrap(JNIEnv* env, jobject obj, jboolean b)
{
	((QTableItem*) QtSupport::getQt(env, obj))->setWordWrap((bool) b);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTableItem_sizeHint(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSize(((QTableItem*) QtSupport::getQt(env, obj))->sizeHint()), "org.kde.qt.QSize", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTableItem_table(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QTableItem*) QtSupport::getQt(env, obj))->table(), "org.kde.qt.QTable");
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QTableItem_text(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QTableItem*) QtSupport::getQt(env, obj))->text();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTableItem_updateEditor(JNIEnv* env, jobject obj, jint oldRow, jint oldCol)
{
	((QTableItem*) QtSupport::getQt(env, obj))->updateEditor((int) oldRow, (int) oldCol);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTableItem_wordWrap(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QTableItem*) QtSupport::getQt(env, obj))->wordWrap();
	return xret;
}

