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

import org.kde.qt.Qt;
import org.kde.qt.QtSupport;
import org.kde.qt.QWidget;
import org.kde.qt.QValidator;

/**

 QValidator for integers.
  This can be used by QLineEdit or subclass to provide validated
  text entry.  Can be provided with a base value (default is 10), to allow
  the proper entry of hexadecimal, octal, or any other base numeric data.
		@author Glen Parker <glenebob@nwlink.com>

		@version 0.0.1

		@short    QValidator for integers.

*/
public class KIntValidator extends QValidator  {
	protected KIntValidator(Class dummy){super((Class) null);}
	/**	
		      Constuctor.  Also sets the base value.
		    		@short         Constuctor.
	*/
	public KIntValidator(QWidget parent, int base, String name) {
		super((Class) null);
		newKIntValidator(parent,base,name);
	}
	private native void newKIntValidator(QWidget parent, int base, String name);
	public KIntValidator(QWidget parent, int base) {
		super((Class) null);
		newKIntValidator(parent,base);
	}
	private native void newKIntValidator(QWidget parent, int base);
	public KIntValidator(QWidget parent) {
		super((Class) null);
		newKIntValidator(parent);
	}
	private native void newKIntValidator(QWidget parent);
	/**	
		 Constructor.  Also sets the minimum, maximum, and numeric base values.
		     		@short    Constructor.
	*/
	public KIntValidator(int bottom, int top, QWidget parent, int base, String name) {
		super((Class) null);
		newKIntValidator(bottom,top,parent,base,name);
	}
	private native void newKIntValidator(int bottom, int top, QWidget parent, int base, String name);
	public KIntValidator(int bottom, int top, QWidget parent, int base) {
		super((Class) null);
		newKIntValidator(bottom,top,parent,base);
	}
	private native void newKIntValidator(int bottom, int top, QWidget parent, int base);
	public KIntValidator(int bottom, int top, QWidget parent) {
		super((Class) null);
		newKIntValidator(bottom,top,parent);
	}
	private native void newKIntValidator(int bottom, int top, QWidget parent);
	/**	
		 Validates the text, and return the result.  Does not modify the parameters.
		     		@short    Validates the text, and return the result.
	*/
	public native int validate(StringBuffer arg1, int[] arg2);
	/**	
		 Fixes the text if possible, providing a valid string.  The parameter may be modified.
		     		@short    Fixes the text if possible, providing a valid string.
	*/
	public native void fixup(StringBuffer arg1);
	/**	
		 Sets the minimum and maximum values allowed.
		     		@short    Sets the minimum and maximum values allowed.
	*/
	public native void setRange(int bottom, int top);
	/**	
		 Sets the numeric base value.
		     		@short    Sets the numeric base value.
	*/
	public native void setBase(int base);
	/**	
		 Returns the current minimum value allowed.
		     		@short    Returns the current minimum value allowed.
	*/
	public native int bottom();
	/**	
		 Returns the current maximum value allowed.
		     		@short    Returns the current maximum value allowed.
	*/
	public native int top();
	/**	
		 Returns the current numeric base.
		     		@short    Returns the current numeric base.
	*/
	public native int base();
	/** 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();
}
