io.qt.gui.QIntValidator Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Validator that ensures a string contains a valid integer within a specified range
* Java wrapper for Qt class QIntValidator
*/
public class QIntValidator extends io.qt.gui.QValidator
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QIntValidator.class);
/**
* See QIntValidator:: bottomChanged(int)
*/
@QtPropertyNotify(name="bottom")
public final @NonNull Signal1 bottomChanged = new Signal1<>();
/**
* See QIntValidator:: topChanged(int)
*/
@QtPropertyNotify(name="top")
public final @NonNull Signal1 topChanged = new Signal1<>();
/**
* See QIntValidator:: QIntValidator(QObject*)
*/
public QIntValidator(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QIntValidator instance, io.qt.core.QObject parent);
/**
* See QIntValidator:: QIntValidator(int, int, QObject*)
*/
public QIntValidator(int bottom, int top, io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, bottom, top, parent);
}
private native static void initialize_native(QIntValidator instance, int bottom, int top, io.qt.core.QObject parent);
/**
* See QIntValidator:: bottom()const
*/
@QtPropertyReader(name="bottom")
@QtUninvokable
public final int bottom(){
return bottom_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int bottom_native_constfct(long __this__nativeId);
/**
* See QIntValidator:: setBottom(int)
*/
@QtPropertyWriter(name="bottom")
@QtUninvokable
public final void setBottom(int arg__1){
setBottom_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native void setBottom_native_int(long __this__nativeId, int arg__1);
/**
* See QIntValidator:: setRange(int, int)
*/
@QtUninvokable
public final void setRange(int bottom, int top){
setRange_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), bottom, top);
}
@QtUninvokable
private native void setRange_native_int_int(long __this__nativeId, int bottom, int top);
/**
* See QIntValidator:: setTop(int)
*/
@QtPropertyWriter(name="top")
@QtUninvokable
public final void setTop(int arg__1){
setTop_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native void setTop_native_int(long __this__nativeId, int arg__1);
/**
*
*/
@QtPropertyReader(name="top")
@QtUninvokable
public final int top(){
return top_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int top_native_constfct(long __this__nativeId);
/**
* See QValidator:: fixup(QString&)const
*/
@QtUninvokable
@Override
public void fixup(io.qt.core.@StrictNonNull QString input){
java.util.Objects.requireNonNull(input, "Argument 'input': null not expected.");
fixup_native_ref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), input);
}
@QtUninvokable
private native void fixup_native_ref_QString_constfct(long __this__nativeId, io.qt.core.QString input);
/**
* See QValidator:: validate(QString&, int&)const
*/
@QtUninvokable
@Override
public io.qt.gui.QValidator.@NonNull State validate(io.qt.gui.QValidator.QValidationData arg__1){
return io.qt.gui.QValidator.State.resolve(validate_native_ref_QString_ref_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1));
}
@QtUninvokable
private native int validate_native_ref_QString_ref_int_constfct(long __this__nativeId, io.qt.gui.QValidator.QValidationData arg__1);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QIntValidator(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QIntValidator(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QIntValidator instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QIntValidator(io.qt.core.QObject)}
* with parent = null
.
*/
public QIntValidator() {
this((io.qt.core.QObject)null);
}
/**
* Overloaded constructor for {@link #QIntValidator(int, int, io.qt.core.QObject)}
* with parent = null
.
*/
public QIntValidator(int bottom, int top) {
this(bottom, top, (io.qt.core.QObject)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #bottom()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getBottom() {
return bottom();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #top()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getTop() {
return top();
}
}