io.qt.pdf.QPdfSearchModel Maven / Gradle / Ivy
Show all versions of qtjambi-pdf Show documentation
package io.qt.pdf;
import io.qt.*;
/**
* Searches for a string in a PDF document and holds the results
* Java wrapper for Qt class QPdfSearchModel
*/
public class QPdfSearchModel extends io.qt.core.QAbstractListModel
{
static {
QtJambi_LibraryUtilities.initialize();
}
@QtPropertyMember(enabled=false)
private Object __rcDocument = null;
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QPdfSearchModel.class);
/**
* Java wrapper for Qt enum QPdfSearchModel::Role
*/
public enum Role implements QtEnumerator {
/**
* Representing QPdfSearchModel:: Role:: Page
*/
Page(256),
/**
* Representing QPdfSearchModel:: Role:: IndexOnPage
*/
IndexOnPage(257),
/**
* Representing QPdfSearchModel:: Role:: Location
*/
Location(258),
/**
* Representing QPdfSearchModel:: Role:: ContextBefore
*/
ContextBefore(259),
/**
* Representing QPdfSearchModel:: Role:: ContextAfter
*/
ContextAfter(260),
/**
* Representing QPdfSearchModel:: Role:: NRoles
*/
NRoles(261);
static {
QtJambi_LibraryUtilities.initialize();
}
private Role(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 @NonNull Role resolve(int value) {
switch (value) {
case 256: return Page;
case 257: return IndexOnPage;
case 258: return Location;
case 259: return ContextBefore;
case 260: return ContextAfter;
case 261: return NRoles;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QPdfSearchModel:: documentChanged()
*/
@QtPropertyNotify(name="document")
public final @NonNull Signal0 documentChanged = new Signal0();
/**
* See QPdfSearchModel:: searchStringChanged()
*/
@QtPropertyNotify(name="searchString")
public final @NonNull Signal0 searchStringChanged = new Signal0();
/**
* See QPdfSearchModel:: QPdfSearchModel()
*/
public QPdfSearchModel(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QPdfSearchModel instance);
/**
* See QPdfSearchModel:: QPdfSearchModel(QObject*)
*/
public QPdfSearchModel(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QPdfSearchModel instance, io.qt.core.QObject parent);
/**
* See QPdfSearchModel:: document()const
*/
@QtPropertyReader(name="document")
@QtUninvokable
public final io.qt.pdf.@Nullable QPdfDocument document(){
return document_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.pdf.QPdfDocument document_native_constfct(long __this__nativeId);
/**
* See QPdfSearchModel:: resultAtIndex(int)const
*/
@QtUninvokable
public final io.qt.pdf.@NonNull QPdfLink resultAtIndex(int index){
return resultAtIndex_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native io.qt.pdf.QPdfLink resultAtIndex_native_int_constfct(long __this__nativeId, int index);
/**
* See QPdfSearchModel:: resultsOnPage(int)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QList resultsOnPage(int page){
return resultsOnPage_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), page);
}
@QtUninvokable
private native io.qt.core.QList resultsOnPage_native_int_constfct(long __this__nativeId, int page);
/**
* See QPdfSearchModel:: searchString()const
*/
@QtPropertyReader(name="searchString")
@QtUninvokable
public final java.lang.@NonNull String searchString(){
return searchString_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String searchString_native_constfct(long __this__nativeId);
/**
* See QPdfSearchModel:: setDocument(QPdfDocument*)
*/
@QtPropertyWriter(name="document")
public final void setDocument(io.qt.pdf.@Nullable QPdfDocument document){
setDocument_native_QPdfDocument_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(document));
__rcDocument = document;
}
private native void setDocument_native_QPdfDocument_ptr(long __this__nativeId, long document);
/**
* See QPdfSearchModel:: setSearchString(QString)
*/
@QtPropertyWriter(name="searchString")
public final void setSearchString(java.lang.@NonNull String searchString){
setSearchString_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), searchString);
}
private native void setSearchString_native_cref_QString(long __this__nativeId, java.lang.String searchString);
/**
* See QPdfSearchModel:: updatePage(int)
*/
@QtUninvokable
protected final void updatePage(int page){
updatePage_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), page);
}
@QtUninvokable
private native void updatePage_native_int(long __this__nativeId, int page);
/**
* See QAbstractItemModel:: data(QModelIndex, int)const
*/
@QtUninvokable
@Override
public java.lang.Object data(io.qt.core.@NonNull QModelIndex index, int role){
return data_native_cref_QModelIndex_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index), role);
}
@QtUninvokable
private native java.lang.Object data_native_cref_QModelIndex_int_constfct(long __this__nativeId, long index, int role);
/**
* See QAbstractItemModel:: roleNames()const
*/
@QtUninvokable
@Override
public java.util.@NonNull Map roleNames(){
return roleNames_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.util.Map roleNames_native_constfct(long __this__nativeId);
/**
* See QAbstractItemModel:: rowCount(QModelIndex)const
*/
@QtUninvokable
@Override
public int rowCount(io.qt.core.@NonNull QModelIndex parent){
return rowCount_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(parent));
}
@QtUninvokable
private native int rowCount_native_cref_QModelIndex_constfct(long __this__nativeId, long parent);
/**
* See QObject:: timerEvent(QTimerEvent*)
*/
@QtUninvokable
@Override
protected void timerEvent(io.qt.core.@Nullable QTimerEvent event){
timerEvent_native_QTimerEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@QtUninvokable
private native void timerEvent_native_QTimerEvent_ptr(long __this__nativeId, long event);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QPdfSearchModel(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QPdfSearchModel(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QPdfSearchModel instance, QDeclarativeConstructor constructor);
/**
* @hidden
* Kotlin property getter. In Java use {@link #document()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.pdf.@Nullable QPdfDocument getDocument() {
return document();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #searchString()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final java.lang.@NonNull String getSearchString() {
return searchString();
}
}