/***************************************************************************
                            HTMLInputElement.cpp -  description
                             -------------------
    begin                : Sun Aug 26 09:45:02 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Aug 26 09:45:02 2001, using kdoc parser/custom Java conversion backend.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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_form.h>
#include <dom/dom_string.h>
#include <qstring.h>
#include <qcstring.h>

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

class HTMLInputElementJBridge : public DOM::HTMLInputElement
{
public:
	HTMLInputElementJBridge() : DOM::HTMLInputElement() {}
	HTMLInputElementJBridge(const DOM::HTMLInputElement& other) : DOM::HTMLInputElement(other) {}
	HTMLInputElementJBridge(const Node& other) : DOM::HTMLInputElement(other) {}
	~HTMLInputElementJBridge() {QtSupport::qtKeyDeleted(this);}
	HTMLInputElementJBridge(DOM::HTMLInputElementImpl* impl) : DOM::HTMLInputElement(impl) {}
};


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

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

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

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_HTMLInputElement_defaultChecked(JNIEnv *env, jobject obj)
{
	return (jboolean) ((HTMLInputElementJBridge*) QtSupport::getQt(env, obj))->defaultChecked();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLInputElement_setDefaultChecked(JNIEnv *env, jobject obj, jboolean arg1)
{
	((HTMLInputElementJBridge*) QtSupport::getQt(env, obj))->setDefaultChecked((bool) arg1);
	return;
}

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

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

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

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

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

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

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_HTMLInputElement_checked(JNIEnv *env, jobject obj)
{
	return (jboolean) ((HTMLInputElementJBridge*) QtSupport::getQt(env, obj))->checked();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLInputElement_setChecked(JNIEnv *env, jobject obj, jboolean arg1)
{
	((HTMLInputElementJBridge*) QtSupport::getQt(env, obj))->setChecked((bool) arg1);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_HTMLInputElement_disabled(JNIEnv *env, jobject obj)
{
	return (jboolean) ((HTMLInputElementJBridge*) QtSupport::getQt(env, obj))->disabled();
}

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

JNIEXPORT jlong JNICALL
Java_org_kde_koala_HTMLInputElement_maxLength(JNIEnv *env, jobject obj)
{
	return (jlong) ((HTMLInputElementJBridge*) QtSupport::getQt(env, obj))->maxLength();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLInputElement_setMaxLength(JNIEnv *env, jobject obj, jlong arg1)
{
	((HTMLInputElementJBridge*) QtSupport::getQt(env, obj))->setMaxLength((long) arg1);
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_HTMLInputElement_readOnly(JNIEnv *env, jobject obj)
{
	return (jboolean) ((HTMLInputElementJBridge*) QtSupport::getQt(env, obj))->readOnly();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLInputElement_setReadOnly(JNIEnv *env, jobject obj, jboolean arg1)
{
	((HTMLInputElementJBridge*) QtSupport::getQt(env, obj))->setReadOnly((bool) arg1);
	return;
}

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

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

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

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

JNIEXPORT jlong JNICALL
Java_org_kde_koala_HTMLInputElement_tabIndex(JNIEnv *env, jobject obj)
{
	return (jlong) ((HTMLInputElementJBridge*) QtSupport::getQt(env, obj))->tabIndex();
}

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLInputElement_select(JNIEnv *env, jobject obj)
{
	((HTMLInputElementJBridge*) QtSupport::getQt(env, obj))->select();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_HTMLInputElement_click(JNIEnv *env, jobject obj)
{
	((HTMLInputElementJBridge*) QtSupport::getQt(env, obj))->click();
	return;
}

//JNIEXPORT void JNICALL
//Java_org_kde_koala_HTMLInputElement_newHTMLInputElement__Lorg_kde_koala_HTMLInputElementImpl_2(JNIEnv *env, jobject obj, jobject impl)
//{
//	if (QtSupport::getQt(env, obj) == 0) {
//		QtSupport::setQt(env, obj, new HTMLInputElementJBridge((HTMLInputElementImpl*) QtSupport::getQt(env, impl)));
//		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
//	}
//	return;
//}

