io.qt.core.QAbstractItemModel Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.core;
/**
* The abstract interface for item model classes
* Java wrapper for Qt class QAbstractItemModel
*/
public abstract class QAbstractItemModel extends io.qt.core.QObject
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QAbstractItemModel.class);
@io.qt.NativeAccess
private static final class ConcreteWrapper extends QAbstractItemModel {
@io.qt.NativeAccess
private ConcreteWrapper(QPrivateConstructor p) { super(p); }
@Override
public int columnCount(io.qt.core.QModelIndex parent){
return columnCount_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), parent);
}
private native int columnCount_native_cref_QModelIndex_constfct(long __this__nativeId, io.qt.core.QModelIndex parent);
@Override
public java.lang.Object data(io.qt.core.QModelIndex index, int role){
return data_native_cref_QModelIndex_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index, role);
}
private native java.lang.Object data_native_cref_QModelIndex_int_constfct(long __this__nativeId, io.qt.core.QModelIndex index, int role);
@Override
public io.qt.core.QModelIndex index(int row, int column, io.qt.core.QModelIndex parent){
return index_native_int_int_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), row, column, parent);
}
private native io.qt.core.QModelIndex index_native_int_int_cref_QModelIndex_constfct(long __this__nativeId, int row, int column, io.qt.core.QModelIndex parent);
@Override
public io.qt.core.QModelIndex parent(io.qt.core.QModelIndex child){
return parent_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), child);
}
private native io.qt.core.QModelIndex parent_native_cref_QModelIndex_constfct(long __this__nativeId, io.qt.core.QModelIndex child);
@Override
public int rowCount(io.qt.core.QModelIndex parent){
return rowCount_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), parent);
}
private native int rowCount_native_cref_QModelIndex_constfct(long __this__nativeId, io.qt.core.QModelIndex parent);
}
/**
* Java wrapper for Qt enum QAbstractItemModel::CheckIndexOption
*
* @see CheckIndexOptions
*/
public enum CheckIndexOption implements io.qt.QtFlagEnumerator {
NoOption(0),
IndexIsValid(1),
DoNotUseParent(2),
ParentIsInvalid(4);
private CheckIndexOption(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public CheckIndexOptions asFlags() {
return new CheckIndexOptions(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public CheckIndexOptions combined(CheckIndexOption e) {
return new CheckIndexOptions(this, e);
}
/**
* Creates a new {@link CheckIndexOptions} from the entries.
* @param values entries
* @return new flag
*/
public static CheckIndexOptions flags(CheckIndexOption ... values) {
return new CheckIndexOptions(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static CheckIndexOption resolve(int value) {
switch (value) {
case 0: return NoOption;
case 1: return IndexIsValid;
case 2: return DoNotUseParent;
case 4: return ParentIsInvalid;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* QFlags type for enum {@link CheckIndexOption}
*/
public static final class CheckIndexOptions extends io.qt.QFlags implements Comparable {
private static final long serialVersionUID = 0x5bc5bcb902aa4cd5L;
/**
* Creates a new CheckIndexOptions where the flags in args
are set.
* @param args enum entries
*/
public CheckIndexOptions(CheckIndexOption ... args){
super(args);
}
/**
* Creates a new CheckIndexOptions with given value
.
* @param value
*/
public CheckIndexOptions(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new CheckIndexOptions
*/
@Override
public final CheckIndexOptions combined(CheckIndexOption e){
return new CheckIndexOptions(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
public final CheckIndexOptions setFlag(CheckIndexOption e){
super.setFlag(e);
return this;
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
public final CheckIndexOptions setFlag(CheckIndexOption e, boolean on){
super.setFlag(e, on);
return this;
}
/**
* Returns an array of flag objects represented by this CheckIndexOptions.
* @return array of enum entries
*/
@Override
public final CheckIndexOption[] flags(){
return super.flags(CheckIndexOption.values());
}
/**
* {@inheritDoc}
*/
@Override
public final CheckIndexOptions clone(){
return new CheckIndexOptions(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(CheckIndexOptions other){
return Integer.compare(value(), other.value());
}
}
/**
* Java wrapper for Qt enum QAbstractItemModel::LayoutChangeHint
*/
public enum LayoutChangeHint implements io.qt.QtEnumerator {
NoLayoutChangeHint(0),
VerticalSortHint(1),
HorizontalSortHint(2);
private LayoutChangeHint(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static LayoutChangeHint resolve(int value) {
switch (value) {
case 0: return NoLayoutChangeHint;
case 1: return VerticalSortHint;
case 2: return HorizontalSortHint;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QAbstractItemModel::columnsAboutToBeInserted(QModelIndex,int,int)
*/
public final PrivateSignal3 columnsAboutToBeInserted = new PrivateSignal3<>();
/**
* See QAbstractItemModel::columnsAboutToBeMoved(QModelIndex,int,int,QModelIndex,int)
*/
public final PrivateSignal5 columnsAboutToBeMoved = new PrivateSignal5<>();
/**
* See QAbstractItemModel::columnsAboutToBeRemoved(QModelIndex,int,int)
*/
public final PrivateSignal3 columnsAboutToBeRemoved = new PrivateSignal3<>();
/**
* See QAbstractItemModel::columnsInserted(QModelIndex,int,int)
*/
public final PrivateSignal3 columnsInserted = new PrivateSignal3<>();
/**
* See QAbstractItemModel::columnsMoved(QModelIndex,int,int,QModelIndex,int)
*/
public final PrivateSignal5 columnsMoved = new PrivateSignal5<>();
/**
* See QAbstractItemModel::columnsRemoved(QModelIndex,int,int)
*/
public final PrivateSignal3 columnsRemoved = new PrivateSignal3<>();
/**
* See QAbstractItemModel::dataChanged(QModelIndex,QModelIndex,QList<int>)
*/
public final Signal3Default1> dataChanged = new Signal3Default1<>(()->java.util.Collections.emptyList());
/**
* See QAbstractItemModel::headerDataChanged(Qt::Orientation,int,int)
*/
public final Signal3 headerDataChanged = new Signal3<>();
/**
*
*/
public final Signal2Default2, io.qt.core.QAbstractItemModel.LayoutChangeHint> layoutAboutToBeChanged = new Signal2Default2<>(()->java.util.Collections.emptyList(), ()->io.qt.core.QAbstractItemModel.LayoutChangeHint.NoLayoutChangeHint);
/**
* See QAbstractItemModel::layoutChanged(QList<QPersistentModelIndex>,QAbstractItemModel::LayoutChangeHint)
*/
public final Signal2Default2, io.qt.core.QAbstractItemModel.LayoutChangeHint> layoutChanged = new Signal2Default2<>(()->java.util.Collections.emptyList(), ()->io.qt.core.QAbstractItemModel.LayoutChangeHint.NoLayoutChangeHint);
/**
* See QAbstractItemModel::modelAboutToBeReset()
*/
public final PrivateSignal0 modelAboutToBeReset = new PrivateSignal0();
/**
* See QAbstractItemModel::modelReset()
*/
public final PrivateSignal0 modelReset = new PrivateSignal0();
/**
* See QAbstractItemModel::rowsAboutToBeInserted(QModelIndex,int,int)
*/
public final PrivateSignal3 rowsAboutToBeInserted = new PrivateSignal3<>();
/**
* See QAbstractItemModel::rowsAboutToBeMoved(QModelIndex,int,int,QModelIndex,int)
*/
public final PrivateSignal5 rowsAboutToBeMoved = new PrivateSignal5<>();
/**
* See QAbstractItemModel::rowsAboutToBeRemoved(QModelIndex,int,int)
*/
public final PrivateSignal3 rowsAboutToBeRemoved = new PrivateSignal3<>();
/**
* See QAbstractItemModel::rowsInserted(QModelIndex,int,int)
*/
public final PrivateSignal3 rowsInserted = new PrivateSignal3<>();
/**
* See QAbstractItemModel::rowsMoved(QModelIndex,int,int,QModelIndex,int)
*/
public final PrivateSignal5 rowsMoved = new PrivateSignal5<>();
/**
* See QAbstractItemModel::rowsRemoved(QModelIndex,int,int)
*/
public final PrivateSignal3 rowsRemoved = new PrivateSignal3<>();
/**
* Overloaded constructor for {@link #QAbstractItemModel(io.qt.core.QObject)}
* with parent = null
.
*/
public QAbstractItemModel() {
this((io.qt.core.QObject)null);
}
/**
* See QAbstractItemModel::QAbstractItemModel(QObject*)
*/
public QAbstractItemModel(io.qt.core.QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QAbstractItemModel instance, io.qt.core.QObject parent);
/**
* See QAbstractItemModel::beginInsertColumns(QModelIndex,int,int)
*/
@io.qt.QtDeclaredFinal
@io.qt.QtUninvokable
protected void beginInsertColumns(io.qt.core.QModelIndex parent, int first, int last){
beginInsertColumns_native_cref_QModelIndex_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), parent, first, last);
}
@io.qt.QtUninvokable
private native void beginInsertColumns_native_cref_QModelIndex_int_int(long __this__nativeId, io.qt.core.QModelIndex parent, int first, int last);
/**
* See QAbstractItemModel::beginInsertRows(QModelIndex,int,int)
*/
@io.qt.QtDeclaredFinal
@io.qt.QtUninvokable
protected void beginInsertRows(io.qt.core.QModelIndex parent, int first, int last){
beginInsertRows_native_cref_QModelIndex_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), parent, first, last);
}
@io.qt.QtUninvokable
private native void beginInsertRows_native_cref_QModelIndex_int_int(long __this__nativeId, io.qt.core.QModelIndex parent, int first, int last);
/**
* See QAbstractItemModel::beginMoveColumns(QModelIndex,int,int,QModelIndex,int)
*/
@io.qt.QtUninvokable
protected final boolean beginMoveColumns(io.qt.core.QModelIndex sourceParent, int sourceFirst, int sourceLast, io.qt.core.QModelIndex destinationParent, int destinationColumn){
return beginMoveColumns_native_cref_QModelIndex_int_int_cref_QModelIndex_int(QtJambi_LibraryUtilities.internal.nativeId(this), sourceParent, sourceFirst, sourceLast, destinationParent, destinationColumn);
}
@io.qt.QtUninvokable
private native boolean beginMoveColumns_native_cref_QModelIndex_int_int_cref_QModelIndex_int(long __this__nativeId, io.qt.core.QModelIndex sourceParent, int sourceFirst, int sourceLast, io.qt.core.QModelIndex destinationParent, int destinationColumn);
/**
* See QAbstractItemModel::beginMoveRows(QModelIndex,int,int,QModelIndex,int)
*/
@io.qt.QtUninvokable
protected final boolean beginMoveRows(io.qt.core.QModelIndex sourceParent, int sourceFirst, int sourceLast, io.qt.core.QModelIndex destinationParent, int destinationRow){
return beginMoveRows_native_cref_QModelIndex_int_int_cref_QModelIndex_int(QtJambi_LibraryUtilities.internal.nativeId(this), sourceParent, sourceFirst, sourceLast, destinationParent, destinationRow);
}
@io.qt.QtUninvokable
private native boolean beginMoveRows_native_cref_QModelIndex_int_int_cref_QModelIndex_int(long __this__nativeId, io.qt.core.QModelIndex sourceParent, int sourceFirst, int sourceLast, io.qt.core.QModelIndex destinationParent, int destinationRow);
/**
* See QAbstractItemModel::beginRemoveColumns(QModelIndex,int,int)
*/
@io.qt.QtDeclaredFinal
@io.qt.QtUninvokable
protected void beginRemoveColumns(io.qt.core.QModelIndex parent, int first, int last){
beginRemoveColumns_native_cref_QModelIndex_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), parent, first, last);
}
@io.qt.QtUninvokable
private native void beginRemoveColumns_native_cref_QModelIndex_int_int(long __this__nativeId, io.qt.core.QModelIndex parent, int first, int last);
/**
* See QAbstractItemModel::beginRemoveRows(QModelIndex,int,int)
*/
@io.qt.QtDeclaredFinal
@io.qt.QtUninvokable
protected void beginRemoveRows(io.qt.core.QModelIndex parent, int first, int last){
beginRemoveRows_native_cref_QModelIndex_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), parent, first, last);
}
@io.qt.QtUninvokable
private native void beginRemoveRows_native_cref_QModelIndex_int_int(long __this__nativeId, io.qt.core.QModelIndex parent, int first, int last);
/**
* See QAbstractItemModel::beginResetModel()
*/
@io.qt.QtDeclaredFinal
@io.qt.QtUninvokable
protected void beginResetModel(){
beginResetModel_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void beginResetModel_native(long __this__nativeId);
/**
* See QAbstractItemModel::changePersistentIndex(QModelIndex,QModelIndex)
*/
@io.qt.QtUninvokable
protected final void changePersistentIndex(io.qt.core.QModelIndex from, io.qt.core.QModelIndex to){
changePersistentIndex_native_cref_QModelIndex_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), from, to);
}
@io.qt.QtUninvokable
private native void changePersistentIndex_native_cref_QModelIndex_cref_QModelIndex(long __this__nativeId, io.qt.core.QModelIndex from, io.qt.core.QModelIndex to);
/**
* See QAbstractItemModel::changePersistentIndexList(QModelIndexList,QModelIndexList)
*/
@io.qt.QtUninvokable
protected final void changePersistentIndexList(java.util.Collection from, java.util.Collection to){
changePersistentIndexList_native_cref_QList_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), from, to);
}
@io.qt.QtUninvokable
private native void changePersistentIndexList_native_cref_QList_cref_QList(long __this__nativeId, java.util.Collection from, java.util.Collection to);
/**
* Overloaded function for {@link #checkIndex(io.qt.core.QModelIndex, io.qt.core.QAbstractItemModel.CheckIndexOptions)}.
*/
@io.qt.QtUninvokable
public final boolean checkIndex(io.qt.core.QModelIndex index, io.qt.core.QAbstractItemModel.CheckIndexOption ... options){
return checkIndex(index, new io.qt.core.QAbstractItemModel.CheckIndexOptions(options));
}
/**
* Overloaded function for {@link #checkIndex(io.qt.core.QModelIndex, io.qt.core.QAbstractItemModel.CheckIndexOptions)}
* with options = new io.qt.core.QAbstractItemModel.CheckIndexOptions(0)
.
*/
@io.qt.QtUninvokable
public final boolean checkIndex(io.qt.core.QModelIndex index) {
return checkIndex(index, new io.qt.core.QAbstractItemModel.CheckIndexOptions(0));
}
/**
* See QAbstractItemModel::checkIndex(QModelIndex,CheckIndexOptions)const
*/
@io.qt.QtUninvokable
public final boolean checkIndex(io.qt.core.QModelIndex index, io.qt.core.QAbstractItemModel.CheckIndexOptions options){
return checkIndex_native_cref_QModelIndex_QFlags_QAbstractItemModel_CheckIndexOption__constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index, options.value());
}
@io.qt.QtUninvokable
private native boolean checkIndex_native_cref_QModelIndex_QFlags_QAbstractItemModel_CheckIndexOption__constfct(long __this__nativeId, io.qt.core.QModelIndex index, int options);
/**
* See QAbstractItemModel::createIndex(int,int,quintptr)const
*/
@io.qt.QtUninvokable
protected final io.qt.core.QModelIndex createIndex(int row, int column, long id){
return createIndex_native_int_int_quintptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), row, column, id);
}
@io.qt.QtUninvokable
private native io.qt.core.QModelIndex createIndex_native_int_int_quintptr_constfct(long __this__nativeId, int row, int column, long id);
@io.qt.QtUninvokable
protected final boolean decodeData(int row, int column, io.qt.core.QModelIndex parent, io.qt.core.QDataStream stream){
java.util.Objects.requireNonNull(stream, "Argument 'stream': null not expected.");
return decodeData_native_int_int_cref_QModelIndex_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), row, column, parent, QtJambi_LibraryUtilities.internal.checkedNativeId(stream));
}
@io.qt.QtUninvokable
private native boolean decodeData_native_int_int_cref_QModelIndex_ref_QDataStream(long __this__nativeId, int row, int column, io.qt.core.QModelIndex parent, long stream);
@io.qt.QtUninvokable
protected final void encodeData(java.util.Collection indexes, io.qt.core.QDataStream stream){
java.util.Objects.requireNonNull(stream, "Argument 'stream': null not expected.");
encodeData_native_cref_QList_ref_QDataStream_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), indexes, QtJambi_LibraryUtilities.internal.checkedNativeId(stream));
}
@io.qt.QtUninvokable
private native void encodeData_native_cref_QList_ref_QDataStream_constfct(long __this__nativeId, java.util.Collection indexes, long stream);
/**
* See QAbstractItemModel::endInsertColumns()
*/
@io.qt.QtDeclaredFinal
@io.qt.QtUninvokable
protected void endInsertColumns(){
endInsertColumns_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void endInsertColumns_native(long __this__nativeId);
/**
* See QAbstractItemModel::endInsertRows()
*/
@io.qt.QtDeclaredFinal
@io.qt.QtUninvokable
protected void endInsertRows(){
endInsertRows_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void endInsertRows_native(long __this__nativeId);
/**
* See QAbstractItemModel::endMoveColumns()
*/
@io.qt.QtUninvokable
protected final void endMoveColumns(){
endMoveColumns_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void endMoveColumns_native(long __this__nativeId);
/**
* See QAbstractItemModel::endMoveRows()
*/
@io.qt.QtUninvokable
protected final void endMoveRows(){
endMoveRows_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void endMoveRows_native(long __this__nativeId);
/**
* See QAbstractItemModel::endRemoveColumns()
*/
@io.qt.QtDeclaredFinal
@io.qt.QtUninvokable
protected void endRemoveColumns(){
endRemoveColumns_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void endRemoveColumns_native(long __this__nativeId);
/**
* See QAbstractItemModel::endRemoveRows()
*/
@io.qt.QtDeclaredFinal
@io.qt.QtUninvokable
protected void endRemoveRows(){
endRemoveRows_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void endRemoveRows_native(long __this__nativeId);
/**
* See QAbstractItemModel::endResetModel()
*/
@io.qt.QtDeclaredFinal
@io.qt.QtUninvokable
protected void endResetModel(){
endResetModel_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void endResetModel_native(long __this__nativeId);
/**
* Overloaded function for {@link #hasIndex(int, int, io.qt.core.QModelIndex)}
* with parent = null
.
*/
public final boolean hasIndex(int row, int column) {
return hasIndex(row, column, (io.qt.core.QModelIndex)null);
}
/**
* See QAbstractItemModel::hasIndex(int,int,QModelIndex)const
*/
public final boolean hasIndex(int row, int column, io.qt.core.QModelIndex parent){
return hasIndex_native_int_int_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), row, column, parent);
}
private native boolean hasIndex_native_int_int_cref_QModelIndex_constfct(long __this__nativeId, int row, int column, io.qt.core.QModelIndex parent);
/**
* Overloaded function for {@link #insertColumn(int, io.qt.core.QModelIndex)}
* with parent = null
.
*/
@io.qt.QtUninvokable
public final boolean insertColumn(int column) {
return insertColumn(column, (io.qt.core.QModelIndex)null);
}
/**
* See QAbstractItemModel::insertColumn(int,QModelIndex)
*/
@io.qt.QtUninvokable
public final boolean insertColumn(int column, io.qt.core.QModelIndex parent){
return insertColumn_native_int_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), column, parent);
}
@io.qt.QtUninvokable
private native boolean insertColumn_native_int_cref_QModelIndex(long __this__nativeId, int column, io.qt.core.QModelIndex parent);
/**
* Overloaded function for {@link #insertRow(int, io.qt.core.QModelIndex)}
* with parent = null
.
*/
@io.qt.QtUninvokable
public final boolean insertRow(int row) {
return insertRow(row, (io.qt.core.QModelIndex)null);
}
/**
* See QAbstractItemModel::insertRow(int,QModelIndex)
*/
@io.qt.QtUninvokable
public final boolean insertRow(int row, io.qt.core.QModelIndex parent){
return insertRow_native_int_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), row, parent);
}
@io.qt.QtUninvokable
private native boolean insertRow_native_int_cref_QModelIndex(long __this__nativeId, int row, io.qt.core.QModelIndex parent);
/**
* See QAbstractItemModel::moveColumn(QModelIndex,int,QModelIndex,int)
*/
@io.qt.QtUninvokable
public final boolean moveColumn(io.qt.core.QModelIndex sourceParent, int sourceColumn, io.qt.core.QModelIndex destinationParent, int destinationChild){
return moveColumn_native_cref_QModelIndex_int_cref_QModelIndex_int(QtJambi_LibraryUtilities.internal.nativeId(this), sourceParent, sourceColumn, destinationParent, destinationChild);
}
@io.qt.QtUninvokable
private native boolean moveColumn_native_cref_QModelIndex_int_cref_QModelIndex_int(long __this__nativeId, io.qt.core.QModelIndex sourceParent, int sourceColumn, io.qt.core.QModelIndex destinationParent, int destinationChild);
/**
* See QAbstractItemModel::moveRow(QModelIndex,int,QModelIndex,int)
*/
@io.qt.QtUninvokable
public final boolean moveRow(io.qt.core.QModelIndex sourceParent, int sourceRow, io.qt.core.QModelIndex destinationParent, int destinationChild){
return moveRow_native_cref_QModelIndex_int_cref_QModelIndex_int(QtJambi_LibraryUtilities.internal.nativeId(this), sourceParent, sourceRow, destinationParent, destinationChild);
}
@io.qt.QtUninvokable
private native boolean moveRow_native_cref_QModelIndex_int_cref_QModelIndex_int(long __this__nativeId, io.qt.core.QModelIndex sourceParent, int sourceRow, io.qt.core.QModelIndex destinationParent, int destinationChild);
/**
* See QAbstractItemModel::persistentIndexList()const
*/
@io.qt.QtUninvokable
protected final io.qt.core.QList persistentIndexList(){
return persistentIndexList_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QList persistentIndexList_native_constfct(long __this__nativeId);
/**
* Overloaded function for {@link #removeColumn(int, io.qt.core.QModelIndex)}
* with parent = null
.
*/
@io.qt.QtUninvokable
public final boolean removeColumn(int column) {
return removeColumn(column, (io.qt.core.QModelIndex)null);
}
/**
* See QAbstractItemModel::removeColumn(int,QModelIndex)
*/
@io.qt.QtUninvokable
public final boolean removeColumn(int column, io.qt.core.QModelIndex parent){
return removeColumn_native_int_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), column, parent);
}
@io.qt.QtUninvokable
private native boolean removeColumn_native_int_cref_QModelIndex(long __this__nativeId, int column, io.qt.core.QModelIndex parent);
/**
* Overloaded function for {@link #removeRow(int, io.qt.core.QModelIndex)}
* with parent = null
.
*/
@io.qt.QtUninvokable
public final boolean removeRow(int row) {
return removeRow(row, (io.qt.core.QModelIndex)null);
}
/**
* See QAbstractItemModel::removeRow(int,QModelIndex)
*/
@io.qt.QtUninvokable
public final boolean removeRow(int row, io.qt.core.QModelIndex parent){
return removeRow_native_int_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), row, parent);
}
@io.qt.QtUninvokable
private native boolean removeRow_native_int_cref_QModelIndex(long __this__nativeId, int row, io.qt.core.QModelIndex parent);
/**
* See QAbstractItemModel::buddy(QModelIndex)const
*/
@io.qt.QtUninvokable
public io.qt.core.QModelIndex buddy(io.qt.core.QModelIndex index){
return buddy_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@io.qt.QtUninvokable
private native io.qt.core.QModelIndex buddy_native_cref_QModelIndex_constfct(long __this__nativeId, io.qt.core.QModelIndex index);
/**
* See QAbstractItemModel::canDropMimeData(const QMimeData*,Qt::DropAction,int,int,QModelIndex)const
*/
@io.qt.QtUninvokable
public boolean canDropMimeData(io.qt.core.QMimeData data, io.qt.core.Qt.DropAction action, int row, int column, io.qt.core.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, parent);
}
@io.qt.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, io.qt.core.QModelIndex parent);
/**
* See QAbstractItemModel::canFetchMore(QModelIndex)const
*/
public boolean canFetchMore(io.qt.core.QModelIndex parent){
return canFetchMore_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), parent);
}
private native boolean canFetchMore_native_cref_QModelIndex_constfct(long __this__nativeId, io.qt.core.QModelIndex parent);
/**
* See QAbstractItemModel::clearItemData(QModelIndex)
*/
@io.qt.QtUninvokable
public boolean clearItemData(io.qt.core.QModelIndex index){
return clearItemData_native_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@io.qt.QtUninvokable
private native boolean clearItemData_native_cref_QModelIndex(long __this__nativeId, io.qt.core.QModelIndex index);
/**
* Overloaded function for {@link #columnCount(io.qt.core.QModelIndex)}
* with parent = null
.
*/
public final int columnCount() {
return columnCount((io.qt.core.QModelIndex)null);
}
/**
* See QAbstractItemModel::columnCount(QModelIndex)const
*/
public abstract int columnCount(io.qt.core.QModelIndex parent);
private native int columnCount_native_cref_QModelIndex_constfct(long __this__nativeId, io.qt.core.QModelIndex parent);
/**
* Overloaded function for {@link #data(io.qt.core.QModelIndex, int)}
* with role = 0
.
*/
public final java.lang.Object data(io.qt.core.QModelIndex index) {
return data(index, (int)0);
}
/**
* See QAbstractItemModel::data(QModelIndex,int)const
*/
public abstract java.lang.Object data(io.qt.core.QModelIndex index, int role);
private native java.lang.Object data_native_cref_QModelIndex_int_constfct(long __this__nativeId, io.qt.core.QModelIndex index, int role);
/**
* See QAbstractItemModel::dropMimeData(const QMimeData*,Qt::DropAction,int,int,QModelIndex)
*/
@io.qt.QtUninvokable
public boolean dropMimeData(io.qt.core.QMimeData data, io.qt.core.Qt.DropAction action, int row, int column, io.qt.core.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, parent);
}
@io.qt.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, io.qt.core.QModelIndex parent);
/**
* See QAbstractItemModel::fetchMore(QModelIndex)
*/
public void fetchMore(io.qt.core.QModelIndex parent){
fetchMore_native_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), parent);
}
private native void fetchMore_native_cref_QModelIndex(long __this__nativeId, io.qt.core.QModelIndex parent);
/**
* See QAbstractItemModel::flags(QModelIndex)const
*/
public io.qt.core.Qt.ItemFlags flags(io.qt.core.QModelIndex index){
return new io.qt.core.Qt.ItemFlags(flags_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index));
}
private native int flags_native_cref_QModelIndex_constfct(long __this__nativeId, io.qt.core.QModelIndex index);
/**
* Overloaded function for {@link #hasChildren(io.qt.core.QModelIndex)}
* with parent = null
.
*/
public final boolean hasChildren() {
return hasChildren((io.qt.core.QModelIndex)null);
}
/**
* See QAbstractItemModel::hasChildren(QModelIndex)const
*/
public boolean hasChildren(io.qt.core.QModelIndex parent){
return hasChildren_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), parent);
}
private native boolean hasChildren_native_cref_QModelIndex_constfct(long __this__nativeId, io.qt.core.QModelIndex parent);
/**
* Overloaded function for {@link #headerData(int, io.qt.core.Qt.Orientation, int)}
* with role = 0
.
*/
public final java.lang.Object headerData(int section, io.qt.core.Qt.Orientation orientation) {
return headerData(section, orientation, (int)0);
}
/**
* See QAbstractItemModel::headerData(int,Qt::Orientation,int)const
*/
public java.lang.Object headerData(int section, io.qt.core.Qt.Orientation orientation, int role){
return headerData_native_int_Qt_Orientation_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), section, orientation.value(), role);
}
private native java.lang.Object headerData_native_int_Qt_Orientation_int_constfct(long __this__nativeId, int section, int orientation, int role);
/**
* Overloaded function for {@link #index(int, int, io.qt.core.QModelIndex)}
* with parent = null
.
*/
public final io.qt.core.QModelIndex index(int row, int column) {
return index(row, column, (io.qt.core.QModelIndex)null);
}
/**
* See QAbstractItemModel::index(int,int,QModelIndex)const
*/
public abstract io.qt.core.QModelIndex index(int row, int column, io.qt.core.QModelIndex parent);
private native io.qt.core.QModelIndex index_native_int_int_cref_QModelIndex_constfct(long __this__nativeId, int row, int column, io.qt.core.QModelIndex parent);
/**
* Overloaded function for {@link #insertColumns(int, int, io.qt.core.QModelIndex)}
* with parent = null
.
*/
@io.qt.QtUninvokable
public final boolean insertColumns(int column, int count) {
return insertColumns(column, count, (io.qt.core.QModelIndex)null);
}
/**
* See QAbstractItemModel::insertColumns(int,int,QModelIndex)
*/
@io.qt.QtUninvokable
public boolean insertColumns(int column, int count, io.qt.core.QModelIndex parent){
return insertColumns_native_int_int_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), column, count, parent);
}
@io.qt.QtUninvokable
private native boolean insertColumns_native_int_int_cref_QModelIndex(long __this__nativeId, int column, int count, io.qt.core.QModelIndex parent);
/**
* Overloaded function for {@link #insertRows(int, int, io.qt.core.QModelIndex)}
* with parent = null
.
*/
@io.qt.QtUninvokable
public final boolean insertRows(int row, int count) {
return insertRows(row, count, (io.qt.core.QModelIndex)null);
}
/**
* See QAbstractItemModel::insertRows(int,int,QModelIndex)
*/
@io.qt.QtUninvokable
public boolean insertRows(int row, int count, io.qt.core.QModelIndex parent){
return insertRows_native_int_int_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), row, count, parent);
}
@io.qt.QtUninvokable
private native boolean insertRows_native_int_int_cref_QModelIndex(long __this__nativeId, int row, int count, io.qt.core.QModelIndex parent);
/**
* See QAbstractItemModel::itemData(QModelIndex)const
*/
@io.qt.QtUninvokable
public java.util.NavigableMap itemData(io.qt.core.QModelIndex index){
return itemData_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@io.qt.QtUninvokable
private native java.util.NavigableMap itemData_native_cref_QModelIndex_constfct(long __this__nativeId, io.qt.core.QModelIndex index);
/**
* Overloaded function for {@link #match(io.qt.core.QModelIndex, int, java.lang.Object, int, io.qt.core.Qt.MatchFlags)}.
*/
public final java.util.List match(io.qt.core.QModelIndex start, int role, java.lang.Object value, int hits, io.qt.core.Qt.MatchFlag ... flags){
return match(start, role, value, hits, new io.qt.core.Qt.MatchFlags(flags));
}
/**
* Overloaded function for {@link #match(io.qt.core.QModelIndex, int, java.lang.Object, int, io.qt.core.Qt.MatchFlags)}
* with flags = new io.qt.core.Qt.MatchFlags(io.qt.core.Qt.MatchFlag.MatchStartsWith, io.qt.core.Qt.MatchFlag.MatchWrap)
.
*/
public final java.util.List match(io.qt.core.QModelIndex start, int role, java.lang.Object value, int hits) {
return match(start, role, value, hits, new io.qt.core.Qt.MatchFlags(io.qt.core.Qt.MatchFlag.MatchStartsWith, io.qt.core.Qt.MatchFlag.MatchWrap));
}
/**
* Overloaded function for {@link #match(io.qt.core.QModelIndex, int, java.lang.Object, int, io.qt.core.Qt.MatchFlags)}
* with:
* hits = 1
* flags = new io.qt.core.Qt.MatchFlags(io.qt.core.Qt.MatchFlag.MatchStartsWith, io.qt.core.Qt.MatchFlag.MatchWrap)
*
*/
public final java.util.List match(io.qt.core.QModelIndex start, int role, java.lang.Object value) {
return match(start, role, value, (int)1, new io.qt.core.Qt.MatchFlags(io.qt.core.Qt.MatchFlag.MatchStartsWith, io.qt.core.Qt.MatchFlag.MatchWrap));
}
/**
* See QAbstractItemModel::match(QModelIndex,int,QVariant,int,Qt::MatchFlags)const
*/
public java.util.List match(io.qt.core.QModelIndex start, int role, java.lang.Object value, int hits, io.qt.core.Qt.MatchFlags flags){
return match_native_cref_QModelIndex_int_cref_QVariant_int_QFlags_Qt_MatchFlag__constfct(QtJambi_LibraryUtilities.internal.nativeId(this), start, role, value, hits, flags.value());
}
private native java.util.List match_native_cref_QModelIndex_int_cref_QVariant_int_QFlags_Qt_MatchFlag__constfct(long __this__nativeId, io.qt.core.QModelIndex start, int role, java.lang.Object value, int hits, int flags);
/**
* See QAbstractItemModel::mimeData(QModelIndexList)const
*/
@io.qt.QtUninvokable
public io.qt.core.QMimeData mimeData(java.util.Collection indexes){
return mimeData_native_cref_QList_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), indexes);
}
@io.qt.QtUninvokable
private native io.qt.core.QMimeData mimeData_native_cref_QList_constfct(long __this__nativeId, java.util.Collection indexes);
/**
* See QAbstractItemModel::mimeTypes()const
*/
@io.qt.QtUninvokable
public java.util.List mimeTypes(){
return mimeTypes_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.util.List mimeTypes_native_constfct(long __this__nativeId);
/**
* See QAbstractItemModel::moveColumns(QModelIndex,int,int,QModelIndex,int)
*/
@io.qt.QtUninvokable
public boolean moveColumns(io.qt.core.QModelIndex sourceParent, int sourceColumn, int count, io.qt.core.QModelIndex destinationParent, int destinationChild){
return moveColumns_native_cref_QModelIndex_int_int_cref_QModelIndex_int(QtJambi_LibraryUtilities.internal.nativeId(this), sourceParent, sourceColumn, count, destinationParent, destinationChild);
}
@io.qt.QtUninvokable
private native boolean moveColumns_native_cref_QModelIndex_int_int_cref_QModelIndex_int(long __this__nativeId, io.qt.core.QModelIndex sourceParent, int sourceColumn, int count, io.qt.core.QModelIndex destinationParent, int destinationChild);
/**
* See QAbstractItemModel::moveRows(QModelIndex,int,int,QModelIndex,int)
*/
@io.qt.QtUninvokable
public boolean moveRows(io.qt.core.QModelIndex sourceParent, int sourceRow, int count, io.qt.core.QModelIndex destinationParent, int destinationChild){
return moveRows_native_cref_QModelIndex_int_int_cref_QModelIndex_int(QtJambi_LibraryUtilities.internal.nativeId(this), sourceParent, sourceRow, count, destinationParent, destinationChild);
}
@io.qt.QtUninvokable
private native boolean moveRows_native_cref_QModelIndex_int_int_cref_QModelIndex_int(long __this__nativeId, io.qt.core.QModelIndex sourceParent, int sourceRow, int count, io.qt.core.QModelIndex destinationParent, int destinationChild);
/**
* See QAbstractItemModel::multiData(QModelIndex,QModelRoleDataSpan)const
*/
@io.qt.QtUninvokable
public void multiData(io.qt.core.QModelIndex index, java.util.Map roleDataSpan){
multiData_native_cref_QModelIndex_QModelRoleDataSpan_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index, roleDataSpan);
}
@io.qt.QtUninvokable
private native void multiData_native_cref_QModelIndex_QModelRoleDataSpan_constfct(long __this__nativeId, io.qt.core.QModelIndex index, java.util.Map roleDataSpan);
/**
* See QAbstractItemModel::parent(QModelIndex)const
*/
public abstract io.qt.core.QModelIndex parent(io.qt.core.QModelIndex child);
private native io.qt.core.QModelIndex parent_native_cref_QModelIndex_constfct(long __this__nativeId, io.qt.core.QModelIndex child);
/**
* Overloaded function for {@link #removeColumns(int, int, io.qt.core.QModelIndex)}
* with parent = null
.
*/
@io.qt.QtUninvokable
public final boolean removeColumns(int column, int count) {
return removeColumns(column, count, (io.qt.core.QModelIndex)null);
}
/**
* See QAbstractItemModel::removeColumns(int,int,QModelIndex)
*/
@io.qt.QtUninvokable
public boolean removeColumns(int column, int count, io.qt.core.QModelIndex parent){
return removeColumns_native_int_int_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), column, count, parent);
}
@io.qt.QtUninvokable
private native boolean removeColumns_native_int_int_cref_QModelIndex(long __this__nativeId, int column, int count, io.qt.core.QModelIndex parent);
/**
* Overloaded function for {@link #removeRows(int, int, io.qt.core.QModelIndex)}
* with parent = null
.
*/
@io.qt.QtUninvokable
public final boolean removeRows(int row, int count) {
return removeRows(row, count, (io.qt.core.QModelIndex)null);
}
/**
* See QAbstractItemModel::removeRows(int,int,QModelIndex)
*/
@io.qt.QtUninvokable
public boolean removeRows(int row, int count, io.qt.core.QModelIndex parent){
return removeRows_native_int_int_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), row, count, parent);
}
@io.qt.QtUninvokable
private native boolean removeRows_native_int_int_cref_QModelIndex(long __this__nativeId, int row, int count, io.qt.core.QModelIndex parent);
/**
* See QAbstractItemModel::resetInternalData()
*/
protected void resetInternalData(){
resetInternalData_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void resetInternalData_native(long __this__nativeId);
/**
* See QAbstractItemModel::revert()
*/
public void revert(){
revert_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void revert_native(long __this__nativeId);
/**
* See QAbstractItemModel::roleNames()const
*/
@io.qt.QtUninvokable
public java.util.Map roleNames(){
return roleNames_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.util.Map roleNames_native_constfct(long __this__nativeId);
/**
* Overloaded function for {@link #rowCount(io.qt.core.QModelIndex)}
* with parent = null
.
*/
public final int rowCount() {
return rowCount((io.qt.core.QModelIndex)null);
}
/**
* See QAbstractItemModel::rowCount(QModelIndex)const
*/
public abstract int rowCount(io.qt.core.QModelIndex parent);
private native int rowCount_native_cref_QModelIndex_constfct(long __this__nativeId, io.qt.core.QModelIndex parent);
/**
* Overloaded function for {@link #setData(io.qt.core.QModelIndex, java.lang.Object, int)}
* with role = 2
.
*/
public final boolean setData(io.qt.core.QModelIndex index, java.lang.Object value) {
return setData(index, value, (int)2);
}
/**
* See QAbstractItemModel::setData(QModelIndex,QVariant,int)
*/
public boolean setData(io.qt.core.QModelIndex index, java.lang.Object value, int role){
return setData_native_cref_QModelIndex_cref_QVariant_int(QtJambi_LibraryUtilities.internal.nativeId(this), index, value, role);
}
private native boolean setData_native_cref_QModelIndex_cref_QVariant_int(long __this__nativeId, io.qt.core.QModelIndex index, java.lang.Object value, int role);
/**
* Overloaded function for {@link #setHeaderData(int, io.qt.core.Qt.Orientation, java.lang.Object, int)}
* with role = 2
.
*/
@io.qt.QtUninvokable
public final boolean setHeaderData(int section, io.qt.core.Qt.Orientation orientation, java.lang.Object value) {
return setHeaderData(section, orientation, value, (int)2);
}
/**
* See QAbstractItemModel::setHeaderData(int,Qt::Orientation,QVariant,int)
*/
@io.qt.QtUninvokable
public boolean setHeaderData(int section, io.qt.core.Qt.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);
}
@io.qt.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>)
*/
@io.qt.QtUninvokable
public boolean setItemData(io.qt.core.QModelIndex index, java.util.Map roles){
return setItemData_native_cref_QModelIndex_cref_QMap(QtJambi_LibraryUtilities.internal.nativeId(this), index, roles);
}
@io.qt.QtUninvokable
private native boolean setItemData_native_cref_QModelIndex_cref_QMap(long __this__nativeId, io.qt.core.QModelIndex index, java.util.Map roles);
/**
* See QAbstractItemModel::sibling(int,int,QModelIndex)const
*/
public io.qt.core.QModelIndex sibling(int row, int column, io.qt.core.QModelIndex idx){
return sibling_native_int_int_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), row, column, idx);
}
private native io.qt.core.QModelIndex sibling_native_int_int_cref_QModelIndex_constfct(long __this__nativeId, int row, int column, io.qt.core.QModelIndex idx);
/**
* Overloaded function for {@link #sort(int, io.qt.core.Qt.SortOrder)}
* with order = io.qt.core.Qt.SortOrder.AscendingOrder
.
*/
@io.qt.QtUninvokable
public final void sort(int column) {
sort(column, io.qt.core.Qt.SortOrder.AscendingOrder);
}
/**
* See QAbstractItemModel::sort(int,Qt::SortOrder)
*/
@io.qt.QtUninvokable
public void sort(int column, io.qt.core.Qt.SortOrder order){
sort_native_int_Qt_SortOrder(QtJambi_LibraryUtilities.internal.nativeId(this), column, order.value());
}
@io.qt.QtUninvokable
private native void sort_native_int_Qt_SortOrder(long __this__nativeId, int column, int order);
/**
* See QAbstractItemModel::span(QModelIndex)const
*/
@io.qt.QtUninvokable
public io.qt.core.QSize span(io.qt.core.QModelIndex index){
return span_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@io.qt.QtUninvokable
private native io.qt.core.QSize span_native_cref_QModelIndex_constfct(long __this__nativeId, io.qt.core.QModelIndex index);
/**
* See QAbstractItemModel::submit()
*/
public boolean submit(){
return submit_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native boolean submit_native(long __this__nativeId);
/**
* See QAbstractItemModel::supportedDragActions()const
*/
@io.qt.QtUninvokable
public io.qt.core.Qt.DropActions supportedDragActions(){
return new io.qt.core.Qt.DropActions(supportedDragActions_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int supportedDragActions_native_constfct(long __this__nativeId);
/**
* See QAbstractItemModel::supportedDropActions()const
*/
@io.qt.QtUninvokable
public io.qt.core.Qt.DropActions supportedDropActions(){
return new io.qt.core.Qt.DropActions(supportedDropActions_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int supportedDropActions_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QAbstractItemModel(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
*/
@io.qt.NativeAccess
protected QAbstractItemModel(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@io.qt.QtUninvokable
private static native void initialize_native(QAbstractItemModel instance, QDeclarativeConstructor constructor);
@io.qt.QtUninvokable
public final boolean setData(int row, int col, Object value) {
return setData(QtJambi_LibraryUtilities.internal.nativeId(this), row, col, value, io.qt.core.Qt.ItemDataRole.DisplayRole);
}
@io.qt.QtUninvokable
public final boolean setData(int row, int col, Object value, int role) {
return setData(QtJambi_LibraryUtilities.internal.nativeId(this), row, col, value, role);
}
@io.qt.QtUninvokable
private native final boolean setData(long nativeId, int row, int col, Object value, int role);
@io.qt.QtUninvokable
public final Object data(int row, int col) {
return data(QtJambi_LibraryUtilities.internal.nativeId(this), row, col, Qt.ItemDataRole.DisplayRole);
}
@io.qt.QtUninvokable
public final Object data(int row, int col, int role) {
return data(QtJambi_LibraryUtilities.internal.nativeId(this), row, col, role);
}
@io.qt.QtUninvokable
private native final Object data(long nativeId, int row, int col, int role);
@io.qt.QtUninvokable
protected final io.qt.core.QModelIndex createIndex(int row, int column){
return createIndex(row, column, 0);
}
}