//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.koala;

import org.trinitydesktop.qt.Qt;
import org.trinitydesktop.qt.TQMetaObject;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQKeyEvent;
import org.trinitydesktop.qt.TQWidget;

/**

 The KRestrictedLine widget is a variant of TQLineEdit which
 accepts only a restricted set of characters as input.
 All other characters will be discarded and the signal invalidChar()
 will be emitted for each of them.
 Valid characters can be passed as a String to the constructor
 or set afterwards via setValidChars().
 The default key bindings of TQLineEdit are still in effect.
 See {@link KRestrictedLineSignals} for signals emitted by KRestrictedLine
		@author Michael Wiedmann <mw@miwie.in-berlin.de>

		@short A line editor for restricted character sets.

*/
public class KRestrictedLine extends KLineEdit  {
	protected KRestrictedLine(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**
		 Constructor: This contructor takes three - optional - arguments.
		  The first two parameters are simply passed on to TQLineEdit.
			@param parent pointer to the parent widget
			@param name pointer to the name of this widget
			@param valid pointer to set of valid characters
		   		@short    Constructor: This contructor takes three - optional - arguments.
	*/
	public KRestrictedLine(TQWidget parent, String name, String valid) {
		super((Class) null);
		newKRestrictedLine(parent,name,valid);
	}
	private native void newKRestrictedLine(TQWidget parent, String name, String valid);
	public KRestrictedLine(TQWidget parent, String name) {
		super((Class) null);
		newKRestrictedLine(parent,name);
	}
	private native void newKRestrictedLine(TQWidget parent, String name);
	public KRestrictedLine(TQWidget parent) {
		super((Class) null);
		newKRestrictedLine(parent);
	}
	private native void newKRestrictedLine(TQWidget parent);
	public KRestrictedLine() {
		super((Class) null);
		newKRestrictedLine();
	}
	private native void newKRestrictedLine();
	/**
		 All characters in the string valid are treated as
		 acceptable characters.
		   		@short    All characters in the string valid are treated as  acceptable characters.
	*/
	public native void setValidChars(String valid);
	/**
				@return the string of acceptable characters.

		@short
	*/
	public native String validChars();
	protected native void keyPressEvent(TQKeyEvent e);
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}
