io.qt.gui.QStandardItem Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Item for use with the QStandardItemModel class
* Java wrapper for Qt class QStandardItem
*/
public class QStandardItem extends QtObject
implements java.lang.Comparable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QStandardItem::ItemType
*/
@QtExtensibleEnum
public enum ItemType implements QtEnumerator {
/**
* Representing QStandardItem:: Type
*/
Type(0),
/**
* Representing QStandardItem:: UserType
*/
UserType(1000);
static {
QtJambi_LibraryUtilities.initialize();
}
private ItemType(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
* @throws QNoSuchEnumValueException if value not existent in the enum
*/
public static @NonNull ItemType resolve(int value) {
switch (value) {
case 0: return Type;
case 1000: return UserType;
default: return QtJambi_LibraryUtilities.internal.resolveEnum(ItemType.class, value, null);
}
}
/**
* Returns the corresponding enum entry for the given value and name.
* @param value
* @param name
* @return enum entry
* @throws QNoSuchEnumValueException if value not existent in the enum or name does not match.
*/
public static @NonNull ItemType resolve(int value, @Nullable String name) {
if(name==null || name.isEmpty())
return resolve(value);
else
return QtJambi_LibraryUtilities.internal.resolveEnum(ItemType.class, value, name);
}
private final int value;
}
/**
* See QStandardItem:: QStandardItem()
*/
public QStandardItem(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QStandardItem instance);
/**
* See QStandardItem:: QStandardItem(QIcon, QString)
*/
public QStandardItem(io.qt.gui.@NonNull QIcon icon, java.lang.@NonNull String text){
super((QPrivateConstructor)null);
initialize_native(this, icon, text);
}
private native static void initialize_native(QStandardItem instance, io.qt.gui.QIcon icon, java.lang.String text);
/**
* See QStandardItem:: QStandardItem(QStandardItem)
*/
protected QStandardItem(io.qt.gui.@StrictNonNull QStandardItem other){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
initialize_native(this, other);
}
private native static void initialize_native(QStandardItem instance, io.qt.gui.QStandardItem other);
/**
* See QStandardItem:: QStandardItem(QString)
*/
public QStandardItem(java.lang.@NonNull String text){
super((QPrivateConstructor)null);
initialize_native(this, text);
}
private native static void initialize_native(QStandardItem instance, java.lang.String text);
/**
* See QStandardItem:: QStandardItem(int, int)
*/
public QStandardItem(int rows, int columns){
super((QPrivateConstructor)null);
initialize_native(this, rows, columns);
}
private native static void initialize_native(QStandardItem instance, int rows, int columns);
/**
* See QStandardItem:: accessibleDescription()const
*/
@QtUninvokable
public final java.lang.@NonNull String accessibleDescription(){
return accessibleDescription_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String accessibleDescription_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: accessibleText()const
*/
@QtUninvokable
public final java.lang.@NonNull String accessibleText(){
return accessibleText_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String accessibleText_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: appendColumn(QList<QStandardItem*>)
*/
@QtUninvokable
public final void appendColumn(java.util.@NonNull Collection extends io.qt.gui.@Nullable QStandardItem> 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 extends io.qt.gui.QStandardItem> items);
/**
* See QStandardItem:: appendRow(QList<QStandardItem*>)
*/
@QtUninvokable
public final void appendRow(java.util.@NonNull Collection extends io.qt.gui.@Nullable QStandardItem> 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 extends io.qt.gui.QStandardItem> items);
/**
* See QStandardItem:: 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 QStandardItem:: appendRows(QList<QStandardItem*>)
*/
@QtUninvokable
public final void appendRows(java.util.@NonNull Collection extends io.qt.gui.@Nullable QStandardItem> items){
appendRows_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), items);
}
@QtUninvokable
private native void appendRows_native_cref_QList(long __this__nativeId, java.util.Collection extends io.qt.gui.QStandardItem> items);
/**
* See QStandardItem:: background()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QBrush background(){
return background_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QBrush background_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: checkState()const
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull CheckState checkState(){
return io.qt.core.Qt.CheckState.resolve(checkState_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int checkState_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: child(int, int)const
*/
@QtUninvokable
public final io.qt.gui.@Nullable QStandardItem child(int row, int column){
return child_native_int_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), row, column);
}
@QtUninvokable
private native io.qt.gui.QStandardItem child_native_int_int_constfct(long __this__nativeId, int row, int column);
/**
* See QStandardItem:: clearData()
*/
@QtUninvokable
public final void clearData(){
clearData_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void clearData_native(long __this__nativeId);
/**
* See QStandardItem:: column()const
*/
@QtUninvokable
public final int column(){
return column_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int column_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: columnCount()const
*/
@QtUninvokable
public final int columnCount(){
return columnCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int columnCount_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: emitDataChanged()
*/
@QtUninvokable
protected final void emitDataChanged(){
emitDataChanged_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void emitDataChanged_native(long __this__nativeId);
/**
* See QStandardItem:: flags()const
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull ItemFlags flags(){
return new io.qt.core.Qt.ItemFlags(flags_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int flags_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: font()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QFont font(){
return font_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QFont font_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: foreground()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QBrush foreground(){
return foreground_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QBrush foreground_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: hasChildren()const
*/
@QtUninvokable
public final boolean hasChildren(){
return hasChildren_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean hasChildren_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: icon()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QIcon icon(){
return icon_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QIcon icon_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: index()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QModelIndex index(){
return index_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QModelIndex index_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: insertColumn(int, QList<QStandardItem*>)
*/
@QtUninvokable
public final void insertColumn(int column, java.util.@NonNull Collection extends io.qt.gui.@Nullable QStandardItem> 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 extends io.qt.gui.QStandardItem> items);
/**
* See QStandardItem:: insertColumns(int, int)
*/
@QtUninvokable
public final void insertColumns(int column, int count){
insertColumns_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), column, count);
}
@QtUninvokable
private native void insertColumns_native_int_int(long __this__nativeId, int column, int count);
/**
* See QStandardItem:: insertRow(int, QList<QStandardItem*>)
*/
@QtUninvokable
public final void insertRow(int row, java.util.@NonNull Collection extends io.qt.gui.@Nullable QStandardItem> 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 extends io.qt.gui.QStandardItem> items);
/**
* See QStandardItem:: 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 QStandardItem:: insertRows(int, QList<QStandardItem*>)
*/
@QtUninvokable
public final void insertRows(int row, java.util.@NonNull Collection extends io.qt.gui.@Nullable QStandardItem> items){
insertRows_native_int_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), row, items);
}
@QtUninvokable
private native void insertRows_native_int_cref_QList(long __this__nativeId, int row, java.util.Collection extends io.qt.gui.QStandardItem> items);
/**
* See QStandardItem:: insertRows(int, int)
*/
@QtUninvokable
public final void insertRows(int row, int count){
insertRows_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), row, count);
}
@QtUninvokable
private native void insertRows_native_int_int(long __this__nativeId, int row, int count);
/**
* See QStandardItem:: isAutoTristate()const
*/
@QtUninvokable
public final boolean isAutoTristate(){
return isAutoTristate_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isAutoTristate_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: isCheckable()const
*/
@QtUninvokable
public final boolean isCheckable(){
return isCheckable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isCheckable_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: isDragEnabled()const
*/
@QtUninvokable
public final boolean isDragEnabled(){
return isDragEnabled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isDragEnabled_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: isDropEnabled()const
*/
@QtUninvokable
public final boolean isDropEnabled(){
return isDropEnabled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isDropEnabled_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: isEditable()const
*/
@QtUninvokable
public final boolean isEditable(){
return isEditable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isEditable_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: isEnabled()const
*/
@QtUninvokable
public final boolean isEnabled(){
return isEnabled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isEnabled_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: isSelectable()const
*/
@QtUninvokable
public final boolean isSelectable(){
return isSelectable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isSelectable_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: isUserTristate()const
*/
@QtUninvokable
public final boolean isUserTristate(){
return isUserTristate_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isUserTristate_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: model()const
*/
@QtUninvokable
public final io.qt.gui.@Nullable QStandardItemModel model(){
return model_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QStandardItemModel model_native_constfct(long __this__nativeId);
/**
* See operator<<(QDataStream&, QStandardItem)
*/
@QtUninvokable
public void writeTo(io.qt.core.@StrictNonNull QDataStream out){
java.util.Objects.requireNonNull(out, "Argument 'out': null not expected.");
writeTo_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(out));
}
@QtUninvokable
private native void writeTo_native_ref_QDataStream(long __this__nativeId, long out);
/**
* See QStandardItem:: operator=(QStandardItem)
*/
@QtUninvokable
protected final void assign(io.qt.gui.@StrictNonNull QStandardItem other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
assign_native_cref_QStandardItem(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QStandardItem(long __this__nativeId, long other);
/**
* See operator>>(QDataStream&, QStandardItem&)
*/
@QtUninvokable
public void readFrom(io.qt.core.@StrictNonNull QDataStream in){
java.util.Objects.requireNonNull(in, "Argument 'in': null not expected.");
readFrom_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(in));
}
@QtUninvokable
private native void readFrom_native_ref_QDataStream(long __this__nativeId, long in);
/**
* See QStandardItem:: parent()const
*/
@QtUninvokable
public final io.qt.gui.@Nullable QStandardItem parent(){
return parent_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QStandardItem parent_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: removeColumn(int)
*/
@QtUninvokable
public final void removeColumn(int column){
removeColumn_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), column);
}
@QtUninvokable
private native void removeColumn_native_int(long __this__nativeId, int column);
/**
* See QStandardItem:: removeColumns(int, int)
*/
@QtUninvokable
public final void removeColumns(int column, int count){
removeColumns_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), column, count);
}
@QtUninvokable
private native void removeColumns_native_int_int(long __this__nativeId, int column, int count);
/**
* See QStandardItem:: removeRow(int)
*/
@QtUninvokable
public final void removeRow(int row){
removeRow_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), row);
}
@QtUninvokable
private native void removeRow_native_int(long __this__nativeId, int row);
/**
* See QStandardItem:: removeRows(int, int)
*/
@QtUninvokable
public final void removeRows(int row, int count){
removeRows_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), row, count);
}
@QtUninvokable
private native void removeRows_native_int_int(long __this__nativeId, int row, int count);
/**
*
*/
@QtUninvokable
public final int row(){
return row_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int row_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: rowCount()const
*/
@QtUninvokable
public final int rowCount(){
return rowCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int rowCount_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: setAccessibleDescription(QString)
*/
@QtUninvokable
public final void setAccessibleDescription(java.lang.@NonNull String accessibleDescription){
setAccessibleDescription_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), accessibleDescription);
}
@QtUninvokable
private native void setAccessibleDescription_native_cref_QString(long __this__nativeId, java.lang.String accessibleDescription);
/**
* See QStandardItem:: setAccessibleText(QString)
*/
@QtUninvokable
public final void setAccessibleText(java.lang.@NonNull String accessibleText){
setAccessibleText_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), accessibleText);
}
@QtUninvokable
private native void setAccessibleText_native_cref_QString(long __this__nativeId, java.lang.String accessibleText);
/**
* See QStandardItem:: setAutoTristate(bool)
*/
@QtUninvokable
public final void setAutoTristate(boolean tristate){
setAutoTristate_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), tristate);
}
@QtUninvokable
private native void setAutoTristate_native_bool(long __this__nativeId, boolean tristate);
/**
* See QStandardItem:: setBackground(QBrush)
*/
@QtUninvokable
public final void setBackground(io.qt.gui.@NonNull QBrush brush){
setBackground_native_cref_QBrush(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(brush));
}
@QtUninvokable
private native void setBackground_native_cref_QBrush(long __this__nativeId, long brush);
/**
* See QStandardItem:: setCheckState(Qt::CheckState)
*/
@QtUninvokable
public final void setCheckState(io.qt.core.Qt.@NonNull CheckState checkState){
setCheckState_native_Qt_CheckState(QtJambi_LibraryUtilities.internal.nativeId(this), checkState.value());
}
@QtUninvokable
private native void setCheckState_native_Qt_CheckState(long __this__nativeId, int checkState);
/**
* See QStandardItem:: setCheckable(bool)
*/
@QtUninvokable
public final void setCheckable(boolean checkable){
setCheckable_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), checkable);
}
@QtUninvokable
private native void setCheckable_native_bool(long __this__nativeId, boolean checkable);
/**
* See QStandardItem:: setChild(int, QStandardItem*)
*/
@QtUninvokable
public final void setChild(int row, io.qt.gui.@Nullable QStandardItem item){
setChild_native_int_QStandardItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), row, QtJambi_LibraryUtilities.internal.checkedNativeId(item));
QtJambi_LibraryUtilities.internal.setCppOwnership(item);
}
@QtUninvokable
private native void setChild_native_int_QStandardItem_ptr(long __this__nativeId, int row, long item);
/**
* See QStandardItem:: setChild(int, int, QStandardItem*)
*/
@QtUninvokable
public final void setChild(int row, int column, io.qt.gui.@Nullable QStandardItem item){
setChild_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 setChild_native_int_int_QStandardItem_ptr(long __this__nativeId, int row, int column, long item);
/**
* See QStandardItem:: 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 QStandardItem:: setDragEnabled(bool)
*/
@QtUninvokable
public final void setDragEnabled(boolean dragEnabled){
setDragEnabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), dragEnabled);
}
@QtUninvokable
private native void setDragEnabled_native_bool(long __this__nativeId, boolean dragEnabled);
/**
* See QStandardItem:: setDropEnabled(bool)
*/
@QtUninvokable
public final void setDropEnabled(boolean dropEnabled){
setDropEnabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), dropEnabled);
}
@QtUninvokable
private native void setDropEnabled_native_bool(long __this__nativeId, boolean dropEnabled);
/**
* See QStandardItem:: setEditable(bool)
*/
@QtUninvokable
public final void setEditable(boolean editable){
setEditable_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), editable);
}
@QtUninvokable
private native void setEditable_native_bool(long __this__nativeId, boolean editable);
/**
* See QStandardItem:: setEnabled(bool)
*/
@QtUninvokable
public final void setEnabled(boolean enabled){
setEnabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enabled);
}
@QtUninvokable
private native void setEnabled_native_bool(long __this__nativeId, boolean enabled);
/**
* See QStandardItem:: setFlags(Qt::ItemFlags)
*/
@QtUninvokable
public final void setFlags(io.qt.core.Qt.@NonNull ItemFlags flags){
setFlags_native_Qt_ItemFlags(QtJambi_LibraryUtilities.internal.nativeId(this), flags.value());
}
@QtUninvokable
private native void setFlags_native_Qt_ItemFlags(long __this__nativeId, int flags);
/**
* See QStandardItem:: setFont(QFont)
*/
@QtUninvokable
public final void setFont(io.qt.gui.@NonNull QFont font){
setFont_native_cref_QFont(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(font));
}
@QtUninvokable
private native void setFont_native_cref_QFont(long __this__nativeId, long font);
/**
* See QStandardItem:: setForeground(QBrush)
*/
@QtUninvokable
public final void setForeground(io.qt.gui.@NonNull QBrush brush){
setForeground_native_cref_QBrush(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(brush));
}
@QtUninvokable
private native void setForeground_native_cref_QBrush(long __this__nativeId, long brush);
/**
* See QStandardItem:: setIcon(QIcon)
*/
@QtUninvokable
public final void setIcon(io.qt.gui.@NonNull QIcon icon){
setIcon_native_cref_QIcon(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(icon));
}
@QtUninvokable
private native void setIcon_native_cref_QIcon(long __this__nativeId, long icon);
/**
* See QStandardItem:: 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 QStandardItem:: setSelectable(bool)
*/
@QtUninvokable
public final void setSelectable(boolean selectable){
setSelectable_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), selectable);
}
@QtUninvokable
private native void setSelectable_native_bool(long __this__nativeId, boolean selectable);
/**
* See QStandardItem:: setSizeHint(QSize)
*/
@QtUninvokable
public final void setSizeHint(io.qt.core.@NonNull QSize sizeHint){
setSizeHint_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(sizeHint));
}
@QtUninvokable
private native void setSizeHint_native_cref_QSize(long __this__nativeId, long sizeHint);
/**
* See QStandardItem:: setStatusTip(QString)
*/
@QtUninvokable
public final void setStatusTip(java.lang.@NonNull String statusTip){
setStatusTip_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), statusTip);
}
@QtUninvokable
private native void setStatusTip_native_cref_QString(long __this__nativeId, java.lang.String statusTip);
/**
* See QStandardItem:: setText(QString)
*/
@QtUninvokable
public final void setText(java.lang.@NonNull String text){
setText_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text);
}
@QtUninvokable
private native void setText_native_cref_QString(long __this__nativeId, java.lang.String text);
/**
* See QStandardItem:: setTextAlignment(Qt::Alignment)
*/
@QtUninvokable
public final void setTextAlignment(io.qt.core.Qt.@NonNull Alignment textAlignment){
setTextAlignment_native_Qt_Alignment(QtJambi_LibraryUtilities.internal.nativeId(this), textAlignment.value());
}
@QtUninvokable
private native void setTextAlignment_native_Qt_Alignment(long __this__nativeId, int textAlignment);
/**
* See QStandardItem:: setToolTip(QString)
*/
@QtUninvokable
public final void setToolTip(java.lang.@NonNull String toolTip){
setToolTip_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), toolTip);
}
@QtUninvokable
private native void setToolTip_native_cref_QString(long __this__nativeId, java.lang.String toolTip);
/**
* See QStandardItem:: setUserTristate(bool)
*/
@QtUninvokable
public final void setUserTristate(boolean tristate){
setUserTristate_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), tristate);
}
@QtUninvokable
private native void setUserTristate_native_bool(long __this__nativeId, boolean tristate);
/**
* See QStandardItem:: setWhatsThis(QString)
*/
@QtUninvokable
public final void setWhatsThis(java.lang.@NonNull String whatsThis){
setWhatsThis_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), whatsThis);
}
@QtUninvokable
private native void setWhatsThis_native_cref_QString(long __this__nativeId, java.lang.String whatsThis);
/**
* See QStandardItem:: sizeHint()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QSize sizeHint(){
return sizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QSize sizeHint_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: sortChildren(int, Qt::SortOrder)
*/
@QtUninvokable
public final void sortChildren(int column, io.qt.core.Qt.@NonNull SortOrder order){
sortChildren_native_int_Qt_SortOrder(QtJambi_LibraryUtilities.internal.nativeId(this), column, order.value());
}
@QtUninvokable
private native void sortChildren_native_int_Qt_SortOrder(long __this__nativeId, int column, int order);
/**
* See QStandardItem:: statusTip()const
*/
@QtUninvokable
public final java.lang.@NonNull String statusTip(){
return statusTip_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String statusTip_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: takeChild(int, int)
*/
@QtUninvokable
public final io.qt.gui.@Nullable QStandardItem takeChild(int row, int column){
io.qt.gui.@Nullable QStandardItem __qt_return_value = takeChild_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 takeChild_native_int_int(long __this__nativeId, int row, int column);
/**
* See QStandardItem:: 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 QStandardItem:: 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 QStandardItem:: text()const
*/
@QtUninvokable
public final java.lang.@NonNull String text(){
return text_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String text_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: textAlignment()const
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull Alignment textAlignment(){
return new io.qt.core.Qt.Alignment(textAlignment_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int textAlignment_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: toolTip()const
*/
@QtUninvokable
public final java.lang.@NonNull String toolTip(){
return toolTip_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String toolTip_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: whatsThis()const
*/
@QtUninvokable
public final java.lang.@NonNull String whatsThis(){
return whatsThis_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String whatsThis_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: clone()const
*/
@QtUninvokable
public io.qt.gui.@Nullable QStandardItem clone(){
return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QStandardItem clone_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: data(int)const
*/
@QtUninvokable
public java.lang.Object data(int role){
return data_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), role);
}
@QtUninvokable
private native java.lang.Object data_native_int_constfct(long __this__nativeId, int role);
/**
* See QStandardItem:: multiData(QModelRoleDataSpan)const
* This function was introduced in Qt 6.0.
*/
@QtUninvokable
public void multiData(java.util.@NonNull Map roleDataSpan){
multiData_native_QModelRoleDataSpan_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), roleDataSpan);
}
@QtUninvokable
private native void multiData_native_QModelRoleDataSpan_constfct(long __this__nativeId, java.util.Map roleDataSpan);
/**
* See QStandardItem:: operator<(QStandardItem)const
*/
@QtUninvokable
private boolean operator_less(io.qt.gui.@StrictNonNull QStandardItem other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
return operator_less_native_cref_QStandardItem_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native boolean operator_less_native_cref_QStandardItem_constfct(long __this__nativeId, long other);
/**
* See QStandardItem:: read(QDataStream&)
*/
@QtUninvokable
public void read(io.qt.core.@StrictNonNull QDataStream in){
java.util.Objects.requireNonNull(in, "Argument 'in': null not expected.");
read_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(in));
}
@QtUninvokable
private native void read_native_ref_QDataStream(long __this__nativeId, long in);
/**
* See QStandardItem:: setData(QVariant, int)
*/
@QtUninvokable
public void setData(java.lang.Object value, int role){
setData_native_cref_QVariant_int(QtJambi_LibraryUtilities.internal.nativeId(this), value, role);
}
@QtUninvokable
private native void setData_native_cref_QVariant_int(long __this__nativeId, java.lang.Object value, int role);
/**
* See QStandardItem:: type()const
*/
@QtUninvokable
public int type(){
return type_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int type_native_constfct(long __this__nativeId);
/**
* See QStandardItem:: write(QDataStream&)const
*/
@QtUninvokable
public void write(io.qt.core.@StrictNonNull QDataStream out){
java.util.Objects.requireNonNull(out, "Argument 'out': null not expected.");
write_native_ref_QDataStream_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(out));
}
@QtUninvokable
private native void write_native_ref_QDataStream_constfct(long __this__nativeId, long out);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QStandardItem(QPrivateConstructor p) { super(p); }
/**
* See QStandardItem:: operator<(QStandardItem)const
*/
@QtUninvokable
public int compareTo(io.qt.gui.@StrictNonNull QStandardItem other) {
if (operator_less((io.qt.gui.QStandardItem) other)) return -1;
else if (((io.qt.gui.QStandardItem) other).operator_less(this)) return 1;
else return 0;
}
/**
* Overloaded constructor for {@link #QStandardItem(io.qt.gui.QIcon, java.lang.String)}.
*/
public QStandardItem(io.qt.gui.@NonNull QPixmap icon, java.lang.@NonNull String text) {
this(new io.qt.gui.QIcon(icon), text);
}
/**
* Overloaded constructor for {@link #QStandardItem(int, int)}
* with columns = 1
.
*/
public QStandardItem(int rows) {
this(rows, (int)1);
}
/**
* Overloaded function for {@link #child(int, int)}
* with column = 0
.
*/
@QtUninvokable
public final io.qt.gui.@Nullable QStandardItem child(int row) {
return child(row, (int)0);
}
/**
* Overloaded function for {@link #setBackground(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setBackground(io.qt.core.Qt.@NonNull BrushStyle brush) {
setBackground(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setBackground(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setBackground(io.qt.gui.@NonNull QColor brush) {
setBackground(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setBackground(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setBackground(io.qt.core.Qt.@NonNull GlobalColor brush) {
setBackground(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setBackground(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setBackground(io.qt.gui.@NonNull QPixmap brush) {
setBackground(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setBackground(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setBackground(io.qt.gui.@NonNull QImage brush) {
setBackground(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setBackground(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setBackground(io.qt.gui.@NonNull QGradient brush) {
setBackground(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setFlags(io.qt.core.Qt.ItemFlags)}.
*/
@QtUninvokable
public final void setFlags(io.qt.core.Qt.@NonNull ItemFlag @NonNull... flags) {
setFlags(new io.qt.core.Qt.ItemFlags(flags));
}
/**
* Overloaded function for {@link #setFont(io.qt.gui.QFont)}.
*/
@QtUninvokable
public final void setFont(java.lang.@NonNull String font) {
setFont(new io.qt.gui.QFont(font));
}
/**
* Overloaded function for {@link #setForeground(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setForeground(io.qt.core.Qt.@NonNull BrushStyle brush) {
setForeground(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setForeground(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setForeground(io.qt.gui.@NonNull QColor brush) {
setForeground(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setForeground(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setForeground(io.qt.core.Qt.@NonNull GlobalColor brush) {
setForeground(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setForeground(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setForeground(io.qt.gui.@NonNull QPixmap brush) {
setForeground(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setForeground(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setForeground(io.qt.gui.@NonNull QImage brush) {
setForeground(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setForeground(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setForeground(io.qt.gui.@NonNull QGradient brush) {
setForeground(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setIcon(io.qt.gui.QIcon)}.
*/
@QtUninvokable
public final void setIcon(io.qt.gui.@NonNull QPixmap icon) {
setIcon(new io.qt.gui.QIcon(icon));
}
/**
* Overloaded function for {@link #setTextAlignment(io.qt.core.Qt.Alignment)}.
*/
@QtUninvokable
public final void setTextAlignment(io.qt.core.Qt.@NonNull AlignmentFlag @NonNull... textAlignment) {
setTextAlignment(new io.qt.core.Qt.Alignment(textAlignment));
}
/**
* Overloaded function for {@link #sortChildren(int, io.qt.core.Qt.SortOrder)}
* with order = io.qt.core.Qt.SortOrder.AscendingOrder
.
*/
@QtUninvokable
public final void sortChildren(int column) {
sortChildren(column, io.qt.core.Qt.SortOrder.AscendingOrder);
}
/**
* Overloaded function for {@link #takeChild(int, int)}
* with column = 0
.
*/
@QtUninvokable
public final io.qt.gui.@Nullable QStandardItem takeChild(int row) {
return takeChild(row, (int)0);
}
/**
* Overloaded function for {@link #data(int)}
* with role = 257
.
*/
@QtUninvokable
public final java.lang.Object data() {
return data((int)257);
}
/**
* Overloaded function for {@link #setData(java.lang.Object, int)}
* with role = 257
.
*/
@QtUninvokable
public final void setData(java.lang.Object value) {
setData(value, (int)257);
}
}