diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 90825e2392b2d70e43c7a25b8a3752299a933894 (patch) | |
tree | e33aa27f02b74604afbfd0ea4f1cfca8833d882a /kdejava/koala/org/kde/koala/KPasswordEdit.java | |
download | tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.tar.gz tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdejava/koala/org/kde/koala/KPasswordEdit.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/KPasswordEdit.java | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KPasswordEdit.java b/kdejava/koala/org/kde/koala/KPasswordEdit.java new file mode 100644 index 00000000..f829dd7d --- /dev/null +++ b/kdejava/koala/org/kde/koala/KPasswordEdit.java @@ -0,0 +1,96 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QMetaObject; +import org.kde.qt.QtSupport; +import org.kde.qt.QFocusEvent; +import org.kde.qt.QKeyEvent; +import org.kde.qt.QEvent; +import org.kde.qt.QWidget; +import org.kde.qt.QLineEdit; + +/** + + The widget uses the user's global "echo mode" setting. + @author Geert Jansen <geertj@kde.org> + + @short A safe password input widget. + +*/ +public class KPasswordEdit extends QLineEdit { + protected KPasswordEdit(Class dummy){super((Class) null);} + public static final int OneStar = 0; + public static final int ThreeStars = 1; + public static final int NoEcho = 2; + + public native QMetaObject metaObject(); + public native String className(); + /** + Constructs a password input widget using the user's global "echo mode" setting. + @short Constructs a password input widget using the user's global "echo mode" setting. + */ + public KPasswordEdit(QWidget parent, String name) { + super((Class) null); + newKPasswordEdit(parent,name); + } + private native void newKPasswordEdit(QWidget parent, String name); + public KPasswordEdit(QWidget parent) { + super((Class) null); + newKPasswordEdit(parent); + } + private native void newKPasswordEdit(QWidget parent); + public KPasswordEdit() { + super((Class) null); + newKPasswordEdit(); + } + private native void newKPasswordEdit(); + /** + Constructs a password input widget using echoMode as "echo mode". + Note that echoMode is a QLineEdit.EchoMode. + @short Constructs a password input widget using echoMode as "echo mode". + */ + public KPasswordEdit(int echoMode, QWidget parent, String name) { + super((Class) null); + newKPasswordEdit(echoMode,parent,name); + } + private native void newKPasswordEdit(int echoMode, QWidget parent, String name); + /** + Returns the password. The memory is freed in the destructor + so you should make a copy. + @short Returns the password. + */ + public native String password(); + /** + Erases the current password. + @short Erases the current password. + */ + public native void erase(); + /** + Set the current maximum password length. If a password longer than the limit + specified is currently entered, it is truncated accordingly. + The length is capped to lie between 0 and 199 inclusive. + @param newLength : The new maximum password length + @short Set the current maximum password length. + */ + public native void setMaxPasswordLength(int newLength); + /** + Returns the current maximum password length. + @short Returns the current maximum password length. + */ + public native int maxPasswordLength(); + /** + Reimplementation + @short Reimplementation + */ + public native void insert(String arg1); + protected native void keyPressEvent(QKeyEvent arg1); + protected native void focusInEvent(QFocusEvent e); + public native boolean event(QEvent e); + /** 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(); +} |