io.qt.core.QAbstractProxyModel Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.core;
import io.qt.*;
/**
* Base class for proxy item models that can do sorting, filtering or other data processing tasks
* Java wrapper for Qt class QAbstractProxyModel
*/
public abstract class QAbstractProxyModel extends io.qt.core.QAbstractItemModel
{
@QtPropertyMember(enabled=false)
private Object __rcSourceModel = null;
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QAbstractProxyModel.class);
@NativeAccess
private static final class ConcreteWrapper extends QAbstractProxyModel {
@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 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));
}
private native io.qt.core.QModelIndex index_native_int_int_cref_QModelIndex_constfct(long __this__nativeId, int row, int column, long parent);
@Override
public 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));
}
private native io.qt.core.QModelIndex mapFromSource_native_cref_QModelIndex_constfct(long __this__nativeId, long sourceIndex);
@Override
public 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));
}
private native io.qt.core.QModelIndex mapToSource_native_cref_QModelIndex_constfct(long __this__nativeId, long proxyIndex);
@Override
public io.qt.core.@NonNull QModelIndex parent(io.qt.core.@NonNull QModelIndex child){
return parent_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(child));
}
private native io.qt.core.QModelIndex parent_native_cref_QModelIndex_constfct(long __this__nativeId, long child);
@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 QAbstractProxyModel:: sourceModelChanged()
*/
@QtPropertyNotify(name="sourceModel")
public final @NonNull PrivateSignal0 sourceModelChanged = new PrivateSignal0();
/**
* See QAbstractProxyModel:: QAbstractProxyModel(QObject*)
*/
public QAbstractProxyModel(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QAbstractProxyModel instance, io.qt.core.QObject parent);
/**
* See QAbstractProxyModel:: bindableSourceModel()
*/
@QtPropertyBindable(name="sourceModel")
@QtUninvokable
public final io.qt.core.@NonNull QBindable bindableSourceModel(){
return bindableSourceModel_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QBindable bindableSourceModel_native(long __this__nativeId);
/**
* See QAbstractProxyModel:: sourceModel()const
*/
@QtPropertyReader(name="sourceModel")
@QtUninvokable
public final io.qt.core.@Nullable QAbstractItemModel sourceModel(){
return sourceModel_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QAbstractItemModel sourceModel_native_constfct(long __this__nativeId);
/**
* See QAbstractItemModel:: buddy(QModelIndex)const
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QModelIndex buddy(io.qt.core.@NonNull QModelIndex index){
return buddy_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native io.qt.core.QModelIndex buddy_native_cref_QModelIndex_constfct(long __this__nativeId, long index);
/**
* 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:: canFetchMore(QModelIndex)const
*/
@QtUninvokable
@Override
public boolean canFetchMore(io.qt.core.@NonNull QModelIndex parent){
return canFetchMore_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(parent));
}
@QtUninvokable
private native boolean canFetchMore_native_cref_QModelIndex_constfct(long __this__nativeId, long parent);
/**
* See QAbstractItemModel:: clearItemData(QModelIndex)
*/
@QtUninvokable
@Override
public boolean clearItemData(io.qt.core.@NonNull QModelIndex index){
return clearItemData_native_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native boolean clearItemData_native_cref_QModelIndex(long __this__nativeId, long index);
/**
* See QAbstractItemModel:: data(QModelIndex, int)const
*/
@QtUninvokable
@Override
public java.lang.Object data(io.qt.core.@NonNull QModelIndex proxyIndex, int role){
return data_native_cref_QModelIndex_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(proxyIndex), role);
}
@QtUninvokable
private native java.lang.Object data_native_cref_QModelIndex_int_constfct(long __this__nativeId, long proxyIndex, 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:: fetchMore(QModelIndex)
*/
@QtUninvokable
@Override
public void fetchMore(io.qt.core.@NonNull QModelIndex parent){
fetchMore_native_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(parent));
}
@QtUninvokable
private native void fetchMore_native_cref_QModelIndex(long __this__nativeId, 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:: hasChildren(QModelIndex)const
*/
@QtUninvokable
@Override
public boolean hasChildren(io.qt.core.@NonNull QModelIndex parent){
return hasChildren_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(parent));
}
@QtUninvokable
private native boolean hasChildren_native_cref_QModelIndex_constfct(long __this__nativeId, long parent);
/**
* 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:: itemData(QModelIndex)const
*/
@QtUninvokable
@Override
public java.util.@NonNull NavigableMap itemData(io.qt.core.@NonNull QModelIndex index){
return itemData_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native java.util.NavigableMap itemData_native_cref_QModelIndex_constfct(long __this__nativeId, long index);
/**
* See QAbstractProxyModel:: mapFromSource(QModelIndex)const
*/
public abstract io.qt.core.@NonNull QModelIndex mapFromSource(io.qt.core.@NonNull QModelIndex sourceIndex);
private native io.qt.core.QModelIndex mapFromSource_native_cref_QModelIndex_constfct(long __this__nativeId, long sourceIndex);
/**
* See QAbstractProxyModel:: mapSelectionFromSource(QItemSelection)const
*/
public io.qt.core.@NonNull QItemSelection mapSelectionFromSource(io.qt.core.@NonNull QItemSelection selection){
return mapSelectionFromSource_native_cref_QItemSelection_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(selection));
}
private native io.qt.core.QItemSelection mapSelectionFromSource_native_cref_QItemSelection_constfct(long __this__nativeId, long selection);
/**
* See QAbstractProxyModel:: mapSelectionToSource(QItemSelection)const
*/
public io.qt.core.@NonNull QItemSelection mapSelectionToSource(io.qt.core.@NonNull QItemSelection selection){
return mapSelectionToSource_native_cref_QItemSelection_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(selection));
}
private native io.qt.core.QItemSelection mapSelectionToSource_native_cref_QItemSelection_constfct(long __this__nativeId, long selection);
/**
* See QAbstractProxyModel:: mapToSource(QModelIndex)const
*/
public abstract io.qt.core.@NonNull QModelIndex mapToSource(io.qt.core.@NonNull QModelIndex proxyIndex);
private native io.qt.core.QModelIndex mapToSource_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 extends io.qt.core.@NonNull QModelIndex> 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 extends io.qt.core.QModelIndex> 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:: revert()
*/
@QtUninvokable
@Override
public void revert(){
revert_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void revert_native(long __this__nativeId);
/**
* 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:: 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:: setHeaderData(int, Qt::Orientation, QVariant, int)
*/
@QtUninvokable
@Override
public boolean setHeaderData(int section, io.qt.core.Qt.@NonNull Orientation orientation, java.lang.Object value, int role){
return setHeaderData_native_int_Qt_Orientation_cref_QVariant_int(QtJambi_LibraryUtilities.internal.nativeId(this), section, orientation.value(), value, role);
}
@QtUninvokable
private native boolean setHeaderData_native_int_Qt_Orientation_cref_QVariant_int(long __this__nativeId, int section, int orientation, 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 QAbstractProxyModel:: setSourceModel(QAbstractItemModel*)
*/
@QtPropertyWriter(name="sourceModel")
@QtUninvokable
public void setSourceModel(io.qt.core.@Nullable QAbstractItemModel sourceModel){
setSourceModel_native_QAbstractItemModel_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(sourceModel));
__rcSourceModel = sourceModel;
}
@QtUninvokable
private native void setSourceModel_native_QAbstractItemModel_ptr(long __this__nativeId, long sourceModel);
/**
* 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);
/**
* See QAbstractItemModel:: sort(int, Qt::SortOrder)
*/
@QtUninvokable
@Override
public void sort(int column, io.qt.core.Qt.@NonNull SortOrder order){
sort_native_int_Qt_SortOrder(QtJambi_LibraryUtilities.internal.nativeId(this), column, order.value());
}
@QtUninvokable
private native void sort_native_int_Qt_SortOrder(long __this__nativeId, int column, int order);
/**
* 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);
/**
* See QAbstractItemModel:: submit()
*/
@QtUninvokable
@Override
public boolean submit(){
return submit_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean submit_native(long __this__nativeId);
/**
* See QAbstractItemModel:: supportedDragActions()const
*/
@QtUninvokable
@Override
public io.qt.core.Qt.@NonNull DropActions supportedDragActions(){
return new io.qt.core.Qt.DropActions(supportedDragActions_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int supportedDragActions_native_constfct(long __this__nativeId);
/**
* See QAbstractItemModel:: supportedDropActions()const
*/
@QtUninvokable
@Override
public io.qt.core.Qt.@NonNull DropActions supportedDropActions(){
return new io.qt.core.Qt.DropActions(supportedDropActions_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int supportedDropActions_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QAbstractProxyModel(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QAbstractProxyModel(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QAbstractProxyModel instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QAbstractProxyModel(io.qt.core.QObject)}
* with parent = null
.
*/
public QAbstractProxyModel() {
this((io.qt.core.QObject)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #sourceModel()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@Nullable QAbstractItemModel getSourceModel() {
return sourceModel();
}
}