summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/org/trinitydesktop/koala/KPasswordEdit.java
blob: 0390b5c65d68768dcc9de96089d3f2cd352de3f1 (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.trinitydesktop.koala;

import org.trinitydesktop.qt.Qt;
import org.trinitydesktop.qt.TQMetaObject;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQFocusEvent;
import org.trinitydesktop.qt.TQKeyEvent;
import org.trinitydesktop.qt.TQEvent;
import org.trinitydesktop.qt.TQWidget;
import org.trinitydesktop.qt.TQLineEdit;

/**

 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 TQLineEdit  {
	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 TQMetaObject 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(TQWidget parent, String name) {
		super((Class) null);
		newKPasswordEdit(parent,name);
	}
	private native void newKPasswordEdit(TQWidget parent, String name);
	public KPasswordEdit(TQWidget parent) {
		super((Class) null);
		newKPasswordEdit(parent);
	}
	private native void newKPasswordEdit(TQWidget 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 TQLineEdit.EchoMode.
				@short    Constructs a password input widget using echoMode as "echo mode".
	*/
	public KPasswordEdit(int echoMode, TQWidget parent, String name) {
		super((Class) null);
		newKPasswordEdit(echoMode,parent,name);
	}
	private native void newKPasswordEdit(int echoMode, TQWidget 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(TQKeyEvent arg1);
	protected native void focusInEvent(TQFocusEvent e);
	public native boolean event(TQEvent 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();
}