org.kde.koala

Class KFloatValidator

public class KFloatValidator extends 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.

Version: 0.0.1

Author: Glen Parker

UNKNOWN: \brief QValidator for floating point entry (Obsolete)

Constructor Summary
protected KFloatValidator(Class dummy)
KFloatValidator(QWidget parent, String name)
Constructor.
KFloatValidator(QWidget parent)
KFloatValidator(double bottom, double top, QWidget parent, String name)
Constructor.
KFloatValidator(double bottom, double top, QWidget parent)
KFloatValidator(double bottom, double top, boolean localeAware, QWidget parent, String name)
Constructor.
KFloatValidator(double bottom, double top, boolean localeAware, QWidget parent)
Method Summary
booleanacceptLocalizedNumbers()
Returns true if the validator is locale aware.
doublebottom()
Returns the current minimum value allowed.
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
voidfixup(StringBuffer arg1)
Fixes the text if possible, providing a valid string.
booleanisDisposed()
Has the wrapped C++ instance been deleted?
voidsetAcceptLocalizedNumbers(boolean b)
Sets the validator to be locale aware if is true.
voidsetRange(double bottom, double top)
Sets the minimum and maximum value allowed.
doubletop()
Returns the current maximum value allowed.
intvalidate(StringBuffer arg1, int[] arg2)
Validates the text, and return the result.

Constructor Detail

KFloatValidator

protected KFloatValidator(Class dummy)

KFloatValidator

public KFloatValidator(QWidget parent, String name)
Constructor.

UNKNOWN: Constructor.

KFloatValidator

public KFloatValidator(QWidget parent)

KFloatValidator

public KFloatValidator(double bottom, double top, QWidget parent, String name)
Constructor. Also sets the minimum and maximum values.

UNKNOWN: Constructor.

KFloatValidator

public KFloatValidator(double bottom, double top, QWidget parent)

KFloatValidator

public KFloatValidator(double bottom, double top, boolean localeAware, QWidget parent, String name)
Constructor. Sets the validator to be locale aware if localeAware is true.

UNKNOWN: Constructor.

KFloatValidator

public KFloatValidator(double bottom, double top, boolean localeAware, QWidget parent)

Method Detail

acceptLocalizedNumbers

public boolean acceptLocalizedNumbers()
Returns true if the validator is locale aware.

See Also: #

UNKNOWN: Returns true if the validator is locale aware.

bottom

public double bottom()
Returns the current minimum value allowed.

UNKNOWN: Returns the current minimum value allowed.

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

fixup

public void fixup(StringBuffer arg1)
Fixes the text if possible, providing a valid string. The parameter may be modified.

UNKNOWN: Fixes the text if possible, providing a valid string.

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

setAcceptLocalizedNumbers

public void setAcceptLocalizedNumbers(boolean b)
Sets the validator to be locale aware if is true. In this case, the character KLocale.decimalSymbol() from the global locale is recognized as decimal separator.

UNKNOWN: Sets the validator to be locale aware if is true.

setRange

public void setRange(double bottom, double top)
Sets the minimum and maximum value allowed.

UNKNOWN: Sets the minimum and maximum value allowed.

top

public double top()
Returns the current maximum value allowed.

UNKNOWN: Returns the current maximum value allowed.

validate

public int validate(StringBuffer arg1, int[] arg2)
Validates the text, and return the result. Does not modify the parameters.

UNKNOWN: Validates the text, and return the result.