io.qt.core.QAbstractListModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi Show documentation
Show all versions of qtjambi Show documentation
QtJambi base module containing QtCore, QtGui and QtWidgets.
package io.qt.core;
import io.qt.*;
/**
* Abstract model that can be subclassed to create one-dimensional list models
* Java wrapper for Qt class QAbstractListModel
*/
public abstract class QAbstractListModel 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(QAbstractListModel.class);
@NativeAccess
private static final class ConcreteWrapper extends QAbstractListModel {
@NativeAccess
private ConcreteWrapper(QPrivateConstructor p) { super(p); }
@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 QAbstractListModel:: QAbstractListModel(QObject*)
*/
public QAbstractListModel(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QAbstractListModel instance, io.qt.core.QObject parent);
/**
* Function has no implementation because its native counterpart is private.
*/
@Deprecated
@QtUninvokable
@Override
public final int columnCount(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 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 QAbstractListModel(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QAbstractListModel(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QAbstractListModel instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QAbstractListModel(io.qt.core.QObject)}
* with parent = null
.
*/
public QAbstractListModel() {
this((io.qt.core.QObject)null);
}
}