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