summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KRestrictedLine.java
blob: a7150d6cf36168e10be361fdaa7a0851384cc567 (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
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.TQKeyEvent;
import org.kde.qt.TQWidget;

/**

 The KRestrictedLine widget is a variant of TQLineEdit 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 TQLineEdit are still in effect.
 See {@link KRestrictedLineSignals} for signals emitted by KRestrictedLine
		@author Michael Wiedmann <mw@miwie.in-berlin.de>
 
		@short A line editor for restricted character sets.

*/
public class KRestrictedLine extends KLineEdit  {
	protected KRestrictedLine(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**	
		 Constructor: This contructor takes three - optional - arguments.
		  The first two parameters are simply passed on to TQLineEdit.
			@param parent pointer to the parent widget
			@param name pointer to the name of this widget
			@param valid pointer to set of valid characters
		   		@short    Constructor: This contructor takes three - optional - arguments.
	*/
	public KRestrictedLine(TQWidget parent, String name, String valid) {
		super((Class) null);
		newKRestrictedLine(parent,name,valid);
	}
	private native void newKRestrictedLine(TQWidget parent, String name, String valid);
	public KRestrictedLine(TQWidget parent, String name) {
		super((Class) null);
		newKRestrictedLine(parent,name);
	}
	private native void newKRestrictedLine(TQWidget parent, String name);
	public KRestrictedLine(TQWidget parent) {
		super((Class) null);
		newKRestrictedLine(parent);
	}
	private native void newKRestrictedLine(TQWidget parent);
	public KRestrictedLine() {
		super((Class) null);
		newKRestrictedLine();
	}
	private native void newKRestrictedLine();
	/**	
		 All characters in the string valid are treated as
		 acceptable characters.
		   		@short    All characters in the string valid are treated as  acceptable characters.
	*/
	public native void setValidChars(String valid);
	/**	
				@return the string of acceptable characters.
   
		@short
	*/
	public native String validChars();
	protected native void keyPressEvent(TQKeyEvent 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();
}