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

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

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


/**
 * 

Used to locate data in a data model

*

Java wrapper for Qt class QPersistentModelIndex

*/ public class QPersistentModelIndex extends io.qt.QtObject implements java.lang.Comparable, java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } public QPersistentModelIndex(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QPersistentModelIndex instance); /** *

See QPersistentModelIndex::QPersistentModelIndex(QModelIndex)

*/ public QPersistentModelIndex(io.qt.core.QModelIndex index){ super((QPrivateConstructor)null); initialize_native(this, index); } private native static void initialize_native(QPersistentModelIndex instance, io.qt.core.QModelIndex index); /** *

See QPersistentModelIndex::QPersistentModelIndex(QPersistentModelIndex)

*/ public QPersistentModelIndex(io.qt.core.QPersistentModelIndex other){ super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(QPersistentModelIndex instance, io.qt.core.QPersistentModelIndex other); /** *

See QPersistentModelIndex::column()const

*/ @io.qt.QtUninvokable public final int column(){ return column_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int column_native_constfct(long __this__nativeId); /** *

Overloaded function for {@link #data(int)} * with role = 0.

*/ @io.qt.QtUninvokable public final java.lang.Object data() { return data((int)0); } /** *

See QPersistentModelIndex::data(int)const

*/ @io.qt.QtUninvokable public final java.lang.Object data(int role){ return data_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), role); } @io.qt.QtUninvokable private native java.lang.Object data_native_int_constfct(long __this__nativeId, int role); /** *

See QPersistentModelIndex::flags()const

*/ @io.qt.QtUninvokable public final io.qt.core.Qt.ItemFlags flags(){ return new io.qt.core.Qt.ItemFlags(flags_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int flags_native_constfct(long __this__nativeId); @io.qt.QtUninvokable public final long internalId(){ return internalId_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native long internalId_native_constfct(long __this__nativeId); /** *

See QPersistentModelIndex::isValid()const

*/ @io.qt.QtUninvokable public final boolean isValid(){ return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isValid_native_constfct(long __this__nativeId); /** *

See QPersistentModelIndex::model()const

*/ @io.qt.QtUninvokable public final io.qt.core.QAbstractItemModel model(){ return model_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QAbstractItemModel model_native_constfct(long __this__nativeId); /** *

See QPersistentModelIndex::multiData(QModelRoleDataSpan)const

*/ @io.qt.QtUninvokable public final void multiData(java.util.Map roleDataSpan){ multiData_native_QModelRoleDataSpan_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), roleDataSpan); } @io.qt.QtUninvokable private native void multiData_native_QModelRoleDataSpan_constfct(long __this__nativeId, java.util.Map roleDataSpan); /** *

See QPersistentModelIndex::operator QModelIndex()const

*/ @io.qt.QtUninvokable public final io.qt.core.QModelIndex toIndex(){ return toIndex_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QModelIndex toIndex_native_constfct(long __this__nativeId); /** *

See QPersistentModelIndex::operator<(QPersistentModelIndex)const

*/ @io.qt.QtUninvokable private final boolean operator_less(io.qt.core.QPersistentModelIndex other){ return operator_less_native_cref_QPersistentModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @io.qt.QtUninvokable private native boolean operator_less_native_cref_QPersistentModelIndex_constfct(long __this__nativeId, long other); /** *

See QPersistentModelIndex::operator==(QModelIndex)const

*/ @io.qt.QtUninvokable private final boolean operator_equal(io.qt.core.QModelIndex other){ return operator_equal_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), other); } @io.qt.QtUninvokable private native boolean operator_equal_native_cref_QModelIndex_constfct(long __this__nativeId, io.qt.core.QModelIndex other); /** *

See QPersistentModelIndex::operator==(QPersistentModelIndex)const

*/ @io.qt.QtUninvokable private final boolean operator_equal(io.qt.core.QPersistentModelIndex other){ return operator_equal_native_cref_QPersistentModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @io.qt.QtUninvokable private native boolean operator_equal_native_cref_QPersistentModelIndex_constfct(long __this__nativeId, long other); /** *

See QPersistentModelIndex::parent()const

*/ @io.qt.QtUninvokable public final io.qt.core.QModelIndex parent(){ return parent_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QModelIndex parent_native_constfct(long __this__nativeId); /** *

See QPersistentModelIndex::row()const

*/ @io.qt.QtUninvokable public final int row(){ return row_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int row_native_constfct(long __this__nativeId); /** *

See QPersistentModelIndex::sibling(int,int)const

*/ @io.qt.QtUninvokable public final io.qt.core.QModelIndex sibling(int row, int column){ return sibling_native_int_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), row, column); } @io.qt.QtUninvokable private native io.qt.core.QModelIndex sibling_native_int_int_constfct(long __this__nativeId, int row, int column); /** *

See QPersistentModelIndex::swap(QPersistentModelIndex&)

*/ @io.qt.QtUninvokable public final void swap(io.qt.core.QPersistentModelIndex other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); swap_native_ref_QPersistentModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @io.qt.QtUninvokable private native void swap_native_ref_QPersistentModelIndex(long __this__nativeId, long other); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QPersistentModelIndex(QPrivateConstructor p) { super(p); } @Override @io.qt.QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.core.QModelIndex) { return operator_equal((io.qt.core.QModelIndex) other); } else if (other instanceof io.qt.core.QPersistentModelIndex) { return operator_equal((io.qt.core.QPersistentModelIndex) other); } return false; } @io.qt.QtUninvokable public int compareTo(io.qt.core.QPersistentModelIndex other) { if (equals(other)) return 0; else if (operator_less(other)) return -1; else return 1; } @io.qt.QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native static int hashCode_native(long __this_nativeId); @Override @io.qt.QtUninvokable public String toString() { return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private static native String toString_native(long __this_nativeId); @Override public QPersistentModelIndex clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native QPersistentModelIndex clone_native(long __this_nativeId); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy