summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KPasswordEdit.java
blob: f829dd7db3d946b21fb47dd307a420653849c2d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
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();
}