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

import org.kde.qt.Qt;
import org.kde.qt.QMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.QKeyEvent;
import org.kde.qt.QWidget;

/**

 The KRestrictedLine widget is a variant of QLineEdit 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 QLineEdit 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 QMetaObject metaObject();
	public native String className();
	/**	
		 Constructor: This contructor takes three - optional - arguments.
		  The first two parameters are simply passed on to QLineEdit.
			@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(QWidget parent, String name, String valid) {
		super((Class) null);
		newKRestrictedLine(parent,name,valid);
	}
	private native void newKRestrictedLine(QWidget parent, String name, String valid);
	public KRestrictedLine(QWidget parent, String name) {
		super((Class) null);
		newKRestrictedLine(parent,name);
	}
	private native void newKRestrictedLine(QWidget parent, String name);
	public KRestrictedLine(QWidget parent) {
		super((Class) null);
		newKRestrictedLine(parent);
	}
	private native void newKRestrictedLine(QWidget 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(QKeyEvent 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();
}
