From 90825e2392b2d70e43c7a25b8a3752299a933894 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdejava/koala/org/kde/koala/KIntValidator.java | 103 +++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 kdejava/koala/org/kde/koala/KIntValidator.java (limited to 'kdejava/koala/org/kde/koala/KIntValidator.java') diff --git a/kdejava/koala/org/kde/koala/KIntValidator.java b/kdejava/koala/org/kde/koala/KIntValidator.java new file mode 100644 index 00000000..6c883490 --- /dev/null +++ b/kdejava/koala/org/kde/koala/KIntValidator.java @@ -0,0 +1,103 @@ +//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 + + @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(); +} -- cgit v1.2.3