org.kde.koala

Class KDoubleValidator

public class KDoubleValidator extends QDoubleValidator

KDoubleValidator extends QDoubleValidator to be locale-aware. That means that - subject to not being disabled - KLocale.decimalSymbol(), KLocale.thousandsSeparator() and KLocale.positiveSign() and KLocale.negativeSign() are respected.

Author: Marc Mutz

See Also: KIntValidator

UNKNOWN: A locale-aware QDoubleValidator.

Constructor Summary
protected KDoubleValidator(Class dummy)
KDoubleValidator(QObject parent, String name)
Constuct a locale-aware KDoubleValidator with default range (whatever QDoubleValidator uses for that) and parent parent @short Constuct a locale-aware KDoubleValidator with default range (whatever QDoubleValidator uses for that) and parent parent
KDoubleValidator(QObject parent)
KDoubleValidator(double bottom, double top, int decimals, QObject parent, String name)
Constuct a locale-aware KDoubleValidator for range [bottom,top] and a precision of decimals decimals after the decimal point.
KDoubleValidator(double bottom, double top, int decimals, QObject parent)
Method Summary
booleanacceptLocalizedNumbers()
StringclassName()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
booleanisDisposed()
Has the wrapped C++ instance been deleted?
QMetaObjectmetaObject()
voidsetAcceptLocalizedNumbers(boolean accept)
Sets whether to accept localized numbers (default: true) @short Sets whether to accept localized numbers (default: true)
intvalidate(StringBuffer input, int[] pos)
Overloaded for internal reasons.

Constructor Detail

KDoubleValidator

protected KDoubleValidator(Class dummy)

KDoubleValidator

public KDoubleValidator(QObject parent, String name)
Constuct a locale-aware KDoubleValidator with default range (whatever QDoubleValidator uses for that) and parent parent @short Constuct a locale-aware KDoubleValidator with default range (whatever QDoubleValidator uses for that) and parent parent

KDoubleValidator

public KDoubleValidator(QObject parent)

KDoubleValidator

public KDoubleValidator(double bottom, double top, int decimals, QObject parent, String name)
Constuct a locale-aware KDoubleValidator for range [bottom,top] and a precision of decimals decimals after the decimal point. @short Constuct a locale-aware KDoubleValidator for range [bottom,top] and a precision of decimals decimals after the decimal point.

KDoubleValidator

public KDoubleValidator(double bottom, double top, int decimals, QObject parent)

Method Detail

acceptLocalizedNumbers

public boolean acceptLocalizedNumbers()

Returns: whether localized numbers are accepted (default: true) @short @return whether localized numbers are accepted (default: true)

className

public String className()

dispose

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

finalize

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

isDisposed

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

metaObject

public QMetaObject metaObject()

setAcceptLocalizedNumbers

public void setAcceptLocalizedNumbers(boolean accept)
Sets whether to accept localized numbers (default: true) @short Sets whether to accept localized numbers (default: true)

validate

public int validate(StringBuffer input, int[] pos)
Overloaded for internal reasons. The API is not affected. @short Overloaded for internal reasons.