io.qt.widgets.QTreeWidgetItem Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Item for use with the QTreeWidget convenience class
* Java wrapper for Qt class QTreeWidgetItem
*/
public class QTreeWidgetItem extends QtObject
implements java.lang.Comparable,
Iterable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QTreeWidgetItem::ChildIndicatorPolicy
*/
public enum ChildIndicatorPolicy implements QtEnumerator {
/**
* Representing QTreeWidgetItem:: ShowIndicator
*/
ShowIndicator(0),
/**
* Representing QTreeWidgetItem:: DontShowIndicator
*/
DontShowIndicator(1),
/**
* Representing QTreeWidgetItem:: DontShowIndicatorWhenChildless
*/
DontShowIndicatorWhenChildless(2);
static {
QtJambi_LibraryUtilities.initialize();
}
private ChildIndicatorPolicy(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 @NonNull ChildIndicatorPolicy resolve(int value) {
switch (value) {
case 0: return ShowIndicator;
case 1: return DontShowIndicator;
case 2: return DontShowIndicatorWhenChildless;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QTreeWidgetItem:: QTreeWidgetItem(QStringList, int)
*/
public QTreeWidgetItem(java.util.@NonNull Collection strings){
super((QPrivateConstructor)null);
initialize_native(this, strings);
}
private native static void initialize_native(QTreeWidgetItem instance, java.util.Collection strings);
/**
* See QTreeWidgetItem:: QTreeWidgetItem(QTreeWidget*, QStringList, int)
*/
public QTreeWidgetItem(io.qt.widgets.@Nullable QTreeWidget treeview, java.util.@NonNull Collection strings){
super((QPrivateConstructor)null);
initialize_native(this, treeview, strings);
if (treeview != null) QtJambi_LibraryUtilities.internal.setCppOwnership(this);
}
private native static void initialize_native(QTreeWidgetItem instance, io.qt.widgets.QTreeWidget treeview, java.util.Collection strings);
/**
* See QTreeWidgetItem:: QTreeWidgetItem(QTreeWidget*, QTreeWidgetItem*, int)
*/
public QTreeWidgetItem(io.qt.widgets.@Nullable QTreeWidget treeview, io.qt.widgets.@Nullable QTreeWidgetItem after){
super((QPrivateConstructor)null);
initialize_native(this, treeview, after);
if (treeview != null) QtJambi_LibraryUtilities.internal.setCppOwnership(this);
}
private native static void initialize_native(QTreeWidgetItem instance, io.qt.widgets.QTreeWidget treeview, io.qt.widgets.QTreeWidgetItem after);
/**
* See QTreeWidgetItem:: QTreeWidgetItem(QTreeWidget*, int)
*/
public QTreeWidgetItem(io.qt.widgets.@Nullable QTreeWidget treeview){
super((QPrivateConstructor)null);
initialize_native(this, treeview);
if (treeview != null) QtJambi_LibraryUtilities.internal.setCppOwnership(this);
}
private native static void initialize_native(QTreeWidgetItem instance, io.qt.widgets.QTreeWidget treeview);
/**
* See QTreeWidgetItem:: QTreeWidgetItem(QTreeWidgetItem*, QStringList, int)
*/
public QTreeWidgetItem(io.qt.widgets.@Nullable QTreeWidgetItem parent, java.util.@NonNull Collection strings){
super((QPrivateConstructor)null);
initialize_native(this, parent, strings);
if (parent != null) QtJambi_LibraryUtilities.internal.setCppOwnership(this);
}
private native static void initialize_native(QTreeWidgetItem instance, io.qt.widgets.QTreeWidgetItem parent, java.util.Collection strings);
/**
* See QTreeWidgetItem:: QTreeWidgetItem(QTreeWidgetItem*, QTreeWidgetItem*, int)
*/
public QTreeWidgetItem(io.qt.widgets.@Nullable QTreeWidgetItem parent, io.qt.widgets.@Nullable QTreeWidgetItem after){
super((QPrivateConstructor)null);
initialize_native(this, parent, after);
if (parent != null) QtJambi_LibraryUtilities.internal.setCppOwnership(this);
}
private native static void initialize_native(QTreeWidgetItem instance, io.qt.widgets.QTreeWidgetItem parent, io.qt.widgets.QTreeWidgetItem after);
/**
* See QTreeWidgetItem:: QTreeWidgetItem(QTreeWidgetItem*, int)
*/
public QTreeWidgetItem(io.qt.widgets.@Nullable QTreeWidgetItem parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
if (parent != null) QtJambi_LibraryUtilities.internal.setCppOwnership(this);
}
private native static void initialize_native(QTreeWidgetItem instance, io.qt.widgets.QTreeWidgetItem parent);
/**
* See QTreeWidgetItem:: QTreeWidgetItem(int)
*/
public QTreeWidgetItem(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QTreeWidgetItem instance);
/**
* See QTreeWidgetItem:: addChild(QTreeWidgetItem*)
*/
@QtUninvokable
public final void addChild(io.qt.widgets.@Nullable QTreeWidgetItem child){
addChild_native_QTreeWidgetItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(child));
QtJambi_LibraryUtilities.internal.setCppOwnership(child);
}
@QtUninvokable
private native void addChild_native_QTreeWidgetItem_ptr(long __this__nativeId, long child);
/**
* See QTreeWidgetItem:: addChildren(QList<QTreeWidgetItem*>)
*/
@QtUninvokable
public final void addChildren(java.util.@NonNull Collection extends io.qt.widgets.@Nullable QTreeWidgetItem> children){
addChildren_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), children);
if (children != null) {
for (io.qt.widgets.QTreeWidgetItem i : children)
QtJambi_LibraryUtilities.internal.setCppOwnership(i);
}
}
@QtUninvokable
private native void addChildren_native_cref_QList(long __this__nativeId, java.util.Collection extends io.qt.widgets.QTreeWidgetItem> children);
/**
* See QTreeWidgetItem:: background(int)const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QBrush background(int column){
return background_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), column);
}
@QtUninvokable
private native io.qt.gui.QBrush background_native_int_constfct(long __this__nativeId, int column);
/**
* See QTreeWidgetItem:: checkState(int)const
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull CheckState checkState(int column){
return io.qt.core.Qt.CheckState.resolve(checkState_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), column));
}
@QtUninvokable
private native int checkState_native_int_constfct(long __this__nativeId, int column);
/**
* See QTreeWidgetItem:: child(int)const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QTreeWidgetItem child(int index){
return child_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native io.qt.widgets.QTreeWidgetItem child_native_int_constfct(long __this__nativeId, int index);
/**
* See QTreeWidgetItem:: childCount()const
*/
@QtUninvokable
public final int childCount(){
return childCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int childCount_native_constfct(long __this__nativeId);
/**
* See QTreeWidgetItem:: childIndicatorPolicy()const
*/
@QtUninvokable
public final io.qt.widgets.QTreeWidgetItem.@NonNull ChildIndicatorPolicy childIndicatorPolicy(){
return io.qt.widgets.QTreeWidgetItem.ChildIndicatorPolicy.resolve(childIndicatorPolicy_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int childIndicatorPolicy_native_constfct(long __this__nativeId);
/**
* See QTreeWidgetItem:: 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 QTreeWidgetItem:: emitDataChanged()
*/
@QtUninvokable
protected final void emitDataChanged(){
emitDataChanged_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void emitDataChanged_native(long __this__nativeId);
/**
* See QTreeWidgetItem:: 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 QTreeWidgetItem:: font(int)const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QFont font(int column){
return font_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), column);
}
@QtUninvokable
private native io.qt.gui.QFont font_native_int_constfct(long __this__nativeId, int column);
/**
* See QTreeWidgetItem:: foreground(int)const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QBrush foreground(int column){
return foreground_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), column);
}
@QtUninvokable
private native io.qt.gui.QBrush foreground_native_int_constfct(long __this__nativeId, int column);
/**
* See QTreeWidgetItem:: icon(int)const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QIcon icon(int column){
return icon_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), column);
}
@QtUninvokable
private native io.qt.gui.QIcon icon_native_int_constfct(long __this__nativeId, int column);
/**
* See QTreeWidgetItem:: indexOfChild(QTreeWidgetItem*)const
*/
@QtUninvokable
public final int indexOfChild(io.qt.widgets.@Nullable QTreeWidgetItem child){
return indexOfChild_native_QTreeWidgetItem_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(child));
}
@QtUninvokable
private native int indexOfChild_native_QTreeWidgetItem_ptr_constfct(long __this__nativeId, long child);
/**
* See QTreeWidgetItem:: insertChild(int, QTreeWidgetItem*)
*/
@QtUninvokable
public final void insertChild(int index, io.qt.widgets.@Nullable QTreeWidgetItem child){
insertChild_native_int_QTreeWidgetItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), index, QtJambi_LibraryUtilities.internal.checkedNativeId(child));
QtJambi_LibraryUtilities.internal.setCppOwnership(child);
}
@QtUninvokable
private native void insertChild_native_int_QTreeWidgetItem_ptr(long __this__nativeId, int index, long child);
/**
* See QTreeWidgetItem:: insertChildren(int, QList<QTreeWidgetItem*>)
*/
@QtUninvokable
public final void insertChildren(int index, java.util.@NonNull Collection extends io.qt.widgets.@Nullable QTreeWidgetItem> children){
insertChildren_native_int_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), index, children);
if (children != null) {
for (io.qt.widgets.QTreeWidgetItem i : children)
QtJambi_LibraryUtilities.internal.setCppOwnership(i);
}
}
@QtUninvokable
private native void insertChildren_native_int_cref_QList(long __this__nativeId, int index, java.util.Collection extends io.qt.widgets.QTreeWidgetItem> children);
/**
* See QTreeWidgetItem:: isDisabled()const
*/
@QtUninvokable
public final boolean isDisabled(){
return isDisabled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isDisabled_native_constfct(long __this__nativeId);
/**
* See QTreeWidgetItem:: isExpanded()const
*/
@QtUninvokable
public final boolean isExpanded(){
return isExpanded_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isExpanded_native_constfct(long __this__nativeId);
/**
* See QTreeWidgetItem:: isFirstColumnSpanned()const
*/
@QtUninvokable
public final boolean isFirstColumnSpanned(){
return isFirstColumnSpanned_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isFirstColumnSpanned_native_constfct(long __this__nativeId);
/**
* See QTreeWidgetItem:: isHidden()const
*/
@QtUninvokable
public final boolean isHidden(){
return isHidden_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isHidden_native_constfct(long __this__nativeId);
/**
* See QTreeWidgetItem:: isSelected()const
*/
@QtUninvokable
public final boolean isSelected(){
return isSelected_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isSelected_native_constfct(long __this__nativeId);
/**
* See operator<<(QDataStream&, QTreeWidgetItem)
*/
@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 QTreeWidgetItem:: operator=(QTreeWidgetItem)
*/
@QtUninvokable
public final void assign(io.qt.widgets.@NonNull QTreeWidgetItem other){
assign_native_cref_QTreeWidgetItem(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QTreeWidgetItem(long __this__nativeId, long other);
/**
* See operator>>(QDataStream&, QTreeWidgetItem&)
*/
@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 QTreeWidgetItem:: parent()const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QTreeWidgetItem parent(){
return parent_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QTreeWidgetItem parent_native_constfct(long __this__nativeId);
/**
* See QTreeWidgetItem:: removeChild(QTreeWidgetItem*)
*/
@QtUninvokable
public final void removeChild(io.qt.widgets.@Nullable QTreeWidgetItem child){
removeChild_native_QTreeWidgetItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(child));
QtJambi_LibraryUtilities.internal.setDefaultOwnership(child);
}
@QtUninvokable
private native void removeChild_native_QTreeWidgetItem_ptr(long __this__nativeId, long child);
/**
* See QTreeWidgetItem:: setBackground(int, QBrush)
*/
@QtUninvokable
public final void setBackground(int column, io.qt.gui.@NonNull QBrush brush){
setBackground_native_int_cref_QBrush(QtJambi_LibraryUtilities.internal.nativeId(this), column, QtJambi_LibraryUtilities.internal.checkedNativeId(brush));
}
@QtUninvokable
private native void setBackground_native_int_cref_QBrush(long __this__nativeId, int column, long brush);
/**
* See QTreeWidgetItem:: setCheckState(int, Qt::CheckState)
*/
@QtUninvokable
public final void setCheckState(int column, io.qt.core.Qt.@NonNull CheckState state){
setCheckState_native_int_Qt_CheckState(QtJambi_LibraryUtilities.internal.nativeId(this), column, state.value());
}
@QtUninvokable
private native void setCheckState_native_int_Qt_CheckState(long __this__nativeId, int column, int state);
/**
* See QTreeWidgetItem:: setChildIndicatorPolicy(QTreeWidgetItem::ChildIndicatorPolicy)
*/
@QtUninvokable
public final void setChildIndicatorPolicy(io.qt.widgets.QTreeWidgetItem.@NonNull ChildIndicatorPolicy policy){
setChildIndicatorPolicy_native_QTreeWidgetItem_ChildIndicatorPolicy(QtJambi_LibraryUtilities.internal.nativeId(this), policy.value());
}
@QtUninvokable
private native void setChildIndicatorPolicy_native_QTreeWidgetItem_ChildIndicatorPolicy(long __this__nativeId, int policy);
/**
* See QTreeWidgetItem:: setDisabled(bool)
*/
@QtUninvokable
public final void setDisabled(boolean disabled){
setDisabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), disabled);
}
@QtUninvokable
private native void setDisabled_native_bool(long __this__nativeId, boolean disabled);
/**
* See QTreeWidgetItem:: setExpanded(bool)
*/
@QtUninvokable
public final void setExpanded(boolean expand){
setExpanded_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), expand);
}
@QtUninvokable
private native void setExpanded_native_bool(long __this__nativeId, boolean expand);
/**
* See QTreeWidgetItem:: setFirstColumnSpanned(bool)
*/
@QtUninvokable
public final void setFirstColumnSpanned(boolean span){
setFirstColumnSpanned_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), span);
}
@QtUninvokable
private native void setFirstColumnSpanned_native_bool(long __this__nativeId, boolean span);
/**
* See QTreeWidgetItem:: 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 QTreeWidgetItem:: setFont(int, QFont)
*/
@QtUninvokable
public final void setFont(int column, io.qt.gui.@NonNull QFont font){
setFont_native_int_cref_QFont(QtJambi_LibraryUtilities.internal.nativeId(this), column, QtJambi_LibraryUtilities.internal.checkedNativeId(font));
}
@QtUninvokable
private native void setFont_native_int_cref_QFont(long __this__nativeId, int column, long font);
/**
* See QTreeWidgetItem:: setForeground(int, QBrush)
*/
@QtUninvokable
public final void setForeground(int column, io.qt.gui.@NonNull QBrush brush){
setForeground_native_int_cref_QBrush(QtJambi_LibraryUtilities.internal.nativeId(this), column, QtJambi_LibraryUtilities.internal.checkedNativeId(brush));
}
@QtUninvokable
private native void setForeground_native_int_cref_QBrush(long __this__nativeId, int column, long brush);
/**
* See QTreeWidgetItem:: setHidden(bool)
*/
@QtUninvokable
public final void setHidden(boolean hide){
setHidden_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), hide);
}
@QtUninvokable
private native void setHidden_native_bool(long __this__nativeId, boolean hide);
/**
* See QTreeWidgetItem:: setIcon(int, QIcon)
*/
@QtUninvokable
public final void setIcon(int column, io.qt.gui.@NonNull QIcon icon){
setIcon_native_int_cref_QIcon(QtJambi_LibraryUtilities.internal.nativeId(this), column, QtJambi_LibraryUtilities.internal.checkedNativeId(icon));
}
@QtUninvokable
private native void setIcon_native_int_cref_QIcon(long __this__nativeId, int column, long icon);
/**
* See QTreeWidgetItem:: setSelected(bool)
*/
@QtUninvokable
public final void setSelected(boolean select){
setSelected_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), select);
}
@QtUninvokable
private native void setSelected_native_bool(long __this__nativeId, boolean select);
/**
* See QTreeWidgetItem:: setSizeHint(int, QSize)
*/
@QtUninvokable
public final void setSizeHint(int column, io.qt.core.@NonNull QSize size){
setSizeHint_native_int_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), column, QtJambi_LibraryUtilities.internal.checkedNativeId(size));
}
@QtUninvokable
private native void setSizeHint_native_int_cref_QSize(long __this__nativeId, int column, long size);
/**
* See QTreeWidgetItem:: setStatusTip(int, QString)
*/
@QtUninvokable
public final void setStatusTip(int column, java.lang.@NonNull String statusTip){
setStatusTip_native_int_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), column, statusTip);
}
@QtUninvokable
private native void setStatusTip_native_int_cref_QString(long __this__nativeId, int column, java.lang.String statusTip);
/**
* See QTreeWidgetItem:: setText(int, QString)
*/
@QtUninvokable
public final void setText(int column, java.lang.@NonNull String text){
setText_native_int_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), column, text);
}
@QtUninvokable
private native void setText_native_int_cref_QString(long __this__nativeId, int column, java.lang.String text);
/**
* See QTreeWidgetItem:: setTextAlignment(int, Qt::Alignment)
*/
@QtUninvokable
public final void setTextAlignment(int column, io.qt.core.Qt.@NonNull Alignment alignment){
setTextAlignment_native_int_Qt_Alignment(QtJambi_LibraryUtilities.internal.nativeId(this), column, alignment.value());
}
@QtUninvokable
private native void setTextAlignment_native_int_Qt_Alignment(long __this__nativeId, int column, int alignment);
/**
* See QTreeWidgetItem:: setTextAlignment(int, Qt::AlignmentFlag)
*/
@QtUninvokable
public final void setTextAlignment(int column, io.qt.core.Qt.@NonNull AlignmentFlag alignment){
setTextAlignment_native_int_Qt_AlignmentFlag(QtJambi_LibraryUtilities.internal.nativeId(this), column, alignment.value());
}
@QtUninvokable
private native void setTextAlignment_native_int_Qt_AlignmentFlag(long __this__nativeId, int column, int alignment);
/**
* See QTreeWidgetItem:: setTextAlignment(int, int)
*
* @deprecated Use the overload taking Qt::Alignment
*/
@Deprecated
@QtUninvokable
public final void setTextAlignment(int column, int alignment){
setTextAlignment_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), column, alignment);
}
@Deprecated
@QtUninvokable
private native void setTextAlignment_native_int_int(long __this__nativeId, int column, int alignment);
/**
* See QTreeWidgetItem:: setToolTip(int, QString)
*/
@QtUninvokable
public final void setToolTip(int column, java.lang.@NonNull String toolTip){
setToolTip_native_int_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), column, toolTip);
}
@QtUninvokable
private native void setToolTip_native_int_cref_QString(long __this__nativeId, int column, java.lang.String toolTip);
/**
* See QTreeWidgetItem:: setWhatsThis(int, QString)
*/
@QtUninvokable
public final void setWhatsThis(int column, java.lang.@NonNull String whatsThis){
setWhatsThis_native_int_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), column, whatsThis);
}
@QtUninvokable
private native void setWhatsThis_native_int_cref_QString(long __this__nativeId, int column, java.lang.String whatsThis);
/**
* See QTreeWidgetItem:: sizeHint(int)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QSize sizeHint(int column){
return sizeHint_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), column);
}
@QtUninvokable
private native io.qt.core.QSize sizeHint_native_int_constfct(long __this__nativeId, int column);
/**
* See QTreeWidgetItem:: 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 QTreeWidgetItem:: statusTip(int)const
*/
@QtUninvokable
public final java.lang.@NonNull String statusTip(int column){
return statusTip_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), column);
}
@QtUninvokable
private native java.lang.String statusTip_native_int_constfct(long __this__nativeId, int column);
/**
* See QTreeWidgetItem:: takeChild(int)
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QTreeWidgetItem takeChild(int index){
io.qt.widgets.@Nullable QTreeWidgetItem __qt_return_value = takeChild_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), index);
QtJambi_LibraryUtilities.internal.setDefaultOwnership(__qt_return_value);
return __qt_return_value;
}
@QtUninvokable
private native io.qt.widgets.QTreeWidgetItem takeChild_native_int(long __this__nativeId, int index);
/**
* See QTreeWidgetItem:: takeChildren()
*/
@QtUninvokable
public final io.qt.core.@NonNull QList takeChildren(){
io.qt.core.@NonNull QList __qt_return_value = takeChildren_native(QtJambi_LibraryUtilities.internal.nativeId(this));
if (__qt_return_value != null) {
for (io.qt.widgets.QTreeWidgetItem i : __qt_return_value)
QtJambi_LibraryUtilities.internal.setDefaultOwnership(i);
}
return __qt_return_value;
}
@QtUninvokable
private native io.qt.core.QList takeChildren_native(long __this__nativeId);
/**
* See QTreeWidgetItem:: text(int)const
*/
@QtUninvokable
public final java.lang.@NonNull String text(int column){
return text_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), column);
}
@QtUninvokable
private native java.lang.String text_native_int_constfct(long __this__nativeId, int column);
/**
* See QTreeWidgetItem:: textAlignment(int)const
*/
@QtUninvokable
public final int textAlignment(int column){
return textAlignment_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), column);
}
@QtUninvokable
private native int textAlignment_native_int_constfct(long __this__nativeId, int column);
/**
* See QTreeWidgetItem:: toolTip(int)const
*/
@QtUninvokable
public final java.lang.@NonNull String toolTip(int column){
return toolTip_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), column);
}
@QtUninvokable
private native java.lang.String toolTip_native_int_constfct(long __this__nativeId, int column);
/**
* See QTreeWidgetItem:: treeWidget()const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QTreeWidget treeWidget(){
return treeWidget_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QTreeWidget treeWidget_native_constfct(long __this__nativeId);
/**
* See QTreeWidgetItem:: whatsThis(int)const
*/
@QtUninvokable
public final java.lang.@NonNull String whatsThis(int column){
return whatsThis_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), column);
}
@QtUninvokable
private native java.lang.String whatsThis_native_int_constfct(long __this__nativeId, int column);
/**
* See QTreeWidgetItem:: clone()const
*/
@QtUninvokable
public io.qt.widgets.@Nullable QTreeWidgetItem clone(){
return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QTreeWidgetItem clone_native_constfct(long __this__nativeId);
/**
* See QTreeWidgetItem:: data(int, int)const
*/
@QtUninvokable
public java.lang.Object data(int column, int role){
return data_native_int_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), column, role);
}
@QtUninvokable
private native java.lang.Object data_native_int_int_constfct(long __this__nativeId, int column, int role);
/**
* See QTreeWidgetItem:: operator<(QTreeWidgetItem)const
*/
@QtUninvokable
private boolean operator_less(io.qt.widgets.@NonNull QTreeWidgetItem other){
return operator_less_native_cref_QTreeWidgetItem_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native boolean operator_less_native_cref_QTreeWidgetItem_constfct(long __this__nativeId, long other);
/**
* See QTreeWidgetItem:: 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 QTreeWidgetItem:: setData(int, int, QVariant)
*/
@QtUninvokable
public void setData(int column, int role, java.lang.Object value){
setData_native_int_int_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), column, role, value);
}
@QtUninvokable
private native void setData_native_int_int_cref_QVariant(long __this__nativeId, int column, int role, java.lang.Object value);
/**
* See QTreeWidgetItem:: 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 QTreeWidgetItem(QPrivateConstructor p) { super(p); }
/**
* See QTreeWidgetItem:: operator<(QTreeWidgetItem)const
*/
/**
* {@inheritDoc}
*/
@QtUninvokable
public int compareTo(io.qt.widgets.@StrictNonNull QTreeWidgetItem other) {
if (operator_less((io.qt.widgets.QTreeWidgetItem) other)) return -1;
else if (((io.qt.widgets.QTreeWidgetItem) other).operator_less(this)) return 1;
else return 0;
}
// TEMPLATE - core.to_iterator - START
@Override
@QtUninvokable
public final io.qt.widgets.QTreeWidgetItemIterator iterator() {
return new io.qt.widgets.QTreeWidgetItemIterator(this);
}
// TEMPLATE - core.to_iterator - END
/**
* Overloaded function for {@link #setBackground(int, io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setBackground(int column, io.qt.core.Qt.@NonNull BrushStyle brush) {
setBackground(column, new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setBackground(int, io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setBackground(int column, io.qt.gui.@NonNull QColor brush) {
setBackground(column, new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setBackground(int, io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setBackground(int column, io.qt.core.Qt.@NonNull GlobalColor brush) {
setBackground(column, new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setBackground(int, io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setBackground(int column, io.qt.gui.@NonNull QPixmap brush) {
setBackground(column, new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setBackground(int, io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setBackground(int column, io.qt.gui.@NonNull QImage brush) {
setBackground(column, new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setBackground(int, io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setBackground(int column, io.qt.gui.@NonNull QGradient brush) {
setBackground(column, 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(int, io.qt.gui.QFont)}.
*/
@QtUninvokable
public final void setFont(int column, java.lang.@NonNull String font) {
setFont(column, new io.qt.gui.QFont(font));
}
/**
* Overloaded function for {@link #setForeground(int, io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setForeground(int column, io.qt.core.Qt.@NonNull BrushStyle brush) {
setForeground(column, new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setForeground(int, io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setForeground(int column, io.qt.gui.@NonNull QColor brush) {
setForeground(column, new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setForeground(int, io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setForeground(int column, io.qt.core.Qt.@NonNull GlobalColor brush) {
setForeground(column, new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setForeground(int, io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setForeground(int column, io.qt.gui.@NonNull QPixmap brush) {
setForeground(column, new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setForeground(int, io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setForeground(int column, io.qt.gui.@NonNull QImage brush) {
setForeground(column, new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setForeground(int, io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void setForeground(int column, io.qt.gui.@NonNull QGradient brush) {
setForeground(column, new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #setIcon(int, io.qt.gui.QIcon)}.
*/
@QtUninvokable
public final void setIcon(int column, io.qt.gui.@NonNull QPixmap icon) {
setIcon(column, new io.qt.gui.QIcon(icon));
}
/**
* Overloaded function for {@link #setTextAlignment(int, io.qt.core.Qt.Alignment)}.
*/
@QtUninvokable
public final void setTextAlignment(int column, io.qt.core.Qt.@NonNull AlignmentFlag @NonNull... alignment) {
setTextAlignment(column, new io.qt.core.Qt.Alignment(alignment));
}
}