//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 <kdejava/KDESupport.h>
#include <kdejava/HTMLOptionElement.h>

class HTMLOptionElementJBridge : public DOM::HTMLOptionElement
{
public:
	HTMLOptionElementJBridge() : DOM::HTMLOptionElement() {};
	HTMLOptionElementJBridge(const DOM::HTMLOptionElement& arg1) : DOM::HTMLOptionElement(arg1) {};
	HTMLOptionElementJBridge(const DOM::Node& arg1) : DOM::HTMLOptionElement(arg1) {};
};

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_HTMLOptionElement_defaultSelected(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DOM::HTMLOptionElement*) QtSupport::getQt(env, obj))->defaultSelected();
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_HTMLOptionElement_formElement(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::HTMLFormElement(((DOM::HTMLOptionElement*) QtSupport::getQt(env, obj))->form()), "org.kde.koala.HTMLFormElement", TRUE);
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_kde_koala_HTMLOptionElement_index(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((DOM::HTMLOptionElement*) QtSupport::getQt(env, obj))->index();
	return xret;
}

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

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_HTMLOptionElement_selected(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DOM::HTMLOptionElement*) QtSupport::getQt(env, obj))->selected();
	return xret;
}

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

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

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

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

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

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

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

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

