io.qt.gui.QStandardItem Maven / Gradle / Ivy
package io.qt.gui;
/**
* Item for use with the QStandardItemModel class
* Java wrapper for Qt class QStandardItem
*/
public class QStandardItem extends io.qt.QtObject
implements java.lang.Comparable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QStandardItem::ItemType
*/
public enum ItemType implements io.qt.QtEnumerator {
Type(0),
UserType(1000);
private ItemType(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 ItemType resolve(int value) {
switch (value) {
case 0: return Type;
case 1000: return UserType;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
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.QIcon icon, java.lang.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.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.String text){
super((QPrivateConstructor)null);
initialize_native(this, text);
}
private native static void initialize_native(QStandardItem instance, java.lang.String text);
/**
* Overloaded constructor for {@link #QStandardItem(int, int)}
* with columns = 1
.
*/
public QStandardItem(int rows) {
this(rows, (int)1);
}
/**
* 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
*/
@io.qt.QtUninvokable
public final java.lang.String accessibleDescription(){
return accessibleDescription_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String accessibleDescription_native_constfct(long __this__nativeId);
/**
* See QStandardItem::accessibleText()const
*/
@io.qt.QtUninvokable
public final java.lang.String accessibleText(){
return accessibleText_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String accessibleText_native_constfct(long __this__nativeId);
/**
* See QStandardItem::appendColumn(QList<QStandardItem*>)
*/
@io.qt.QtUninvokable
public final void appendColumn(java.util.Collection 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);
}
}
@io.qt.QtUninvokable
private native void appendColumn_native_cref_QList(long __this__nativeId, java.util.Collection items);
/**
* See QStandardItem::appendRow(QStandardItem*)
*/
@io.qt.QtUninvokable
public final void appendRow(io.qt.gui.QStandardItem item){
appendRow_native_QStandardItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
QtJambi_LibraryUtilities.internal.setCppOwnership(item);
}
@io.qt.QtUninvokable
private native void appendRow_native_QStandardItem_ptr(long __this__nativeId, long item);
/**
* See QStandardItem::appendRow(QList<QStandardItem*>)
*/
@io.qt.QtUninvokable
public final void appendRow(java.util.Collection 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);
}
}
@io.qt.QtUninvokable
private native void appendRow_native_cref_QList(long __this__nativeId, java.util.Collection items);
/**
* See QStandardItem::appendRows(QList<QStandardItem*>)
*/
@io.qt.QtUninvokable
public final void appendRows(java.util.Collection items){
appendRows_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), items);
}
@io.qt.QtUninvokable
private native void appendRows_native_cref_QList(long __this__nativeId, java.util.Collection items);
/**
* See QStandardItem::background()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QBrush background(){
return background_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QBrush background_native_constfct(long __this__nativeId);
/**
* See QStandardItem::checkState()const
*/
@io.qt.QtUninvokable
public final io.qt.core.Qt.CheckState checkState(){
return io.qt.core.Qt.CheckState.resolve(checkState_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int checkState_native_constfct(long __this__nativeId);
/**
* Overloaded function for {@link #child(int, int)}
* with column = 0
.
*/
@io.qt.QtUninvokable
public final io.qt.gui.QStandardItem child(int row) {
return child(row, (int)0);
}
/**
* See QStandardItem::child(int,int)const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QStandardItem child(int row, int column){
return child_native_int_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), row, column);
}
@io.qt.QtUninvokable
private native io.qt.gui.QStandardItem child_native_int_int_constfct(long __this__nativeId, int row, int column);
/**
* See QStandardItem::clearData()
*/
@io.qt.QtUninvokable
public final void clearData(){
clearData_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void clearData_native(long __this__nativeId);
/**
* See QStandardItem::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);
/**
* See QStandardItem::columnCount()const
*/
@io.qt.QtUninvokable
public final int columnCount(){
return columnCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int columnCount_native_constfct(long __this__nativeId);
/**
* See QStandardItem::emitDataChanged()
*/
@io.qt.QtUninvokable
protected final void emitDataChanged(){
emitDataChanged_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void emitDataChanged_native(long __this__nativeId);
/**
* See QStandardItem::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);
/**
* See QStandardItem::font()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QFont font(){
return font_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QFont font_native_constfct(long __this__nativeId);
/**
* See QStandardItem::foreground()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QBrush foreground(){
return foreground_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QBrush foreground_native_constfct(long __this__nativeId);
/**
* See QStandardItem::hasChildren()const
*/
@io.qt.QtUninvokable
public final boolean hasChildren(){
return hasChildren_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean hasChildren_native_constfct(long __this__nativeId);
/**
* See QStandardItem::icon()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QIcon icon(){
return icon_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QIcon icon_native_constfct(long __this__nativeId);
/**
* See QStandardItem::index()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QModelIndex index(){
return index_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QModelIndex index_native_constfct(long __this__nativeId);
/**
* See QStandardItem::insertColumn(int,QList<QStandardItem*>)
*/
@io.qt.QtUninvokable
public final void insertColumn(int column, java.util.Collection 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);
}
}
@io.qt.QtUninvokable
private native void insertColumn_native_int_cref_QList(long __this__nativeId, int column, java.util.Collection items);
/**
* See QStandardItem::insertColumns(int,int)
*/
@io.qt.QtUninvokable
public final void insertColumns(int column, int count){
insertColumns_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), column, count);
}
@io.qt.QtUninvokable
private native void insertColumns_native_int_int(long __this__nativeId, int column, int count);
/**
* See QStandardItem::insertRow(int,QStandardItem*)
*/
@io.qt.QtUninvokable
public final void insertRow(int row, io.qt.gui.QStandardItem item){
insertRow_native_int_QStandardItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), row, QtJambi_LibraryUtilities.internal.checkedNativeId(item));
QtJambi_LibraryUtilities.internal.setCppOwnership(item);
}
@io.qt.QtUninvokable
private native void insertRow_native_int_QStandardItem_ptr(long __this__nativeId, int row, long item);
/**
* See QStandardItem::insertRow(int,QList<QStandardItem*>)
*/
@io.qt.QtUninvokable
public final void insertRow(int row, java.util.Collection 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);
}
}
@io.qt.QtUninvokable
private native void insertRow_native_int_cref_QList(long __this__nativeId, int row, java.util.Collection items);
/**
* See QStandardItem::insertRows(int,QList<QStandardItem*>)
*/
@io.qt.QtUninvokable
public final void insertRows(int row, java.util.Collection items){
insertRows_native_int_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), row, items);
}
@io.qt.QtUninvokable
private native void insertRows_native_int_cref_QList(long __this__nativeId, int row, java.util.Collection items);
/**
* See QStandardItem::insertRows(int,int)
*/
@io.qt.QtUninvokable
public final void insertRows(int row, int count){
insertRows_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), row, count);
}
@io.qt.QtUninvokable
private native void insertRows_native_int_int(long __this__nativeId, int row, int count);
/**
* See QStandardItem::isAutoTristate()const
*/
@io.qt.QtUninvokable
public final boolean isAutoTristate(){
return isAutoTristate_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isAutoTristate_native_constfct(long __this__nativeId);
/**
* See QStandardItem::isCheckable()const
*/
@io.qt.QtUninvokable
public final boolean isCheckable(){
return isCheckable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isCheckable_native_constfct(long __this__nativeId);
/**
* See QStandardItem::isDragEnabled()const
*/
@io.qt.QtUninvokable
public final boolean isDragEnabled(){
return isDragEnabled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isDragEnabled_native_constfct(long __this__nativeId);
/**
* See QStandardItem::isDropEnabled()const
*/
@io.qt.QtUninvokable
public final boolean isDropEnabled(){
return isDropEnabled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isDropEnabled_native_constfct(long __this__nativeId);
/**
* See QStandardItem::isEditable()const
*/
@io.qt.QtUninvokable
public final boolean isEditable(){
return isEditable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isEditable_native_constfct(long __this__nativeId);
/**
* See QStandardItem::isEnabled()const
*/
@io.qt.QtUninvokable
public final boolean isEnabled(){
return isEnabled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isEnabled_native_constfct(long __this__nativeId);
/**
* See QStandardItem::isSelectable()const
*/
@io.qt.QtUninvokable
public final boolean isSelectable(){
return isSelectable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isSelectable_native_constfct(long __this__nativeId);
/**
* See QStandardItem::isUserTristate()const
*/
@io.qt.QtUninvokable
public final boolean isUserTristate(){
return isUserTristate_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isUserTristate_native_constfct(long __this__nativeId);
/**
* See QStandardItem::model()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QStandardItemModel model(){
return model_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QStandardItemModel model_native_constfct(long __this__nativeId);
@io.qt.QtUninvokable
public void writeTo(io.qt.core.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));
}
@io.qt.QtUninvokable
private native void writeTo_native_ref_QDataStream(long __this__nativeId, long out);
@io.qt.QtUninvokable
public void readFrom(io.qt.core.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));
}
@io.qt.QtUninvokable
private native void readFrom_native_ref_QDataStream(long __this__nativeId, long in);
/**
* See QStandardItem::parent()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QStandardItem parent(){
return parent_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QStandardItem parent_native_constfct(long __this__nativeId);
/**
* See QStandardItem::removeColumn(int)
*/
@io.qt.QtUninvokable
public final void removeColumn(int column){
removeColumn_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), column);
}
@io.qt.QtUninvokable
private native void removeColumn_native_int(long __this__nativeId, int column);
/**
* See QStandardItem::removeColumns(int,int)
*/
@io.qt.QtUninvokable
public final void removeColumns(int column, int count){
removeColumns_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), column, count);
}
@io.qt.QtUninvokable
private native void removeColumns_native_int_int(long __this__nativeId, int column, int count);
/**
* See QStandardItem::removeRow(int)
*/
@io.qt.QtUninvokable
public final void removeRow(int row){
removeRow_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), row);
}
@io.qt.QtUninvokable
private native void removeRow_native_int(long __this__nativeId, int row);
/**
* See QStandardItem::removeRows(int,int)
*/
@io.qt.QtUninvokable
public final void removeRows(int row, int count){
removeRows_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), row, count);
}
@io.qt.QtUninvokable
private native void removeRows_native_int_int(long __this__nativeId, int row, int count);
/**
*
*/
@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 QStandardItem::rowCount()const
*/
@io.qt.QtUninvokable
public final int rowCount(){
return rowCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int rowCount_native_constfct(long __this__nativeId);
/**
* See QStandardItem::setAccessibleDescription(QString)
*/
@io.qt.QtUninvokable
public final void setAccessibleDescription(java.lang.String accessibleDescription){
setAccessibleDescription_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), accessibleDescription);
}
@io.qt.QtUninvokable
private native void setAccessibleDescription_native_cref_QString(long __this__nativeId, java.lang.String accessibleDescription);
/**
* See QStandardItem::setAccessibleText(QString)
*/
@io.qt.QtUninvokable
public final void setAccessibleText(java.lang.String accessibleText){
setAccessibleText_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), accessibleText);
}
@io.qt.QtUninvokable
private native void setAccessibleText_native_cref_QString(long __this__nativeId, java.lang.String accessibleText);
/**
* See QStandardItem::setAutoTristate(bool)
*/
@io.qt.QtUninvokable
public final void setAutoTristate(boolean tristate){
setAutoTristate_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), tristate);
}
@io.qt.QtUninvokable
private native void setAutoTristate_native_bool(long __this__nativeId, boolean tristate);
/**
* See QStandardItem::setBackground(QBrush)
*/
@io.qt.QtUninvokable
public final void setBackground(io.qt.gui.QBrush brush){
setBackground_native_cref_QBrush(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(brush));
}
@io.qt.QtUninvokable
private native void setBackground_native_cref_QBrush(long __this__nativeId, long brush);
/**
* See QStandardItem::setCheckState(Qt::CheckState)
*/
@io.qt.QtUninvokable
public final void setCheckState(io.qt.core.Qt.CheckState checkState){
setCheckState_native_Qt_CheckState(QtJambi_LibraryUtilities.internal.nativeId(this), checkState.value());
}
@io.qt.QtUninvokable
private native void setCheckState_native_Qt_CheckState(long __this__nativeId, int checkState);
/**
* See QStandardItem::setCheckable(bool)
*/
@io.qt.QtUninvokable
public final void setCheckable(boolean checkable){
setCheckable_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), checkable);
}
@io.qt.QtUninvokable
private native void setCheckable_native_bool(long __this__nativeId, boolean checkable);
/**
* See QStandardItem::setChild(int,QStandardItem*)
*/
@io.qt.QtUninvokable
public final void setChild(int row, io.qt.gui.QStandardItem item){
setChild_native_int_QStandardItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), row, QtJambi_LibraryUtilities.internal.checkedNativeId(item));
QtJambi_LibraryUtilities.internal.setCppOwnership(item);
}
@io.qt.QtUninvokable
private native void setChild_native_int_QStandardItem_ptr(long __this__nativeId, int row, long item);
/**
* See QStandardItem::setChild(int,int,QStandardItem*)
*/
@io.qt.QtUninvokable
public final void setChild(int row, int column, io.qt.gui.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);
}
@io.qt.QtUninvokable
private native void setChild_native_int_int_QStandardItem_ptr(long __this__nativeId, int row, int column, long item);
/**
* See QStandardItem::setColumnCount(int)
*/
@io.qt.QtUninvokable
public final void setColumnCount(int columns){
setColumnCount_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), columns);
}
@io.qt.QtUninvokable
private native void setColumnCount_native_int(long __this__nativeId, int columns);
/**
* See QStandardItem::setDragEnabled(bool)
*/
@io.qt.QtUninvokable
public final void setDragEnabled(boolean dragEnabled){
setDragEnabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), dragEnabled);
}
@io.qt.QtUninvokable
private native void setDragEnabled_native_bool(long __this__nativeId, boolean dragEnabled);
/**
* See QStandardItem::setDropEnabled(bool)
*/
@io.qt.QtUninvokable
public final void setDropEnabled(boolean dropEnabled){
setDropEnabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), dropEnabled);
}
@io.qt.QtUninvokable
private native void setDropEnabled_native_bool(long __this__nativeId, boolean dropEnabled);
/**
* See QStandardItem::setEditable(bool)
*/
@io.qt.QtUninvokable
public final void setEditable(boolean editable){
setEditable_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), editable);
}
@io.qt.QtUninvokable
private native void setEditable_native_bool(long __this__nativeId, boolean editable);
/**
* See QStandardItem::setEnabled(bool)
*/
@io.qt.QtUninvokable
public final void setEnabled(boolean enabled){
setEnabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enabled);
}
@io.qt.QtUninvokable
private native void setEnabled_native_bool(long __this__nativeId, boolean enabled);
/**
* Overloaded function for {@link #setFlags(io.qt.core.Qt.ItemFlags)}.
*/
@io.qt.QtUninvokable
public final void setFlags(io.qt.core.Qt.ItemFlag ... flags){
setFlags(new io.qt.core.Qt.ItemFlags(flags));
}
/**
* See QStandardItem::setFlags(Qt::ItemFlags)
*/
@io.qt.QtUninvokable
public final void setFlags(io.qt.core.Qt.ItemFlags flags){
setFlags_native_QFlags_Qt_ItemFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), flags.value());
}
@io.qt.QtUninvokable
private native void setFlags_native_QFlags_Qt_ItemFlag_(long __this__nativeId, int flags);
/**
* See QStandardItem::setFont(QFont)
*/
@io.qt.QtUninvokable
public final void setFont(io.qt.gui.QFont font){
setFont_native_cref_QFont(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(font));
}
@io.qt.QtUninvokable
private native void setFont_native_cref_QFont(long __this__nativeId, long font);
/**
* See QStandardItem::setForeground(QBrush)
*/
@io.qt.QtUninvokable
public final void setForeground(io.qt.gui.QBrush brush){
setForeground_native_cref_QBrush(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(brush));
}
@io.qt.QtUninvokable
private native void setForeground_native_cref_QBrush(long __this__nativeId, long brush);
/**
* See QStandardItem::setIcon(QIcon)
*/
@io.qt.QtUninvokable
public final void setIcon(io.qt.gui.QIcon icon){
setIcon_native_cref_QIcon(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(icon));
}
@io.qt.QtUninvokable
private native void setIcon_native_cref_QIcon(long __this__nativeId, long icon);
/**
* See QStandardItem::setRowCount(int)
*/
@io.qt.QtUninvokable
public final void setRowCount(int rows){
setRowCount_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), rows);
}
@io.qt.QtUninvokable
private native void setRowCount_native_int(long __this__nativeId, int rows);
/**
* See QStandardItem::setSelectable(bool)
*/
@io.qt.QtUninvokable
public final void setSelectable(boolean selectable){
setSelectable_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), selectable);
}
@io.qt.QtUninvokable
private native void setSelectable_native_bool(long __this__nativeId, boolean selectable);
/**
* See QStandardItem::setSizeHint(QSize)
*/
@io.qt.QtUninvokable
public final void setSizeHint(io.qt.core.QSize sizeHint){
setSizeHint_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(sizeHint));
}
@io.qt.QtUninvokable
private native void setSizeHint_native_cref_QSize(long __this__nativeId, long sizeHint);
/**
* See QStandardItem::setStatusTip(QString)
*/
@io.qt.QtUninvokable
public final void setStatusTip(java.lang.String statusTip){
setStatusTip_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), statusTip);
}
@io.qt.QtUninvokable
private native void setStatusTip_native_cref_QString(long __this__nativeId, java.lang.String statusTip);
/**
* See QStandardItem::setText(QString)
*/
@io.qt.QtUninvokable
public final void setText(java.lang.String text){
setText_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text);
}
@io.qt.QtUninvokable
private native void setText_native_cref_QString(long __this__nativeId, java.lang.String text);
/**
* Overloaded function for {@link #setTextAlignment(io.qt.core.Qt.Alignment)}.
*/
@io.qt.QtUninvokable
public final void setTextAlignment(io.qt.core.Qt.AlignmentFlag ... textAlignment){
setTextAlignment(new io.qt.core.Qt.Alignment(textAlignment));
}
/**
* See QStandardItem::setTextAlignment(Qt::Alignment)
*/
@io.qt.QtUninvokable
public final void setTextAlignment(io.qt.core.Qt.Alignment textAlignment){
setTextAlignment_native_QFlags_Qt_AlignmentFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), textAlignment.value());
}
@io.qt.QtUninvokable
private native void setTextAlignment_native_QFlags_Qt_AlignmentFlag_(long __this__nativeId, int textAlignment);
/**
* See QStandardItem::setToolTip(QString)
*/
@io.qt.QtUninvokable
public final void setToolTip(java.lang.String toolTip){
setToolTip_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), toolTip);
}
@io.qt.QtUninvokable
private native void setToolTip_native_cref_QString(long __this__nativeId, java.lang.String toolTip);
/**
* See QStandardItem::setUserTristate(bool)
*/
@io.qt.QtUninvokable
public final void setUserTristate(boolean tristate){
setUserTristate_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), tristate);
}
@io.qt.QtUninvokable
private native void setUserTristate_native_bool(long __this__nativeId, boolean tristate);
/**
* See QStandardItem::setWhatsThis(QString)
*/
@io.qt.QtUninvokable
public final void setWhatsThis(java.lang.String whatsThis){
setWhatsThis_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), whatsThis);
}
@io.qt.QtUninvokable
private native void setWhatsThis_native_cref_QString(long __this__nativeId, java.lang.String whatsThis);
/**
* See QStandardItem::sizeHint()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QSize sizeHint(){
return sizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QSize sizeHint_native_constfct(long __this__nativeId);
/**
* Overloaded function for {@link #sortChildren(int, io.qt.core.Qt.SortOrder)}
* with order = io.qt.core.Qt.SortOrder.AscendingOrder
.
*/
@io.qt.QtUninvokable
public final void sortChildren(int column) {
sortChildren(column, io.qt.core.Qt.SortOrder.AscendingOrder);
}
/**
* See QStandardItem::sortChildren(int,Qt::SortOrder)
*/
@io.qt.QtUninvokable
public final void sortChildren(int column, io.qt.core.Qt.SortOrder order){
sortChildren_native_int_Qt_SortOrder(QtJambi_LibraryUtilities.internal.nativeId(this), column, order.value());
}
@io.qt.QtUninvokable
private native void sortChildren_native_int_Qt_SortOrder(long __this__nativeId, int column, int order);
/**
* See QStandardItem::statusTip()const
*/
@io.qt.QtUninvokable
public final java.lang.String statusTip(){
return statusTip_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String statusTip_native_constfct(long __this__nativeId);
/**
* Overloaded function for {@link #takeChild(int, int)}
* with column = 0
.
*/
@io.qt.QtUninvokable
public final io.qt.gui.QStandardItem takeChild(int row) {
return takeChild(row, (int)0);
}
/**
* See QStandardItem::takeChild(int,int)
*/
@io.qt.QtUninvokable
public final io.qt.gui.QStandardItem takeChild(int row, int column){
io.qt.gui.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;
}
@io.qt.QtUninvokable
private native io.qt.gui.QStandardItem takeChild_native_int_int(long __this__nativeId, int row, int column);
/**
* See QStandardItem::takeColumn(int)
*/
@io.qt.QtUninvokable
public final io.qt.core.QList takeColumn(int column){
io.qt.core.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;
}
@io.qt.QtUninvokable
private native io.qt.core.QList takeColumn_native_int(long __this__nativeId, int column);
/**
* See QStandardItem::takeRow(int)
*/
@io.qt.QtUninvokable
public final io.qt.core.QList takeRow(int row){
io.qt.core.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;
}
@io.qt.QtUninvokable
private native io.qt.core.QList takeRow_native_int(long __this__nativeId, int row);
/**
* See QStandardItem::text()const
*/
@io.qt.QtUninvokable
public final java.lang.String text(){
return text_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String text_native_constfct(long __this__nativeId);
/**
* See QStandardItem::textAlignment()const
*/
@io.qt.QtUninvokable
public final io.qt.core.Qt.Alignment textAlignment(){
return new io.qt.core.Qt.Alignment(textAlignment_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int textAlignment_native_constfct(long __this__nativeId);
/**
* See QStandardItem::toolTip()const
*/
@io.qt.QtUninvokable
public final java.lang.String toolTip(){
return toolTip_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String toolTip_native_constfct(long __this__nativeId);
/**
* See QStandardItem::whatsThis()const
*/
@io.qt.QtUninvokable
public final java.lang.String whatsThis(){
return whatsThis_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String whatsThis_native_constfct(long __this__nativeId);
/**
* See QStandardItem::clone()const
*/
@io.qt.QtUninvokable
public io.qt.gui.QStandardItem clone(){
return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QStandardItem clone_native_constfct(long __this__nativeId);
/**
* Overloaded function for {@link #data(int)}
* with role = 257
.
*/
@io.qt.QtUninvokable
public final java.lang.Object data() {
return data((int)257);
}
/**
* See QStandardItem::data(int)const
*/
@io.qt.QtUninvokable
public 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 QStandardItem::multiData(QModelRoleDataSpan)const
*/
@io.qt.QtUninvokable
public 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 QStandardItem::operator<(QStandardItem)const
*/
@io.qt.QtUninvokable
private boolean operator_less(io.qt.gui.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));
}
@io.qt.QtUninvokable
private native boolean operator_less_native_cref_QStandardItem_constfct(long __this__nativeId, long other);
/**
* See QStandardItem::read(QDataStream&)
*/
@io.qt.QtUninvokable
public void read(io.qt.core.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));
}
@io.qt.QtUninvokable
private native void read_native_ref_QDataStream(long __this__nativeId, long in);
/**
* Overloaded function for {@link #setData(java.lang.Object, int)}
* with role = 257
.
*/
@io.qt.QtUninvokable
public final void setData(java.lang.Object value) {
setData(value, (int)257);
}
/**
* See QStandardItem::setData(QVariant,int)
*/
@io.qt.QtUninvokable
public void setData(java.lang.Object value, int role){
setData_native_cref_QVariant_int(QtJambi_LibraryUtilities.internal.nativeId(this), value, role);
}
@io.qt.QtUninvokable
private native void setData_native_cref_QVariant_int(long __this__nativeId, java.lang.Object value, int role);
/**
* See QStandardItem::type()const
*/
@io.qt.QtUninvokable
public int type(){
return type_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int type_native_constfct(long __this__nativeId);
/**
* See QStandardItem::write(QDataStream&)const
*/
@io.qt.QtUninvokable
public void write(io.qt.core.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));
}
@io.qt.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
.
*/
@io.qt.NativeAccess
protected QStandardItem(QPrivateConstructor p) { super(p); }
@io.qt.QtUninvokable
public int compareTo(io.qt.gui.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;
}
}