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
97
98
99
100
101
102
103
|
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;
import org.kde.qt.Qt;
import org.kde.qt.QtSupport;
import org.kde.qt.QWidget;
import org.kde.qt.QValidator;
/**
QValidator for integers.
This can be used by QLineEdit or subclass to provide validated
text entry. Can be provided with a base value (default is 10), to allow
the proper entry of hexadecimal, octal, or any other base numeric data.
@author Glen Parker <glenebob@nwlink.com>
@version 0.0.1
@short QValidator for integers.
*/
public class KIntValidator extends QValidator {
protected KIntValidator(Class dummy){super((Class) null);}
/**
Constuctor. Also sets the base value.
@short Constuctor.
*/
public KIntValidator(QWidget parent, int base, String name) {
super((Class) null);
newKIntValidator(parent,base,name);
}
private native void newKIntValidator(QWidget parent, int base, String name);
public KIntValidator(QWidget parent, int base) {
super((Class) null);
newKIntValidator(parent,base);
}
private native void newKIntValidator(QWidget parent, int base);
public KIntValidator(QWidget parent) {
super((Class) null);
newKIntValidator(parent);
}
private native void newKIntValidator(QWidget parent);
/**
Constructor. Also sets the minimum, maximum, and numeric base values.
@short Constructor.
*/
public KIntValidator(int bottom, int top, QWidget parent, int base, String name) {
super((Class) null);
newKIntValidator(bottom,top,parent,base,name);
}
private native void newKIntValidator(int bottom, int top, QWidget parent, int base, String name);
public KIntValidator(int bottom, int top, QWidget parent, int base) {
super((Class) null);
newKIntValidator(bottom,top,parent,base);
}
private native void newKIntValidator(int bottom, int top, QWidget parent, int base);
public KIntValidator(int bottom, int top, QWidget parent) {
super((Class) null);
newKIntValidator(bottom,top,parent);
}
private native void newKIntValidator(int bottom, int top, QWidget parent);
/**
Validates the text, and return the result. Does not modify the parameters.
@short Validates the text, and return the result.
*/
public native int validate(StringBuffer arg1, int[] arg2);
/**
Fixes the text if possible, providing a valid string. The parameter may be modified.
@short Fixes the text if possible, providing a valid string.
*/
public native void fixup(StringBuffer arg1);
/**
Sets the minimum and maximum values allowed.
@short Sets the minimum and maximum values allowed.
*/
public native void setRange(int bottom, int top);
/**
Sets the numeric base value.
@short Sets the numeric base value.
*/
public native void setBase(int base);
/**
Returns the current minimum value allowed.
@short Returns the current minimum value allowed.
*/
public native int bottom();
/**
Returns the current maximum value allowed.
@short Returns the current maximum value allowed.
*/
public native int top();
/**
Returns the current numeric base.
@short Returns the current numeric base.
*/
public native int base();
/** 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();
}
|