org.kde.koala

Class KIntValidator

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

Version: 0.0.1

Author: Glen Parker

UNKNOWN: QValidator for integers.

Constructor Summary
protected KIntValidator(Class dummy)
KIntValidator(QWidget parent, int base, String name)
Constuctor.
KIntValidator(QWidget parent, int base)
KIntValidator(QWidget parent)
KIntValidator(int bottom, int top, QWidget parent, int base, String name)
Constructor.
KIntValidator(int bottom, int top, QWidget parent, int base)
KIntValidator(int bottom, int top, QWidget parent)
Method Summary
intbase()
Returns the current numeric base.
intbottom()
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?
voidsetBase(int base)
Sets the numeric base value.
voidsetRange(int bottom, int top)
Sets the minimum and maximum values allowed.
inttop()
Returns the current maximum value allowed.
intvalidate(StringBuffer arg1, int[] arg2)
Validates the text, and return the result.

Constructor Detail

KIntValidator

protected KIntValidator(Class dummy)

KIntValidator

public KIntValidator(QWidget parent, int base, String name)
Constuctor. Also sets the base value.

UNKNOWN: Constuctor.

KIntValidator

public KIntValidator(QWidget parent, int base)

KIntValidator

public KIntValidator(QWidget parent)

KIntValidator

public KIntValidator(int bottom, int top, QWidget parent, int base, String name)
Constructor. Also sets the minimum, maximum, and numeric base values.

UNKNOWN: Constructor.

KIntValidator

public KIntValidator(int bottom, int top, QWidget parent, int base)

KIntValidator

public KIntValidator(int bottom, int top, QWidget parent)

Method Detail

base

public int base()
Returns the current numeric base.

UNKNOWN: Returns the current numeric base.

bottom

public int 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?

setBase

public void setBase(int base)
Sets the numeric base value.

UNKNOWN: Sets the numeric base value.

setRange

public void setRange(int bottom, int top)
Sets the minimum and maximum values allowed.

UNKNOWN: Sets the minimum and maximum values allowed.

top

public int 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.