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

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

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


/**
 * 

Model that supplies strings to views

*

Java wrapper for Qt class QStringListModel

*/ public class QStringListModel extends io.qt.core.QAbstractListModel { /** * This variable stores the meta-object for the class. */ public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QStringListModel.class); /** *

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

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

See QStringListModel::QStringListModel(QObject*)

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

Overloaded constructor for {@link #QStringListModel(java.util.Collection, io.qt.core.QObject)} * with parent = null.

*/ public QStringListModel(java.util.Collection strings) { this(strings, (io.qt.core.QObject)null); } /** *

See QStringListModel::QStringListModel(QStringList,QObject*)

*/ public QStringListModel(java.util.Collection strings, io.qt.core.QObject parent){ super((QPrivateConstructor)null); initialize_native(this, strings, parent); } private native static void initialize_native(QStringListModel instance, java.util.Collection strings, io.qt.core.QObject parent); /** *

See QStringListModel::setStringList(QStringList)

*/ @io.qt.QtUninvokable public final void setStringList(java.util.Collection strings){ setStringList_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), strings); } @io.qt.QtUninvokable private native void setStringList_native_cref_QStringList(long __this__nativeId, java.util.Collection strings); /** *

See QStringListModel::stringList()const

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

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

See QAbstractItemModel::data(QModelIndex,int)const

*/ @io.qt.QtUninvokable 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); } @io.qt.QtUninvokable private native java.lang.Object data_native_cref_QModelIndex_int_constfct(long __this__nativeId, io.qt.core.QModelIndex index, int role); /** *

See QAbstractItemModel::flags(QModelIndex)const

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

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

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::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::rowCount(QModelIndex)const

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

See QAbstractItemModel::setData(QModelIndex,QVariant,int)

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

*/ @io.qt.QtUninvokable 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); } @io.qt.QtUninvokable 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); /** *

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::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 QStringListModel(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 QStringListModel(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @io.qt.QtUninvokable private static native void initialize_native(QStringListModel instance, QDeclarativeConstructor constructor); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy