summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KFloatValidator.java
blob: 521a010c746efccd2af954e4210cf22e21d813be (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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
//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.TQWidget;
import org.kde.qt.TQValidator;

/**

 \brief TQValidator for floating point entry (Obsolete)
  Extends the TQValidator class to properly validate double numeric data.
  This can be used by TQLineEdit or subclass to provide validated
  text entry.
		@author Glen Parker <glenebob@nwlink.com>

		@version 0.0.1

		@short    \brief TQValidator for floating point entry (Obsolete)

*/
public class KFloatValidator extends TQValidator  {
	protected KFloatValidator(Class dummy){super((Class) null);}
	/**	
		 Constructor.
		     		@short    Constructor.
	*/
	public KFloatValidator(TQWidget parent, String name) {
		super((Class) null);
		newKFloatValidator(parent,name);
	}
	private native void newKFloatValidator(TQWidget parent, String name);
	public KFloatValidator(TQWidget parent) {
		super((Class) null);
		newKFloatValidator(parent);
	}
	private native void newKFloatValidator(TQWidget parent);
	/**	
		 Constructor.  Also sets the minimum and maximum values.
		     		@short    Constructor.
	*/
	public KFloatValidator(double bottom, double top, TQWidget parent, String name) {
		super((Class) null);
		newKFloatValidator(bottom,top,parent,name);
	}
	private native void newKFloatValidator(double bottom, double top, TQWidget parent, String name);
	public KFloatValidator(double bottom, double top, TQWidget parent) {
		super((Class) null);
		newKFloatValidator(bottom,top,parent);
	}
	private native void newKFloatValidator(double bottom, double top, TQWidget parent);
	/**	
		 Constructor.  Sets the validator to be locale aware if <code>localeAware</code> is true.
		     		@short    Constructor.
	*/
	public KFloatValidator(double bottom, double top, boolean localeAware, TQWidget parent, String name) {
		super((Class) null);
		newKFloatValidator(bottom,top,localeAware,parent,name);
	}
	private native void newKFloatValidator(double bottom, double top, boolean localeAware, TQWidget parent, String name);
	public KFloatValidator(double bottom, double top, boolean localeAware, TQWidget parent) {
		super((Class) null);
		newKFloatValidator(bottom,top,localeAware,parent);
	}
	private native void newKFloatValidator(double bottom, double top, boolean localeAware, TQWidget 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 value allowed.
		     		@short    Sets the minimum and maximum value allowed.
	*/
	public native void setRange(double bottom, double top);
	/**	
		 Returns the current minimum value allowed.
		     		@short    Returns the current minimum value allowed.
	*/
	public native double bottom();
	/**	
		 Returns the current maximum value allowed.
		     		@short    Returns the current maximum value allowed.
	*/
	public native double top();
	/**	
		 Sets the validator to be locale aware if <code>is</code> true. In this case, the
		 character KLocale.decimalSymbol() from the global locale is recognized
		 as decimal separator.
		     		@short    Sets the validator to be locale aware if <code>is</code> true.
	*/
	public native void setAcceptLocalizedNumbers(boolean b);
	/**	
		 Returns true if the validator is locale aware.
				@short    Returns true if the validator is locale aware.
		@see #setAcceptLocalizedNumbers#
	*/
	public native boolean acceptLocalizedNumbers();
	/** 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();
}