io.qt.gui.QRegularExpressionValidator Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Used to check a string against a regular expression
* Java wrapper for Qt class QRegularExpressionValidator
*/
public class QRegularExpressionValidator 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(QRegularExpressionValidator.class);
/**
* See QRegularExpressionValidator:: regularExpressionChanged(QRegularExpression)
*/
@QtPropertyNotify(name="regularExpression")
public final @NonNull Signal1 regularExpressionChanged = new Signal1<>();
/**
* See QRegularExpressionValidator:: QRegularExpressionValidator(QObject*)
*/
public QRegularExpressionValidator(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QRegularExpressionValidator instance, io.qt.core.QObject parent);
/**
* See QRegularExpressionValidator:: QRegularExpressionValidator(QRegularExpression, QObject*)
*/
public QRegularExpressionValidator(io.qt.core.@NonNull QRegularExpression re, io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, re, parent);
}
private native static void initialize_native(QRegularExpressionValidator instance, io.qt.core.QRegularExpression re, io.qt.core.QObject parent);
/**
* See QRegularExpressionValidator:: regularExpression()const
*/
@QtPropertyReader(name="regularExpression")
@QtUninvokable
public final io.qt.core.@NonNull QRegularExpression regularExpression(){
return regularExpression_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QRegularExpression regularExpression_native_constfct(long __this__nativeId);
/**
* See QRegularExpressionValidator:: setRegularExpression(QRegularExpression)
*/
@QtPropertyWriter(name="regularExpression")
public final void setRegularExpression(io.qt.core.@NonNull QRegularExpression re){
setRegularExpression_native_cref_QRegularExpression(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(re));
}
private native void setRegularExpression_native_cref_QRegularExpression(long __this__nativeId, long re);
/**
* See QValidator:: validate(QString&, int&)const
*/
@QtUninvokable
@Override
public io.qt.gui.QValidator.@NonNull State validate(io.qt.gui.QValidator.QValidationData input){
return io.qt.gui.QValidator.State.resolve(validate_native_ref_QString_ref_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), input));
}
@QtUninvokable
private native int validate_native_ref_QString_ref_int_constfct(long __this__nativeId, io.qt.gui.QValidator.QValidationData input);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QRegularExpressionValidator(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QRegularExpressionValidator(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QRegularExpressionValidator instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QRegularExpressionValidator(io.qt.core.QObject)}
* with parent = null
.
*/
public QRegularExpressionValidator() {
this((io.qt.core.QObject)null);
}
/**
* Overloaded constructor for {@link #QRegularExpressionValidator(io.qt.core.QRegularExpression, io.qt.core.QObject)}
* with parent = null
.
*/
public QRegularExpressionValidator(io.qt.core.@NonNull QRegularExpression re) {
this(re, (io.qt.core.QObject)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #regularExpression()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QRegularExpression getRegularExpression() {
return regularExpression();
}
}