All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.pdf.QPdfBookmarkModel Maven / Gradle / Ivy

There is a newer version: 6.7.2
Show newest version
package io.qt.pdf;

import io.qt.*;


/**
 * 

Holds a tree of of links (anchors) within a PDF document, such as the table of contents

*

Java wrapper for Qt class QPdfBookmarkModel

*/ public class QPdfBookmarkModel extends io.qt.core.QAbstractItemModel { 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(QPdfBookmarkModel.class); /** *

Java wrapper for Qt enum QPdfBookmarkModel::Role

*/ public enum Role implements QtEnumerator { /** *

Representing QPdfBookmarkModel::Role::Title

*/ Title(256), /** *

Representing QPdfBookmarkModel::Role::Level

*/ Level(257), /** *

Representing QPdfBookmarkModel::Role::Page

*/ Page(258), /** *

Representing QPdfBookmarkModel::Role::Location

*/ Location(259), /** *

Representing QPdfBookmarkModel::Role::Zoom

*/ Zoom(260), /** *

Representing QPdfBookmarkModel::Role::NRoles

*/ NRoles(261); static { QtJambi_LibraryUtilities.initialize(); } private Role(int value) { this.value = value; } /** * {@inheritDoc} */ @Override 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 Title; case 257: return Level; case 258: return Page; case 259: return Location; case 260: return Zoom; case 261: return NRoles; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QPdfBookmarkModel::documentChanged(QPdfDocument*)

*/ @QtPropertyNotify(name="document") public final @NonNull Signal1 documentChanged = new Signal1<>(); /** *

See QPdfBookmarkModel::QPdfBookmarkModel()

*/ public QPdfBookmarkModel(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QPdfBookmarkModel instance); /** *

See QPdfBookmarkModel::QPdfBookmarkModel(QObject*)

*/ public QPdfBookmarkModel(io.qt.core.@Nullable QObject parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QPdfBookmarkModel instance, io.qt.core.QObject parent); /** *

See QPdfBookmarkModel::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 QPdfBookmarkModel::setDocument(QPdfDocument*)

*/ @QtPropertyWriter(name="document") @QtUninvokable 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; } @QtUninvokable private native void setDocument_native_QPdfDocument_ptr(long __this__nativeId, long document); /** *

See QAbstractItemModel::columnCount(QModelIndex)const

*/ @QtUninvokable @Override public int columnCount(io.qt.core.@NonNull QModelIndex parent){ return columnCount_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(parent)); } @QtUninvokable private native int columnCount_native_cref_QModelIndex_constfct(long __this__nativeId, long parent); /** *

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::index(int,int,QModelIndex)const

*/ @QtUninvokable @Override public io.qt.core.@NonNull QModelIndex index(int row, int column, io.qt.core.@NonNull QModelIndex parent){ return index_native_int_int_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), row, column, QtJambi_LibraryUtilities.internal.checkedNativeId(parent)); } @QtUninvokable private native io.qt.core.QModelIndex index_native_int_int_cref_QModelIndex_constfct(long __this__nativeId, int row, int column, long parent); /** *

See QAbstractItemModel::parent(QModelIndex)const

*/ @QtUninvokable @Override public io.qt.core.@NonNull QModelIndex parent(io.qt.core.@NonNull QModelIndex index){ return parent_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index)); } @QtUninvokable private native io.qt.core.QModelIndex parent_native_cref_QModelIndex_constfct(long __this__nativeId, long index); /** *

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); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QPdfBookmarkModel(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QPdfBookmarkModel(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QPdfBookmarkModel 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(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy