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

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

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

import io.qt.*;


/**
 * 

Abstract model that can be subclassed to create table models

*

Java wrapper for Qt class QAbstractTableModel

*/ public abstract class QAbstractTableModel extends io.qt.core.QAbstractItemModel { /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QAbstractTableModel.class); @NativeAccess private static final class ConcreteWrapper extends QAbstractTableModel { @NativeAccess private ConcreteWrapper(QPrivateConstructor p) { super(p); } @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)); } private native int columnCount_native_cref_QModelIndex_constfct(long __this__nativeId, long parent); @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); } private native java.lang.Object data_native_cref_QModelIndex_int_constfct(long __this__nativeId, long index, int role); @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)); } private native int rowCount_native_cref_QModelIndex_constfct(long __this__nativeId, long parent); } /** *

See QAbstractTableModel::QAbstractTableModel(QObject*)

*/ public QAbstractTableModel(io.qt.core.@Nullable QObject parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QAbstractTableModel instance, io.qt.core.QObject parent); /** * Function has no implementation because its native counterpart is private. */ @Deprecated @QtUninvokable @Override public final boolean hasChildren(io.qt.core.@NonNull QModelIndex parent) throws QNoImplementationException { throw new QNoImplementationException(); } /** * Function has no implementation because its native counterpart is private. */ @Deprecated @QtUninvokable @Override public final io.qt.core.@NonNull QModelIndex parent(io.qt.core.@NonNull QModelIndex child) throws QNoImplementationException { throw new QNoImplementationException(); } /** *

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy