//Auto-generated by kalyptus. DO NOT EDIT.
#include <dom/dom_string.h>
#include <dom/dom_node.h>
#include <dom/html_form.h>

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/HTMLButtonElement.h>

class HTMLButtonElementJBridge : public DOM::HTMLButtonElement
{
public:
	HTMLButtonElementJBridge() : DOM::HTMLButtonElement() {};
	HTMLButtonElementJBridge(const DOM::HTMLButtonElement& arg1) : DOM::HTMLButtonElement(arg1) {};
	HTMLButtonElementJBridge(const DOM::Node& arg1) : DOM::HTMLButtonElement(arg1) {};
};

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_HTMLButtonElement_accessKey(JNIEnv* env, jobject obj)
{
	DOM::DOMString  _qstring;
	_qstring = ((DOM::HTMLButtonElement*) QtSupport::getQt(env, obj))->accessKey();
	return KDESupport::fromDOMString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_HTMLButtonElement_blur(JNIEnv* env, jobject obj)
{
	((DOM::HTMLButtonElement*) QtSupport::getQt(env, obj))->blur();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_HTMLButtonElement_disabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DOM::HTMLButtonElement*) QtSupport::getQt(env, obj))->disabled();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_HTMLButtonElement_focus(JNIEnv* env, jobject obj)
{
	((DOM::HTMLButtonElement*) QtSupport::getQt(env, obj))->focus();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_HTMLButtonElement_formElement(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::HTMLFormElement(((DOM::HTMLButtonElement*) QtSupport::getQt(env, obj))->form()), "org.trinitydesktop.koala.HTMLFormElement", true);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_HTMLButtonElement_name(JNIEnv* env, jobject obj)
{
	DOM::DOMString  _qstring;
	_qstring = ((DOM::HTMLButtonElement*) QtSupport::getQt(env, obj))->name();
	return KDESupport::fromDOMString(env, &_qstring);
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_HTMLButtonElement_newHTMLButtonElement__Lorg_trinitydesktop_koala_HTMLButtonElement_2(JNIEnv* env, jobject obj, jobject other)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new HTMLButtonElementJBridge((const DOM::HTMLButtonElement&)*(const DOM::HTMLButtonElement*) QtSupport::getQt(env, other)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_HTMLButtonElement_setDisabled(JNIEnv* env, jobject obj, jboolean arg1)
{
	((DOM::HTMLButtonElement*) QtSupport::getQt(env, obj))->setDisabled((bool) arg1);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_HTMLButtonElement_setTabIndex(JNIEnv* env, jobject obj, jlong arg1)
{
	((DOM::HTMLButtonElement*) QtSupport::getQt(env, obj))->setTabIndex((long) arg1);
	return;
}

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

JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_koala_HTMLButtonElement_tabIndex(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((DOM::HTMLButtonElement*) QtSupport::getQt(env, obj))->tabIndex();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_HTMLButtonElement_type(JNIEnv* env, jobject obj)
{
	DOM::DOMString  _qstring;
	_qstring = ((DOM::HTMLButtonElement*) QtSupport::getQt(env, obj))->type();
	return KDESupport::fromDOMString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_HTMLButtonElement_value(JNIEnv* env, jobject obj)
{
	DOM::DOMString  _qstring;
	_qstring = ((DOM::HTMLButtonElement*) QtSupport::getQt(env, obj))->value();
	return KDESupport::fromDOMString(env, &_qstring);
}

