diff options
Diffstat (limited to 'kdejava/koala/org/kde/koala/KFloatValidator.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/KFloatValidator.java | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KFloatValidator.java b/kdejava/koala/org/kde/koala/KFloatValidator.java new file mode 100644 index 00000000..029f9eff --- /dev/null +++ b/kdejava/koala/org/kde/koala/KFloatValidator.java @@ -0,0 +1,110 @@ +//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; + +/** + + \brief QValidator for floating point entry (Obsolete) + Extends the QValidator class to properly validate double numeric data. + This can be used by QLineEdit or subclass to provide validated + text entry. + @author Glen Parker <glenebob@nwlink.com> + + @version 0.0.1 + + @short \brief QValidator for floating point entry (Obsolete) + +*/ +public class KFloatValidator extends QValidator { + protected KFloatValidator(Class dummy){super((Class) null);} + /** + Constructor. + @short Constructor. + */ + public KFloatValidator(QWidget parent, String name) { + super((Class) null); + newKFloatValidator(parent,name); + } + private native void newKFloatValidator(QWidget parent, String name); + public KFloatValidator(QWidget parent) { + super((Class) null); + newKFloatValidator(parent); + } + private native void newKFloatValidator(QWidget parent); + /** + Constructor. Also sets the minimum and maximum values. + @short Constructor. + */ + public KFloatValidator(double bottom, double top, QWidget parent, String name) { + super((Class) null); + newKFloatValidator(bottom,top,parent,name); + } + private native void newKFloatValidator(double bottom, double top, QWidget parent, String name); + public KFloatValidator(double bottom, double top, QWidget parent) { + super((Class) null); + newKFloatValidator(bottom,top,parent); + } + private native void newKFloatValidator(double bottom, double top, QWidget parent); + /** + Constructor. Sets the validator to be locale aware if <code>localeAware</code> is true. + @short Constructor. + */ + public KFloatValidator(double bottom, double top, boolean localeAware, QWidget parent, String name) { + super((Class) null); + newKFloatValidator(bottom,top,localeAware,parent,name); + } + private native void newKFloatValidator(double bottom, double top, boolean localeAware, QWidget parent, String name); + public KFloatValidator(double bottom, double top, boolean localeAware, QWidget parent) { + super((Class) null); + newKFloatValidator(bottom,top,localeAware,parent); + } + private native void newKFloatValidator(double bottom, double top, boolean localeAware, 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 value allowed. + @short Sets the minimum and maximum value allowed. + */ + public native void setRange(double bottom, double top); + /** + Returns the current minimum value allowed. + @short Returns the current minimum value allowed. + */ + public native double bottom(); + /** + Returns the current maximum value allowed. + @short Returns the current maximum value allowed. + */ + public native double top(); + /** + Sets the validator to be locale aware if <code>is</code> true. In this case, the + character KLocale.decimalSymbol() from the global locale is recognized + as decimal separator. + @short Sets the validator to be locale aware if <code>is</code> true. + */ + public native void setAcceptLocalizedNumbers(boolean b); + /** + Returns true if the validator is locale aware. + @short Returns true if the validator is locale aware. + @see #setAcceptLocalizedNumbers# + */ + public native boolean acceptLocalizedNumbers(); + /** 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(); +} |