/***************************************************************************
                            HTMLTableElement.cpp -  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.                                   *
 *                                                                         *
***************************************************************************/

#define _BOOL_H_
#include <dom/html_table.h>
#include <dom/html_misc.h>
#include <qstring.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/HTMLTableElement.h>

class HTMLTableElementJBridge : public DOM::HTMLTableElement
{
public:
	HTMLTableElementJBridge() : HTMLTableElement() {}
	HTMLTableElementJBridge(const HTMLTableElement& other) : HTMLTableElement(other) {}
	HTMLTableElementJBridge(const Node& other) : HTMLTableElement(other) {}
	~HTMLTableElementJBridge() {QtSupport::qtKeyDeleted(this);}
};


JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLTableElement_newHTMLTableElement__(JNIEnv *env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new HTMLTableElementJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLTableElement_newHTMLTableElement__Lorg_kde_koala_HTMLTableElement_2(JNIEnv *env, jobject obj, jobject other)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new HTMLTableElementJBridge((DOM::HTMLTableElement&) *(DOM::HTMLTableElement *) QtSupport::getQt(env, other)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLTableElement_newHTMLTableElement__Lorg_kde_koala_DOMNode_2(JNIEnv *env, jobject obj, jobject other)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new HTMLTableElementJBridge((DOM::Node&) *(DOM::Node *) QtSupport::getQt(env, other)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLTableElement_finalize(JNIEnv *env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (DOM::HTMLTableElement*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLTableElement_dispose(JNIEnv *env, jobject obj)
{
	Java_org_kde_koala_HTMLTableElement_finalize(env, obj);
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_HTMLTableElement_caption(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new DOM::HTMLTableCaptionElement (((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->caption()), "org.kde.koala.HTMLTableCaptionElement", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLTableElement_setCaption(JNIEnv *env, jobject obj, jobject arg1)
{
	((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->setCaption((DOM::HTMLTableCaptionElement&) *(DOM::HTMLTableCaptionElement *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_HTMLTableElement_tHead(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new DOM::HTMLTableSectionElement (((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->tHead()), "org.kde.koala.HTMLTableSectionElement", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLTableElement_setTHead(JNIEnv *env, jobject obj, jobject arg1)
{
	((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->setTHead((DOM::HTMLTableSectionElement&) *(DOM::HTMLTableSectionElement *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_HTMLTableElement_tFoot(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new DOM::HTMLTableSectionElement (((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->tFoot()), "org.kde.koala.HTMLTableSectionElement", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLTableElement_setTFoot(JNIEnv *env, jobject obj, jobject arg1)
{
	((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->setTFoot((DOM::HTMLTableSectionElement&) *(DOM::HTMLTableSectionElement *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_HTMLTableElement_rows(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new DOM::HTMLCollection (((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->rows()), "org.kde.koala.HTMLCollection", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_HTMLTableElement_tBodies(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new DOM::HTMLCollection (((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->tBodies()), "org.kde.koala.HTMLCollection", TRUE);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_HTMLTableElement_align(JNIEnv *env, jobject obj)
{
	DOM::DOMString _domstring;
	_domstring = ((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->align();
	return KDESupport::fromDOMString(env, &_domstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLTableElement_setAlign(JNIEnv *env, jobject obj, jstring arg1)
{
static DOM::DOMString * _domstring_arg1 = 0;
	((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->setAlign((DOM::DOMString) * (DOM::DOMString *) KDESupport::toDOMString(env, arg1, &_domstring_arg1));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_HTMLTableElement_bgColor(JNIEnv *env, jobject obj)
{
	DOM::DOMString _domstring;
	_domstring = ((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->bgColor();
	return KDESupport::fromDOMString(env, &_domstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLTableElement_setBgColor(JNIEnv *env, jobject obj, jstring arg1)
{
static DOM::DOMString * _domstring_arg1 = 0;
	((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->setBgColor((DOM::DOMString) * (DOM::DOMString *) KDESupport::toDOMString(env, arg1, &_domstring_arg1));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_HTMLTableElement_border(JNIEnv *env, jobject obj)
{
	DOM::DOMString _domstring;
	_domstring = ((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->border();
	return KDESupport::fromDOMString(env, &_domstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLTableElement_setBorder(JNIEnv *env, jobject obj, jstring arg1)
{
static DOM::DOMString * _domstring_arg1 = 0;
	((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->setBorder((DOM::DOMString) * (DOM::DOMString *) KDESupport::toDOMString(env, arg1, &_domstring_arg1));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_HTMLTableElement_cellPadding(JNIEnv *env, jobject obj)
{
	DOM::DOMString _domstring;
	_domstring = ((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->cellPadding();
	return KDESupport::fromDOMString(env, &_domstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLTableElement_setCellPadding(JNIEnv *env, jobject obj, jstring arg1)
{
static DOM::DOMString * _domstring_arg1 = 0;
	((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->setCellPadding((DOM::DOMString) * (DOM::DOMString *) KDESupport::toDOMString(env, arg1, &_domstring_arg1));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_HTMLTableElement_cellSpacing(JNIEnv *env, jobject obj)
{
	DOM::DOMString _domstring;
	_domstring = ((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->cellSpacing();
	return KDESupport::fromDOMString(env, &_domstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLTableElement_setCellSpacing(JNIEnv *env, jobject obj, jstring arg1)
{
static DOM::DOMString * _domstring_arg1 = 0;
	((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->setCellSpacing((DOM::DOMString) * (DOM::DOMString *) KDESupport::toDOMString(env, arg1, &_domstring_arg1));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_HTMLTableElement_frame(JNIEnv *env, jobject obj)
{
	DOM::DOMString _domstring;
	_domstring = ((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->frame();
	return KDESupport::fromDOMString(env, &_domstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLTableElement_setFrame(JNIEnv *env, jobject obj, jstring arg1)
{
static DOM::DOMString * _domstring_arg1 = 0;
	((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->setFrame((DOM::DOMString) * (DOM::DOMString *) KDESupport::toDOMString(env, arg1, &_domstring_arg1));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_HTMLTableElement_rules(JNIEnv *env, jobject obj)
{
	DOM::DOMString _domstring;
	_domstring = ((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->rules();
	return KDESupport::fromDOMString(env, &_domstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLTableElement_setRules(JNIEnv *env, jobject obj, jstring arg1)
{
static DOM::DOMString * _domstring_arg1 = 0;
	((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->setRules((DOM::DOMString) * (DOM::DOMString *) KDESupport::toDOMString(env, arg1, &_domstring_arg1));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_HTMLTableElement_summary(JNIEnv *env, jobject obj)
{
	DOM::DOMString _domstring;
	_domstring = ((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->summary();
	return KDESupport::fromDOMString(env, &_domstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLTableElement_setSummary(JNIEnv *env, jobject obj, jstring arg1)
{
static DOM::DOMString * _domstring_arg1 = 0;
	((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->setSummary((DOM::DOMString) * (DOM::DOMString *) KDESupport::toDOMString(env, arg1, &_domstring_arg1));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_HTMLTableElement_width(JNIEnv *env, jobject obj)
{
	DOM::DOMString _domstring;
	_domstring = ((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->width();
	return KDESupport::fromDOMString(env, &_domstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLTableElement_setWidth(JNIEnv *env, jobject obj, jstring arg1)
{
static DOM::DOMString * _domstring_arg1 = 0;
	((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->setWidth((DOM::DOMString) * (DOM::DOMString *) KDESupport::toDOMString(env, arg1, &_domstring_arg1));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_HTMLTableElement_createTHead(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new DOM::HTMLElement (((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->createTHead()), "org.kde.koala.HTMLElement", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLTableElement_deleteTHead(JNIEnv *env, jobject obj)
{
	((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->deleteTHead();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_HTMLTableElement_createTFoot(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new DOM::HTMLElement (((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->createTFoot()), "org.kde.koala.HTMLElement", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLTableElement_deleteTFoot(JNIEnv *env, jobject obj)
{
	((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->deleteTFoot();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_HTMLTableElement_createCaption(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new DOM::HTMLElement (((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->createCaption()), "org.kde.koala.HTMLElement", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLTableElement_deleteCaption(JNIEnv *env, jobject obj)
{
	((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->deleteCaption();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_HTMLTableElement_insertRow(JNIEnv *env, jobject obj, jlong index)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new DOM::HTMLElement (((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->insertRow((long) index)), "org.kde.koala.HTMLElement", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLTableElement_deleteRow(JNIEnv *env, jobject obj, jlong index)
{
	((DOM::HTMLTableElement*) QtSupport::getQt(env, obj))->deleteRow((long) index);
	return;
}

