io.qt.core.QStringListModel Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.core;
import io.qt.*;
/**
* 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.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QStringListModel.class);
/**
* See QStringListModel:: QStringListModel(QObject*)
*/
public QStringListModel(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QStringListModel instance, io.qt.core.QObject parent);
/**
* See QStringListModel:: QStringListModel(QStringList, QObject*)
*/
public QStringListModel(java.util.@NonNull Collection strings, io.qt.core.@Nullable 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)
*/
@QtUninvokable
public final void setStringList(java.util.@NonNull Collection strings){
setStringList_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), strings);
}
@QtUninvokable
private native void setStringList_native_cref_QStringList(long __this__nativeId, java.util.Collection strings);
/**
* See QStringListModel:: stringList()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QStringList stringList(){
return stringList_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QStringList stringList_native_constfct(long __this__nativeId);
/**
* 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 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:: 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:: 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:: moveRows(QModelIndex, int, int, QModelIndex, int)
*/
@QtUninvokable
@Override
public boolean moveRows(io.qt.core.@NonNull QModelIndex sourceParent, int sourceRow, int count, io.qt.core.@NonNull QModelIndex destinationParent, int destinationChild){
return moveRows_native_cref_QModelIndex_int_int_cref_QModelIndex_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(sourceParent), sourceRow, count, QtJambi_LibraryUtilities.internal.checkedNativeId(destinationParent), destinationChild);
}
@QtUninvokable
private native boolean moveRows_native_cref_QModelIndex_int_int_cref_QModelIndex_int(long __this__nativeId, long sourceParent, int sourceRow, int count, long destinationParent, int destinationChild);
/**
* 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:: 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:: 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:: 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:: 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 QStringListModel(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QStringListModel(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QStringListModel instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QStringListModel(io.qt.core.QObject)}
* with parent = null
.
*/
public QStringListModel() {
this((io.qt.core.QObject)null);
}
/**
* Overloaded constructor for {@link #QStringListModel(java.util.Collection, io.qt.core.QObject)}
* with parent = null
.
*/
public QStringListModel(java.util.@NonNull Collection strings) {
this(strings, (io.qt.core.QObject)null);
}
}