io.qt.help.QHelpSearchQuery Maven / Gradle / Ivy
package io.qt.help;
/**
* Contains the field name and the associated search term
* Java wrapper for Qt class QHelpSearchQuery
*/
public class QHelpSearchQuery extends io.qt.QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QHelpSearchQuery::FieldName
*/
public enum FieldName implements io.qt.QtEnumerator {
DEFAULT(0),
FUZZY(1),
WITHOUT(2),
PHRASE(3),
ALL(4),
ATLEAST(5);
private FieldName(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static FieldName resolve(int value) {
switch (value) {
case 0: return DEFAULT;
case 1: return FUZZY;
case 2: return WITHOUT;
case 3: return PHRASE;
case 4: return ALL;
case 5: return ATLEAST;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QHelpSearchQuery::QHelpSearchQuery()
*/
public QHelpSearchQuery(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QHelpSearchQuery instance);
/**
* See QHelpSearchQuery::QHelpSearchQuery(QHelpSearchQuery::FieldName,QStringList)
*/
public QHelpSearchQuery(io.qt.help.QHelpSearchQuery.FieldName field, java.util.Collection wordList_){
super((QPrivateConstructor)null);
initialize_native(this, field, wordList_);
}
private native static void initialize_native(QHelpSearchQuery instance, io.qt.help.QHelpSearchQuery.FieldName field, java.util.Collection wordList_);
@io.qt.QtUninvokable
public final void setFieldName(io.qt.help.QHelpSearchQuery.FieldName fieldName){
setFieldName_native_cref_QHelpSearchQuery_FieldName(QtJambi_LibraryUtilities.internal.nativeId(this), fieldName.value());
}
@io.qt.QtUninvokable
private native void setFieldName_native_cref_QHelpSearchQuery_FieldName(long __this__nativeId, int fieldName);
@io.qt.QtUninvokable
public final io.qt.help.QHelpSearchQuery.FieldName fieldName(){
return io.qt.help.QHelpSearchQuery.FieldName.resolve(fieldName_native(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int fieldName_native(long __this__nativeId);
@io.qt.QtUninvokable
public final void setWordList(java.util.Collection wordList){
setWordList_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), wordList);
}
@io.qt.QtUninvokable
private native void setWordList_native_cref_QStringList(long __this__nativeId, java.util.Collection wordList);
@io.qt.QtUninvokable
public final io.qt.core.QList wordList(){
return wordList_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QList wordList_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QHelpSearchQuery(QPrivateConstructor p) { super(p); }
@Override
public QHelpSearchQuery clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native QHelpSearchQuery clone_native(long __this_nativeId);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy