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

io.qt.core.QConcatenateTablesProxyModel Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.core;

import io.qt.*;


/**
 * 

Proxies multiple source models, concatenating their rows

*

Java wrapper for Qt class QConcatenateTablesProxyModel

*/ public class QConcatenateTablesProxyModel extends io.qt.core.QAbstractItemModel { @QtPropertyMember(enabled=false) private java.util.Collection __rcSourceModel; /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QConcatenateTablesProxyModel.class); /** *

See QConcatenateTablesProxyModel::QConcatenateTablesProxyModel(QObject*)

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

See QConcatenateTablesProxyModel::addSourceModel(QAbstractItemModel*)

*/ public final void addSourceModel(io.qt.core.@Nullable QAbstractItemModel sourceModel){ addSourceModel_native_QAbstractItemModel_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(sourceModel)); if (sourceModel != null) { if(__rcSourceModel==null) __rcSourceModel = QtJambi_LibraryUtilities.internal.newRCList(); __rcSourceModel.add(sourceModel); } } private native void addSourceModel_native_QAbstractItemModel_ptr(long __this__nativeId, long sourceModel); /** *

See QConcatenateTablesProxyModel::mapFromSource(QModelIndex)const

*/ @QtUninvokable public final io.qt.core.@NonNull QModelIndex mapFromSource(io.qt.core.@NonNull QModelIndex sourceIndex){ return mapFromSource_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(sourceIndex)); } @QtUninvokable private native io.qt.core.QModelIndex mapFromSource_native_cref_QModelIndex_constfct(long __this__nativeId, long sourceIndex); /** *

See QConcatenateTablesProxyModel::mapToSource(QModelIndex)const

*/ @QtUninvokable public final io.qt.core.@NonNull QModelIndex mapToSource(io.qt.core.@NonNull QModelIndex proxyIndex){ return mapToSource_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(proxyIndex)); } @QtUninvokable private native io.qt.core.QModelIndex mapToSource_native_cref_QModelIndex_constfct(long __this__nativeId, long proxyIndex); /** *

See QConcatenateTablesProxyModel::removeSourceModel(QAbstractItemModel*)

*/ public final void removeSourceModel(io.qt.core.@Nullable QAbstractItemModel sourceModel){ removeSourceModel_native_QAbstractItemModel_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(sourceModel)); if (sourceModel != null) { while (__rcSourceModel != null && __rcSourceModel.remove(sourceModel)) ; } } private native void removeSourceModel_native_QAbstractItemModel_ptr(long __this__nativeId, long sourceModel); /** *

See QConcatenateTablesProxyModel::sourceModels()const

*/ @QtUninvokable public final io.qt.core.@NonNull QList sourceModels(){ return sourceModels_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QList sourceModels_native_constfct(long __this__nativeId); /** *

See QAbstractItemModel::canDropMimeData(const QMimeData*,Qt::DropAction,int,int,QModelIndex)const

*/ @QtUninvokable @Override public boolean canDropMimeData(io.qt.core.@StrictNonNull QMimeData data, io.qt.core.Qt.@NonNull DropAction action, int row, int column, io.qt.core.@NonNull QModelIndex parent){ java.util.Objects.requireNonNull(data, "Argument 'data': null not expected."); return canDropMimeData_native_const_QMimeData_ptr_Qt_DropAction_int_int_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(data), action.value(), row, column, QtJambi_LibraryUtilities.internal.checkedNativeId(parent)); } @QtUninvokable private native boolean canDropMimeData_native_const_QMimeData_ptr_Qt_DropAction_int_int_cref_QModelIndex_constfct(long __this__nativeId, long data, int action, int row, int column, long parent); /** *

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::dropMimeData(const QMimeData*,Qt::DropAction,int,int,QModelIndex)

*/ @QtUninvokable @Override public boolean dropMimeData(io.qt.core.@Nullable QMimeData data, io.qt.core.Qt.@NonNull DropAction action, int row, int column, io.qt.core.@NonNull QModelIndex parent){ return dropMimeData_native_const_QMimeData_ptr_Qt_DropAction_int_int_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(data), action.value(), row, column, QtJambi_LibraryUtilities.internal.checkedNativeId(parent)); } @QtUninvokable private native boolean dropMimeData_native_const_QMimeData_ptr_Qt_DropAction_int_int_cref_QModelIndex(long __this__nativeId, long data, int action, int row, int column, long parent); /** *

See QAbstractItemModel::flags(QModelIndex)const

*/ @QtUninvokable @Override public io.qt.core.Qt.@NonNull ItemFlags flags(io.qt.core.@NonNull QModelIndex index){ return new io.qt.core.Qt.ItemFlags(flags_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index))); } @QtUninvokable private native int flags_native_cref_QModelIndex_constfct(long __this__nativeId, long index); /** *

See QAbstractItemModel::headerData(int,Qt::Orientation,int)const

*/ @QtUninvokable @Override public java.lang.Object headerData(int section, io.qt.core.Qt.@NonNull Orientation orientation, int role){ return headerData_native_int_Qt_Orientation_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), section, orientation.value(), role); } @QtUninvokable private native java.lang.Object headerData_native_int_Qt_Orientation_int_constfct(long __this__nativeId, int section, int orientation, 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::itemData(QModelIndex)const

*/ @QtUninvokable @Override public java.util.@NonNull NavigableMap itemData(io.qt.core.@NonNull QModelIndex proxyIndex){ return itemData_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(proxyIndex)); } @QtUninvokable private native java.util.NavigableMap itemData_native_cref_QModelIndex_constfct(long __this__nativeId, long proxyIndex); /** *

See QAbstractItemModel::mimeData(QModelIndexList)const

*/ @QtUninvokable @Override public io.qt.core.@Nullable QMimeData mimeData(java.util.@NonNull Collection indexes){ return mimeData_native_cref_QList_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), indexes); } @QtUninvokable private native io.qt.core.QMimeData mimeData_native_cref_QList_constfct(long __this__nativeId, java.util.Collection indexes); /** *

See QAbstractItemModel::mimeTypes()const

*/ @QtUninvokable @Override public java.util.@NonNull List mimeTypes(){ return mimeTypes_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.util.List mimeTypes_native_constfct(long __this__nativeId); /** *

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::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 QAbstractItemModel::setData(QModelIndex,QVariant,int)

*/ @QtUninvokable @Override public boolean setData(io.qt.core.@NonNull QModelIndex index, java.lang.Object value, int role){ return setData_native_cref_QModelIndex_cref_QVariant_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index), value, role); } @QtUninvokable private native boolean setData_native_cref_QModelIndex_cref_QVariant_int(long __this__nativeId, long index, java.lang.Object value, int role); /** *

See QAbstractItemModel::setItemData(QModelIndex,QMap<int,QVariant>)

*/ @QtUninvokable @Override public boolean setItemData(io.qt.core.@NonNull QModelIndex index, java.util.@NonNull Map roles){ return setItemData_native_cref_QModelIndex_cref_QMap(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index), roles); } @QtUninvokable private native boolean setItemData_native_cref_QModelIndex_cref_QMap(long __this__nativeId, long index, java.util.Map roles); /** *

See QAbstractItemModel::span(QModelIndex)const

*/ @QtUninvokable @Override public io.qt.core.@NonNull QSize span(io.qt.core.@NonNull QModelIndex index){ return span_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index)); } @QtUninvokable private native io.qt.core.QSize span_native_cref_QModelIndex_constfct(long __this__nativeId, long index); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QConcatenateTablesProxyModel(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QConcatenateTablesProxyModel(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QConcatenateTablesProxyModel instance, QDeclarativeConstructor constructor); /** *

Overloaded constructor for {@link #QConcatenateTablesProxyModel(io.qt.core.QObject)} * with parent = null.

*/ public QConcatenateTablesProxyModel() { this((io.qt.core.QObject)null); } }