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

io.qt.gui.QStandardItemModel Maven / Gradle / Ivy

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

import io.qt.*;


/**
 * 

Generic model for storing custom data

*

Java wrapper for Qt class QStandardItemModel

*/ public class QStandardItemModel extends io.qt.core.QAbstractItemModel { static { QtJambi_LibraryUtilities.initialize(); } /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QStandardItemModel.class); /** *

See QStandardItemModel::itemChanged(QStandardItem*)

*/ public final @NonNull Signal1 itemChanged = new Signal1<>(); /** *

See QStandardItemModel::QStandardItemModel(QObject*)

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

See QStandardItemModel::QStandardItemModel(int,int,QObject*)

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

See QStandardItemModel::appendColumn(QList<QStandardItem*>)

*/ @QtUninvokable public final void appendColumn(java.util.@NonNull Collection items){ appendColumn_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), items); if (items != null) { for (io.qt.gui.QStandardItem i : items) QtJambi_LibraryUtilities.internal.setCppOwnership(i); } } @QtUninvokable private native void appendColumn_native_cref_QList(long __this__nativeId, java.util.Collection items); /** *

See QStandardItemModel::appendRow(QList<QStandardItem*>)

*/ @QtUninvokable public final void appendRow(java.util.@NonNull Collection items){ appendRow_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), items); if (items != null) { for (io.qt.gui.QStandardItem i : items) QtJambi_LibraryUtilities.internal.setCppOwnership(i); } } @QtUninvokable private native void appendRow_native_cref_QList(long __this__nativeId, java.util.Collection items); /** *

See QStandardItemModel::appendRow(QStandardItem*)

*/ @QtUninvokable public final void appendRow(io.qt.gui.@Nullable QStandardItem item){ appendRow_native_QStandardItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item)); QtJambi_LibraryUtilities.internal.setCppOwnership(item); } @QtUninvokable private native void appendRow_native_QStandardItem_ptr(long __this__nativeId, long item); /** *

See QStandardItemModel::bindableSortRole()

*/ @QtPropertyBindable(name="sortRole") @QtUninvokable public final io.qt.core.@NonNull QIntBindable bindableSortRole(){ return bindableSortRole_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QIntBindable bindableSortRole_native(long __this__nativeId); /** *

See QStandardItemModel::clear()

*/ @QtUninvokable public final void clear(){ clear_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void clear_native(long __this__nativeId); /** *

See QStandardItemModel::findItems(QString,Qt::MatchFlags,int)const

*/ @QtUninvokable public final io.qt.core.@NonNull QList findItems(java.lang.@NonNull String text, io.qt.core.Qt.@NonNull MatchFlags flags, int column){ return findItems_native_cref_QString_Qt_MatchFlags_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), text, flags.value(), column); } @QtUninvokable private native io.qt.core.QList findItems_native_cref_QString_Qt_MatchFlags_int_constfct(long __this__nativeId, java.lang.String text, int flags, int column); /** *

See QStandardItemModel::horizontalHeaderItem(int)const

*/ @QtUninvokable public final io.qt.gui.@Nullable QStandardItem horizontalHeaderItem(int column){ return horizontalHeaderItem_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), column); } @QtUninvokable private native io.qt.gui.QStandardItem horizontalHeaderItem_native_int_constfct(long __this__nativeId, int column); /** *

See QStandardItemModel::indexFromItem(const QStandardItem*)const

*/ @QtUninvokable public final io.qt.core.@NonNull QModelIndex indexFromItem(io.qt.gui.@Nullable QStandardItem item){ return indexFromItem_native_const_QStandardItem_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item)); } @QtUninvokable private native io.qt.core.QModelIndex indexFromItem_native_const_QStandardItem_ptr_constfct(long __this__nativeId, long item); /** *

See QStandardItemModel::insertColumn(int,QList<QStandardItem*>)

*/ @QtUninvokable public final void insertColumn(int column, java.util.@NonNull Collection items){ insertColumn_native_int_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), column, items); if (items != null) { for (io.qt.gui.QStandardItem i : items) QtJambi_LibraryUtilities.internal.setCppOwnership(i); } } @QtUninvokable private native void insertColumn_native_int_cref_QList(long __this__nativeId, int column, java.util.Collection items); /** *

See QStandardItemModel::insertRow(int,QList<QStandardItem*>)

*/ @QtUninvokable public final void insertRow(int row, java.util.@NonNull Collection items){ insertRow_native_int_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), row, items); if (items != null) { for (io.qt.gui.QStandardItem i : items) QtJambi_LibraryUtilities.internal.setCppOwnership(i); } } @QtUninvokable private native void insertRow_native_int_cref_QList(long __this__nativeId, int row, java.util.Collection items); /** *

See QStandardItemModel::insertRow(int,QStandardItem*)

*/ @QtUninvokable public final void insertRow(int row, io.qt.gui.@Nullable QStandardItem item){ insertRow_native_int_QStandardItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), row, QtJambi_LibraryUtilities.internal.checkedNativeId(item)); QtJambi_LibraryUtilities.internal.setCppOwnership(item); } @QtUninvokable private native void insertRow_native_int_QStandardItem_ptr(long __this__nativeId, int row, long item); /** *

See QStandardItemModel::invisibleRootItem()const

*/ @QtUninvokable public final io.qt.gui.@Nullable QStandardItem invisibleRootItem(){ return invisibleRootItem_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QStandardItem invisibleRootItem_native_constfct(long __this__nativeId); /** *

See QStandardItemModel::item(int,int)const

*/ @QtUninvokable public final io.qt.gui.@Nullable QStandardItem item(int row, int column){ return item_native_int_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), row, column); } @QtUninvokable private native io.qt.gui.QStandardItem item_native_int_int_constfct(long __this__nativeId, int row, int column); /** *

See QStandardItemModel::itemFromIndex(QModelIndex)const

*/ @QtUninvokable public final io.qt.gui.@Nullable QStandardItem itemFromIndex(io.qt.core.@NonNull QModelIndex index){ return itemFromIndex_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index)); } @QtUninvokable private native io.qt.gui.QStandardItem itemFromIndex_native_cref_QModelIndex_constfct(long __this__nativeId, long index); /** *

See QStandardItemModel::itemPrototype()const

*/ @QtUninvokable public final io.qt.gui.@Nullable QStandardItem itemPrototype(){ return itemPrototype_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QStandardItem itemPrototype_native_constfct(long __this__nativeId); /** *

See QStandardItemModel::setColumnCount(int)

*/ @QtUninvokable public final void setColumnCount(int columns){ setColumnCount_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), columns); } @QtUninvokable private native void setColumnCount_native_int(long __this__nativeId, int columns); /** *

See QStandardItemModel::setHorizontalHeaderItem(int,QStandardItem*)

*/ @QtUninvokable public final void setHorizontalHeaderItem(int column, io.qt.gui.@Nullable QStandardItem item){ setHorizontalHeaderItem_native_int_QStandardItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), column, QtJambi_LibraryUtilities.internal.checkedNativeId(item)); QtJambi_LibraryUtilities.internal.setCppOwnership(item); } @QtUninvokable private native void setHorizontalHeaderItem_native_int_QStandardItem_ptr(long __this__nativeId, int column, long item); /** *

See QStandardItemModel::setHorizontalHeaderLabels(QStringList)

*/ @QtUninvokable public final void setHorizontalHeaderLabels(java.util.@NonNull Collection labels){ setHorizontalHeaderLabels_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), labels); } @QtUninvokable private native void setHorizontalHeaderLabels_native_cref_QStringList(long __this__nativeId, java.util.Collection labels); /** *

See QStandardItemModel::setItem(int,QStandardItem*)

*/ @QtUninvokable public final void setItem(int row, io.qt.gui.@Nullable QStandardItem item){ setItem_native_int_QStandardItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), row, QtJambi_LibraryUtilities.internal.checkedNativeId(item)); QtJambi_LibraryUtilities.internal.setCppOwnership(item); } @QtUninvokable private native void setItem_native_int_QStandardItem_ptr(long __this__nativeId, int row, long item); /** *

See QStandardItemModel::setItem(int,int,QStandardItem*)

*/ @QtUninvokable public final void setItem(int row, int column, io.qt.gui.@Nullable QStandardItem item){ setItem_native_int_int_QStandardItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), row, column, QtJambi_LibraryUtilities.internal.checkedNativeId(item)); QtJambi_LibraryUtilities.internal.setCppOwnership(item); } @QtUninvokable private native void setItem_native_int_int_QStandardItem_ptr(long __this__nativeId, int row, int column, long item); /** *

See QStandardItemModel::setItemPrototype(const QStandardItem*)

*/ @QtUninvokable public final void setItemPrototype(io.qt.gui.@Nullable QStandardItem item){ setItemPrototype_native_const_QStandardItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item)); QtJambi_LibraryUtilities.internal.setCppOwnership(item); } @QtUninvokable private native void setItemPrototype_native_const_QStandardItem_ptr(long __this__nativeId, long item); /** *

See QStandardItemModel::setItemRoleNames(QHash<int,QByteArray>)

*/ @QtUninvokable public final void setItemRoleNames(java.util.@NonNull Map roleNames){ setItemRoleNames_native_cref_QHash(QtJambi_LibraryUtilities.internal.nativeId(this), roleNames); } @QtUninvokable private native void setItemRoleNames_native_cref_QHash(long __this__nativeId, java.util.Map roleNames); /** *

See QStandardItemModel::setRowCount(int)

*/ @QtUninvokable public final void setRowCount(int rows){ setRowCount_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), rows); } @QtUninvokable private native void setRowCount_native_int(long __this__nativeId, int rows); /** *

See QStandardItemModel::setSortRole(int)

*/ @QtPropertyWriter(name="sortRole") @QtUninvokable public final void setSortRole(int role){ setSortRole_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), role); } @QtUninvokable private native void setSortRole_native_int(long __this__nativeId, int role); /** *

See QStandardItemModel::setVerticalHeaderItem(int,QStandardItem*)

*/ @QtUninvokable public final void setVerticalHeaderItem(int row, io.qt.gui.@Nullable QStandardItem item){ setVerticalHeaderItem_native_int_QStandardItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), row, QtJambi_LibraryUtilities.internal.checkedNativeId(item)); QtJambi_LibraryUtilities.internal.setCppOwnership(item); } @QtUninvokable private native void setVerticalHeaderItem_native_int_QStandardItem_ptr(long __this__nativeId, int row, long item); /** *

See QStandardItemModel::setVerticalHeaderLabels(QStringList)

*/ @QtUninvokable public final void setVerticalHeaderLabels(java.util.@NonNull Collection labels){ setVerticalHeaderLabels_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), labels); } @QtUninvokable private native void setVerticalHeaderLabels_native_cref_QStringList(long __this__nativeId, java.util.Collection labels); /** *

See QStandardItemModel::sortRole()const

*/ @QtPropertyReader(name="sortRole") @QtUninvokable public final int sortRole(){ return sortRole_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int sortRole_native_constfct(long __this__nativeId); /** *

See QStandardItemModel::takeColumn(int)

*/ @QtUninvokable public final io.qt.core.@NonNull QList takeColumn(int column){ io.qt.core.@NonNull QList __qt_return_value = takeColumn_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), column); if (__qt_return_value != null) { for (io.qt.gui.QStandardItem i : __qt_return_value) QtJambi_LibraryUtilities.internal.setDefaultOwnership(i); } return __qt_return_value; } @QtUninvokable private native io.qt.core.QList takeColumn_native_int(long __this__nativeId, int column); /** *

See QStandardItemModel::takeHorizontalHeaderItem(int)

*/ @QtUninvokable public final io.qt.gui.@Nullable QStandardItem takeHorizontalHeaderItem(int column){ io.qt.gui.@Nullable QStandardItem __qt_return_value = takeHorizontalHeaderItem_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), column); QtJambi_LibraryUtilities.internal.setDefaultOwnership(__qt_return_value); return __qt_return_value; } @QtUninvokable private native io.qt.gui.QStandardItem takeHorizontalHeaderItem_native_int(long __this__nativeId, int column); /** *

See QStandardItemModel::takeItem(int,int)

*/ @QtUninvokable public final io.qt.gui.@Nullable QStandardItem takeItem(int row, int column){ io.qt.gui.@Nullable QStandardItem __qt_return_value = takeItem_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), row, column); QtJambi_LibraryUtilities.internal.setDefaultOwnership(__qt_return_value); return __qt_return_value; } @QtUninvokable private native io.qt.gui.QStandardItem takeItem_native_int_int(long __this__nativeId, int row, int column); /** *

See QStandardItemModel::takeRow(int)

*/ @QtUninvokable public final io.qt.core.@NonNull QList takeRow(int row){ io.qt.core.@NonNull QList __qt_return_value = takeRow_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), row); if (__qt_return_value != null) { for (io.qt.gui.QStandardItem i : __qt_return_value) QtJambi_LibraryUtilities.internal.setDefaultOwnership(i); } return __qt_return_value; } @QtUninvokable private native io.qt.core.QList takeRow_native_int(long __this__nativeId, int row); /** *

See QStandardItemModel::takeVerticalHeaderItem(int)

*/ @QtUninvokable public final io.qt.gui.@Nullable QStandardItem takeVerticalHeaderItem(int row){ io.qt.gui.@Nullable QStandardItem __qt_return_value = takeVerticalHeaderItem_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), row); QtJambi_LibraryUtilities.internal.setDefaultOwnership(__qt_return_value); return __qt_return_value; } @QtUninvokable private native io.qt.gui.QStandardItem takeVerticalHeaderItem_native_int(long __this__nativeId, int row); /** *

See QStandardItemModel::verticalHeaderItem(int)const

*/ @QtUninvokable public final io.qt.gui.@Nullable QStandardItem verticalHeaderItem(int row){ return verticalHeaderItem_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), row); } @QtUninvokable private native io.qt.gui.QStandardItem verticalHeaderItem_native_int_constfct(long __this__nativeId, int row); /** *

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

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

See QAbstractItemModel::insertRows(int,int,QModelIndex)

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

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 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::multiData(QModelIndex,QModelRoleDataSpan)const

*/ @QtUninvokable @Override public void multiData(io.qt.core.@NonNull QModelIndex index, java.util.@NonNull Map roleDataSpan){ multiData_native_cref_QModelIndex_QModelRoleDataSpan_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index), roleDataSpan); } @QtUninvokable private native void multiData_native_cref_QModelIndex_QModelRoleDataSpan_constfct(long __this__nativeId, long index, java.util.Map roleDataSpan); /** *

See QAbstractItemModel::parent(QModelIndex)const

*/ @QtUninvokable @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)); } @QtUninvokable private native io.qt.core.QModelIndex parent_native_cref_QModelIndex_constfct(long __this__nativeId, long child); /** *

See QAbstractItemModel::removeColumns(int,int,QModelIndex)

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

See QAbstractItemModel::removeRows(int,int,QModelIndex)

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

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); /** *

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

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

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

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

*/ public QStandardItemModel(int rows, int columns) { this(rows, columns, (io.qt.core.QObject)null); } /** *

Overloaded function for {@link #findItems(java.lang.String, io.qt.core.Qt.MatchFlags, int)} * with column = 0.

*/ @QtUninvokable public final io.qt.core.@NonNull QList findItems(java.lang.@NonNull String text, io.qt.core.Qt.@NonNull MatchFlags flags) { return findItems(text, flags, (int)0); } /** *

Overloaded function for {@link #findItems(java.lang.String, io.qt.core.Qt.MatchFlags, int)}

*

with:

    *
  • flags = new io.qt.core.Qt.MatchFlags(0)
  • *
  • column = 0
  • *
*/ @QtUninvokable public final io.qt.core.@NonNull QList findItems(java.lang.@NonNull String text) { return findItems(text, new io.qt.core.Qt.MatchFlags(0), (int)0); } /** *

Overloaded function for {@link #item(int, int)} * with column = 0.

*/ @QtUninvokable public final io.qt.gui.@Nullable QStandardItem item(int row) { return item(row, (int)0); } /** * @hidden *

Kotlin property getter. In Java use {@link #sortRole()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final int getSortRole() { return sortRole(); } /** *

Overloaded function for {@link #takeItem(int, int)} * with column = 0.

*/ @QtUninvokable public final io.qt.gui.@Nullable QStandardItem takeItem(int row) { return takeItem(row, (int)0); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy