org.kde.koala

Class KRestrictedLine

public class KRestrictedLine extends KLineEdit

The KRestrictedLine widget is a variant of QLineEdit which accepts only a restricted set of characters as input. All other characters will be discarded and the signal invalidChar() will be emitted for each of them. Valid characters can be passed as a String to the constructor or set afterwards via setValidChars(). The default key bindings of QLineEdit are still in effect. See KRestrictedLineSignals for signals emitted by KRestrictedLine

Author: Michael Wiedmann

UNKNOWN: A line editor for restricted character sets.

Constructor Summary
protected KRestrictedLine(Class dummy)
KRestrictedLine(QWidget parent, String name, String valid)
Constructor: This contructor takes three - optional - arguments.
KRestrictedLine(QWidget parent, String name)
KRestrictedLine(QWidget parent)
KRestrictedLine()
Method Summary
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?
protected voidkeyPressEvent(QKeyEvent e)
QMetaObjectmetaObject()
voidsetValidChars(String valid)
All characters in the string valid are treated as acceptable characters.
StringvalidChars()

Constructor Detail

KRestrictedLine

protected KRestrictedLine(Class dummy)

KRestrictedLine

public KRestrictedLine(QWidget parent, String name, String valid)
Constructor: This contructor takes three - optional - arguments. The first two parameters are simply passed on to QLineEdit.

Parameters: parent pointer to the parent widget name pointer to the name of this widget valid pointer to set of valid characters

UNKNOWN: Constructor: This contructor takes three - optional - arguments.

KRestrictedLine

public KRestrictedLine(QWidget parent, String name)

KRestrictedLine

public KRestrictedLine(QWidget parent)

KRestrictedLine

public KRestrictedLine()

Method Detail

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?

keyPressEvent

protected void keyPressEvent(QKeyEvent e)

metaObject

public QMetaObject metaObject()

setValidChars

public void setValidChars(String valid)
All characters in the string valid are treated as acceptable characters.

UNKNOWN: All characters in the string valid are treated as acceptable characters.

validChars

public String validChars()

Returns: the string of acceptable characters.

UNKNOWN: