io.qt.widgets.QTreeWidget Maven / Gradle / Ivy
package io.qt.widgets;
/**
* Tree view that uses a predefined tree model
* Java wrapper for Qt class QTreeWidget
*/
public class QTreeWidget extends io.qt.widgets.QTreeView
implements Iterable
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QTreeWidget.class);
/**
* See QTreeWidget::currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)
*/
public final Signal2 currentItemChanged = new Signal2<>();
/**
* See QTreeWidget::itemActivated(QTreeWidgetItem*,int)
*/
public final Signal2 itemActivated = new Signal2<>();
/**
* See QTreeWidget::itemChanged(QTreeWidgetItem*,int)
*/
public final Signal2 itemChanged = new Signal2<>();
/**
* See QTreeWidget::itemClicked(QTreeWidgetItem*,int)
*/
public final Signal2 itemClicked = new Signal2<>();
/**
* See QTreeWidget::itemCollapsed(QTreeWidgetItem*)
*/
public final Signal1 itemCollapsed = new Signal1<>();
/**
* See QTreeWidget::itemDoubleClicked(QTreeWidgetItem*,int)
*/
public final Signal2 itemDoubleClicked = new Signal2<>();
/**
* See QTreeWidget::itemEntered(QTreeWidgetItem*,int)
*/
public final Signal2 itemEntered = new Signal2<>();
/**
* See QTreeWidget::itemExpanded(QTreeWidgetItem*)
*/
public final Signal1 itemExpanded = new Signal1<>();
/**
* See QTreeWidget::itemPressed(QTreeWidgetItem*,int)
*/
public final Signal2 itemPressed = new Signal2<>();
/**
* See QTreeWidget::itemSelectionChanged()
*/
public final Signal0 itemSelectionChanged = new Signal0();
/**
* Overloaded constructor for {@link #QTreeWidget(io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QTreeWidget() {
this((io.qt.widgets.QWidget)null);
}
/**
* See QTreeWidget::QTreeWidget(QWidget*)
*/
public QTreeWidget(io.qt.widgets.QWidget parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QTreeWidget instance, io.qt.widgets.QWidget parent);
/**
* See QTreeWidget::addTopLevelItem(QTreeWidgetItem*)
*/
@io.qt.QtUninvokable
public final void addTopLevelItem(io.qt.widgets.QTreeWidgetItem item){
addTopLevelItem_native_QTreeWidgetItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
QtJambi_LibraryUtilities.internal.setCppOwnership(item);
}
@io.qt.QtUninvokable
private native void addTopLevelItem_native_QTreeWidgetItem_ptr(long __this__nativeId, long item);
/**
* See QTreeWidget::addTopLevelItems(QList<QTreeWidgetItem*>)
*/
@io.qt.QtUninvokable
public final void addTopLevelItems(java.util.Collection items){
addTopLevelItems_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), items);
if (items != null) {
for (io.qt.widgets.QTreeWidgetItem i : items)
QtJambi_LibraryUtilities.internal.setCppOwnership(i);
}
}
@io.qt.QtUninvokable
private native void addTopLevelItems_native_cref_QList(long __this__nativeId, java.util.Collection items);
/**
*
*/
public final void clear(){
clear_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void clear_native(long __this__nativeId);
/**
* Overloaded function for {@link #closePersistentEditor(io.qt.widgets.QTreeWidgetItem, int)}
* with column = 0
.
*/
@io.qt.QtUninvokable
public final void closePersistentEditor(io.qt.widgets.QTreeWidgetItem item) {
closePersistentEditor(item, (int)0);
}
/**
* See QTreeWidget::closePersistentEditor(QTreeWidgetItem*,int)
*/
@io.qt.QtUninvokable
public final void closePersistentEditor(io.qt.widgets.QTreeWidgetItem item, int column){
closePersistentEditor_native_QTreeWidgetItem_ptr_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), column);
}
@io.qt.QtUninvokable
private native void closePersistentEditor_native_QTreeWidgetItem_ptr_int(long __this__nativeId, long item, int column);
/**
* See QTreeWidget::collapseItem(const QTreeWidgetItem*)
*/
public final void collapseItem(io.qt.widgets.QTreeWidgetItem item){
collapseItem_native_const_QTreeWidgetItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
}
private native void collapseItem_native_const_QTreeWidgetItem_ptr(long __this__nativeId, long item);
/**
* See QTreeWidget::columnCount()const
*/
@io.qt.QtPropertyReader(name="columnCount")
@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 QTreeWidget::currentColumn()const
*/
@io.qt.QtUninvokable
public final int currentColumn(){
return currentColumn_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int currentColumn_native_constfct(long __this__nativeId);
/**
* See QTreeWidget::currentItem()const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QTreeWidgetItem currentItem(){
return currentItem_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QTreeWidgetItem currentItem_native_constfct(long __this__nativeId);
/**
* Overloaded function for {@link #editItem(io.qt.widgets.QTreeWidgetItem, int)}
* with column = 0
.
*/
@io.qt.QtUninvokable
public final void editItem(io.qt.widgets.QTreeWidgetItem item) {
editItem(item, (int)0);
}
/**
* See QTreeWidget::editItem(QTreeWidgetItem*,int)
*/
@io.qt.QtUninvokable
public final void editItem(io.qt.widgets.QTreeWidgetItem item, int column){
editItem_native_QTreeWidgetItem_ptr_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), column);
}
@io.qt.QtUninvokable
private native void editItem_native_QTreeWidgetItem_ptr_int(long __this__nativeId, long item, int column);
/**
* See QTreeWidget::expandItem(const QTreeWidgetItem*)
*/
public final void expandItem(io.qt.widgets.QTreeWidgetItem item){
expandItem_native_const_QTreeWidgetItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
}
private native void expandItem_native_const_QTreeWidgetItem_ptr(long __this__nativeId, long item);
/**
* Overloaded function for {@link #findItems(java.lang.String, io.qt.core.Qt.MatchFlags, int)}
* with column = 0
.
*/
@io.qt.QtUninvokable
public final io.qt.core.QList findItems(java.lang.String text, io.qt.core.Qt.MatchFlags flags) {
return findItems(text, flags, (int)0);
}
/**
* See QTreeWidget::findItems(QString,Qt::MatchFlags,int)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QList findItems(java.lang.String text, io.qt.core.Qt.MatchFlags flags, int column){
return findItems_native_cref_QString_QFlags_Qt_MatchFlag__int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), text, flags.value(), column);
}
@io.qt.QtUninvokable
private native io.qt.core.QList findItems_native_cref_QString_QFlags_Qt_MatchFlag__int_constfct(long __this__nativeId, java.lang.String text, int flags, int column);
/**
* See QTreeWidget::headerItem()const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QTreeWidgetItem headerItem(){
return headerItem_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QTreeWidgetItem headerItem_native_constfct(long __this__nativeId);
/**
* Overloaded function for {@link #indexFromItem(io.qt.widgets.QTreeWidgetItem, int)}
* with column = 0
.
*/
@io.qt.QtUninvokable
public final io.qt.core.QModelIndex indexFromItem(io.qt.widgets.QTreeWidgetItem item) {
return indexFromItem(item, (int)0);
}
/**
* See QTreeWidget::indexFromItem(const QTreeWidgetItem*,int)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QModelIndex indexFromItem(io.qt.widgets.QTreeWidgetItem item, int column){
return indexFromItem_native_const_QTreeWidgetItem_ptr_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), column);
}
@io.qt.QtUninvokable
private native io.qt.core.QModelIndex indexFromItem_native_const_QTreeWidgetItem_ptr_int_constfct(long __this__nativeId, long item, int column);
/**
* See QTreeWidget::indexOfTopLevelItem(QTreeWidgetItem*)const
*/
@io.qt.QtUninvokable
public final int indexOfTopLevelItem(io.qt.widgets.QTreeWidgetItem item){
return indexOfTopLevelItem_native_QTreeWidgetItem_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
}
@io.qt.QtUninvokable
private native int indexOfTopLevelItem_native_QTreeWidgetItem_ptr_constfct(long __this__nativeId, long item);
/**
* See QTreeWidget::insertTopLevelItem(int,QTreeWidgetItem*)
*/
@io.qt.QtUninvokable
public final void insertTopLevelItem(int index, io.qt.widgets.QTreeWidgetItem item){
insertTopLevelItem_native_int_QTreeWidgetItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), index, QtJambi_LibraryUtilities.internal.checkedNativeId(item));
QtJambi_LibraryUtilities.internal.setCppOwnership(item);
}
@io.qt.QtUninvokable
private native void insertTopLevelItem_native_int_QTreeWidgetItem_ptr(long __this__nativeId, int index, long item);
/**
* See QTreeWidget::insertTopLevelItems(int,QList<QTreeWidgetItem*>)
*/
@io.qt.QtUninvokable
public final void insertTopLevelItems(int index, java.util.Collection items){
insertTopLevelItems_native_int_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), index, items);
if (items != null) {
for (io.qt.widgets.QTreeWidgetItem i : items)
QtJambi_LibraryUtilities.internal.setCppOwnership(i);
}
}
@io.qt.QtUninvokable
private native void insertTopLevelItems_native_int_cref_QList(long __this__nativeId, int index, java.util.Collection items);
/**
* See QTreeWidget::invisibleRootItem()const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QTreeWidgetItem invisibleRootItem(){
return invisibleRootItem_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QTreeWidgetItem invisibleRootItem_native_constfct(long __this__nativeId);
/**
* Overloaded function for {@link #isPersistentEditorOpen(io.qt.widgets.QTreeWidgetItem, int)}
* with column = 0
.
*/
@io.qt.QtUninvokable
public final boolean isPersistentEditorOpen(io.qt.widgets.QTreeWidgetItem item) {
return isPersistentEditorOpen(item, (int)0);
}
/**
* See QTreeWidget::isPersistentEditorOpen(QTreeWidgetItem*,int)const
*/
@io.qt.QtUninvokable
public final boolean isPersistentEditorOpen(io.qt.widgets.QTreeWidgetItem item, int column){
return isPersistentEditorOpen_native_QTreeWidgetItem_ptr_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), column);
}
@io.qt.QtUninvokable
private native boolean isPersistentEditorOpen_native_QTreeWidgetItem_ptr_int_constfct(long __this__nativeId, long item, int column);
/**
* See QTreeWidget::itemAbove(const QTreeWidgetItem*)const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QTreeWidgetItem itemAbove(io.qt.widgets.QTreeWidgetItem item){
return itemAbove_native_const_QTreeWidgetItem_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QTreeWidgetItem itemAbove_native_const_QTreeWidgetItem_ptr_constfct(long __this__nativeId, long item);
/**
* See QTreeWidget::itemAt(QPoint)const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QTreeWidgetItem itemAt(io.qt.core.QPoint p){
return itemAt_native_cref_QPoint_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QTreeWidgetItem itemAt_native_cref_QPoint_constfct(long __this__nativeId, long p);
/**
* See QTreeWidget::itemAt(int,int)const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QTreeWidgetItem itemAt(int x, int y){
return itemAt_native_int_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), x, y);
}
@io.qt.QtUninvokable
private native io.qt.widgets.QTreeWidgetItem itemAt_native_int_int_constfct(long __this__nativeId, int x, int y);
/**
* See QTreeWidget::itemBelow(const QTreeWidgetItem*)const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QTreeWidgetItem itemBelow(io.qt.widgets.QTreeWidgetItem item){
return itemBelow_native_const_QTreeWidgetItem_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QTreeWidgetItem itemBelow_native_const_QTreeWidgetItem_ptr_constfct(long __this__nativeId, long item);
/**
* See QTreeWidget::itemFromIndex(QModelIndex)const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QTreeWidgetItem itemFromIndex(io.qt.core.QModelIndex index){
return itemFromIndex_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@io.qt.QtUninvokable
private native io.qt.widgets.QTreeWidgetItem itemFromIndex_native_cref_QModelIndex_constfct(long __this__nativeId, io.qt.core.QModelIndex index);
/**
* See QTreeWidget::itemWidget(QTreeWidgetItem*,int)const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QWidget itemWidget(io.qt.widgets.QTreeWidgetItem item, int column){
return itemWidget_native_QTreeWidgetItem_ptr_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), column);
}
@io.qt.QtUninvokable
private native io.qt.widgets.QWidget itemWidget_native_QTreeWidgetItem_ptr_int_constfct(long __this__nativeId, long item, int column);
/**
* Overloaded function for {@link #openPersistentEditor(io.qt.widgets.QTreeWidgetItem, int)}
* with column = 0
.
*/
@io.qt.QtUninvokable
public final void openPersistentEditor(io.qt.widgets.QTreeWidgetItem item) {
openPersistentEditor(item, (int)0);
}
/**
* See QTreeWidget::openPersistentEditor(QTreeWidgetItem*,int)
*/
@io.qt.QtUninvokable
public final void openPersistentEditor(io.qt.widgets.QTreeWidgetItem item, int column){
openPersistentEditor_native_QTreeWidgetItem_ptr_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), column);
}
@io.qt.QtUninvokable
private native void openPersistentEditor_native_QTreeWidgetItem_ptr_int(long __this__nativeId, long item, int column);
/**
* See QTreeWidget::removeItemWidget(QTreeWidgetItem*,int)
*/
@io.qt.QtUninvokable
public final void removeItemWidget(io.qt.widgets.QTreeWidgetItem item, int column){
removeItemWidget_native_QTreeWidgetItem_ptr_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), column);
if (item.treeWidget() == null) QtJambi_LibraryUtilities.internal.setDefaultOwnership(item);
}
@io.qt.QtUninvokable
private native void removeItemWidget_native_QTreeWidgetItem_ptr_int(long __this__nativeId, long item, int column);
/**
* Overloaded function for {@link #scrollToItem(io.qt.widgets.QTreeWidgetItem, io.qt.widgets.QAbstractItemView.ScrollHint)}
* with hint = io.qt.widgets.QAbstractItemView.ScrollHint.EnsureVisible
.
*/
public final void scrollToItem(io.qt.widgets.QTreeWidgetItem item) {
scrollToItem(item, io.qt.widgets.QAbstractItemView.ScrollHint.EnsureVisible);
}
/**
* See QTreeWidget::scrollToItem(const QTreeWidgetItem*,QAbstractItemView::ScrollHint)
*/
public final void scrollToItem(io.qt.widgets.QTreeWidgetItem item, io.qt.widgets.QAbstractItemView.ScrollHint hint){
scrollToItem_native_const_QTreeWidgetItem_ptr_QAbstractItemView_ScrollHint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), hint.value());
}
private native void scrollToItem_native_const_QTreeWidgetItem_ptr_QAbstractItemView_ScrollHint(long __this__nativeId, long item, int hint);
/**
* See QTreeWidget::selectedItems()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QList selectedItems(){
return selectedItems_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QList selectedItems_native_constfct(long __this__nativeId);
/**
* See QTreeWidget::setColumnCount(int)
*/
@io.qt.QtPropertyWriter(name="columnCount")
@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 QTreeWidget::setCurrentItem(QTreeWidgetItem*)
*/
@io.qt.QtUninvokable
public final void setCurrentItem(io.qt.widgets.QTreeWidgetItem item){
setCurrentItem_native_QTreeWidgetItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
}
@io.qt.QtUninvokable
private native void setCurrentItem_native_QTreeWidgetItem_ptr(long __this__nativeId, long item);
/**
* See QTreeWidget::setCurrentItem(QTreeWidgetItem*,int)
*/
@io.qt.QtUninvokable
public final void setCurrentItem(io.qt.widgets.QTreeWidgetItem item, int column){
setCurrentItem_native_QTreeWidgetItem_ptr_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), column);
}
@io.qt.QtUninvokable
private native void setCurrentItem_native_QTreeWidgetItem_ptr_int(long __this__nativeId, long item, int column);
/**
* Overloaded function for {@link #setCurrentItem(io.qt.widgets.QTreeWidgetItem, int, io.qt.core.QItemSelectionModel.SelectionFlags)}.
*/
@io.qt.QtUninvokable
public final void setCurrentItem(io.qt.widgets.QTreeWidgetItem item, int column, io.qt.core.QItemSelectionModel.SelectionFlag ... command){
setCurrentItem(item, column, new io.qt.core.QItemSelectionModel.SelectionFlags(command));
}
/**
* See QTreeWidget::setCurrentItem(QTreeWidgetItem*,int,QItemSelectionModel::SelectionFlags)
*/
@io.qt.QtUninvokable
public final void setCurrentItem(io.qt.widgets.QTreeWidgetItem item, int column, io.qt.core.QItemSelectionModel.SelectionFlags command){
setCurrentItem_native_QTreeWidgetItem_ptr_int_QFlags_QItemSelectionModel_SelectionFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), column, command.value());
}
@io.qt.QtUninvokable
private native void setCurrentItem_native_QTreeWidgetItem_ptr_int_QFlags_QItemSelectionModel_SelectionFlag_(long __this__nativeId, long item, int column, int command);
/**
* See QTreeWidget::setHeaderItem(QTreeWidgetItem*)
*/
@io.qt.QtUninvokable
public final void setHeaderItem(io.qt.widgets.QTreeWidgetItem item){
setHeaderItem_native_QTreeWidgetItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
QtJambi_LibraryUtilities.internal.setCppOwnership(item);
}
@io.qt.QtUninvokable
private native void setHeaderItem_native_QTreeWidgetItem_ptr(long __this__nativeId, long item);
/**
* See QTreeWidget::setHeaderLabel(QString)
*/
@io.qt.QtUninvokable
public final void setHeaderLabel(java.lang.String label){
setHeaderLabel_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), label);
}
@io.qt.QtUninvokable
private native void setHeaderLabel_native_cref_QString(long __this__nativeId, java.lang.String label);
/**
* See QTreeWidget::setHeaderLabels(QStringList)
*/
@io.qt.QtUninvokable
public final void setHeaderLabels(java.util.Collection labels){
setHeaderLabels_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), labels);
}
@io.qt.QtUninvokable
private native void setHeaderLabels_native_cref_QStringList(long __this__nativeId, java.util.Collection labels);
/**
* See QTreeWidget::setItemWidget(QTreeWidgetItem*,int,QWidget*)
*/
@io.qt.QtUninvokable
public final void setItemWidget(io.qt.widgets.QTreeWidgetItem item, int column, io.qt.widgets.QWidget widget){
setItemWidget_native_QTreeWidgetItem_ptr_int_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), column, QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@io.qt.QtUninvokable
private native void setItemWidget_native_QTreeWidgetItem_ptr_int_QWidget_ptr(long __this__nativeId, long item, int column, long widget);
/**
* See QAbstractItemView::setModel(QAbstractItemModel*)
*/
@Deprecated
@io.qt.QtUninvokable
public final void setModel(io.qt.core.QAbstractItemModel model) throws io.qt.QNoImplementationException {
setModel_native_QAbstractItemModel_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(model));
QtJambi_LibraryUtilities.internal.setReferenceCount(this, io.qt.widgets.QAbstractItemView.class, "__rcItemModel", false, false, model);
// setModel() creates a new selection model for the object
QtJambi_LibraryUtilities.internal.setReferenceCount(this, io.qt.widgets.QAbstractItemView.class, "__rcItemSelectionModel", false, false, null);
}
@Deprecated
private static void setModel_native_QAbstractItemModel_ptr(long __this__nativeId, long model) throws io.qt.QNoImplementationException {
throw new io.qt.QNoImplementationException();
}
/**
* See QTreeWidget::sortColumn()const
*/
@io.qt.QtUninvokable
public final int sortColumn(){
return sortColumn_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int sortColumn_native_constfct(long __this__nativeId);
/**
* See QTreeWidget::sortItems(int,Qt::SortOrder)
*/
@io.qt.QtUninvokable
public final void sortItems(int column, io.qt.core.Qt.SortOrder order){
sortItems_native_int_Qt_SortOrder(QtJambi_LibraryUtilities.internal.nativeId(this), column, order.value());
}
@io.qt.QtUninvokable
private native void sortItems_native_int_Qt_SortOrder(long __this__nativeId, int column, int order);
/**
* See QTreeWidget::takeTopLevelItem(int)
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QTreeWidgetItem takeTopLevelItem(int index){
return takeTopLevelItem_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@io.qt.QtUninvokable
private native io.qt.widgets.QTreeWidgetItem takeTopLevelItem_native_int(long __this__nativeId, int index);
/**
* See QTreeWidget::topLevelItem(int)const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QTreeWidgetItem topLevelItem(int index){
return topLevelItem_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@io.qt.QtUninvokable
private native io.qt.widgets.QTreeWidgetItem topLevelItem_native_int_constfct(long __this__nativeId, int index);
/**
* See QTreeWidget::topLevelItemCount()const
*/
@io.qt.QtPropertyReader(name="topLevelItemCount")
@io.qt.QtUninvokable
public final int topLevelItemCount(){
return topLevelItemCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int topLevelItemCount_native_constfct(long __this__nativeId);
/**
* See QTreeWidget::visualItemRect(const QTreeWidgetItem*)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QRect visualItemRect(io.qt.widgets.QTreeWidgetItem item){
return visualItemRect_native_const_QTreeWidgetItem_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
}
@io.qt.QtUninvokable
private native io.qt.core.QRect visualItemRect_native_const_QTreeWidgetItem_ptr_constfct(long __this__nativeId, long item);
/**
* See QWidget::dropEvent(QDropEvent*)
*/
@io.qt.QtUninvokable
protected void dropEvent(io.qt.gui.QDropEvent event){
dropEvent_native_QDropEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@io.qt.QtUninvokable
private native void dropEvent_native_QDropEvent_ptr(long __this__nativeId, long event);
/**
* See QTreeWidget::dropMimeData(QTreeWidgetItem*,int,const QMimeData*,Qt::DropAction)
*/
@io.qt.QtUninvokable
protected boolean dropMimeData(io.qt.widgets.QTreeWidgetItem parent, int index, io.qt.core.QMimeData data, io.qt.core.Qt.DropAction action){
return dropMimeData_native_QTreeWidgetItem_ptr_int_const_QMimeData_ptr_Qt_DropAction(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(parent), index, QtJambi_LibraryUtilities.internal.checkedNativeId(data), action.value());
}
@io.qt.QtUninvokable
private native boolean dropMimeData_native_QTreeWidgetItem_ptr_int_const_QMimeData_ptr_Qt_DropAction(long __this__nativeId, long parent, int index, long data, int action);
/**
*
*/
@io.qt.QtUninvokable
public boolean event(io.qt.core.QEvent e){
return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@io.qt.QtUninvokable
private native boolean event_native_QEvent_ptr(long __this__nativeId, long e);
/**
* See QTreeWidget::mimeData(QList<QTreeWidgetItem*>)const
*/
@io.qt.QtUninvokable
protected io.qt.core.QMimeData mimeData(java.util.Collection items){
return mimeData_native_cref_QList_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), items);
}
@io.qt.QtUninvokable
private native io.qt.core.QMimeData mimeData_native_cref_QList_constfct(long __this__nativeId, java.util.Collection items);
/**
* See QTreeWidget::mimeTypes()const
*/
@io.qt.QtUninvokable
protected java.util.List mimeTypes(){
return mimeTypes_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.util.List mimeTypes_native_constfct(long __this__nativeId);
/**
* See QAbstractItemView::setSelectionModel(QItemSelectionModel*)
*/
@io.qt.QtUninvokable
public void setSelectionModel(io.qt.core.QItemSelectionModel selectionModel){
java.util.Objects.requireNonNull(selectionModel, "Argument 'selectionModel': null not expected.");
setSelectionModel_native_QItemSelectionModel_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(selectionModel));
QtJambi_LibraryUtilities.internal.setReferenceCount(this, io.qt.widgets.QAbstractItemView.class, "__rcItemSelectionModel", false, false, selectionModel);
}
@io.qt.QtUninvokable
private native void setSelectionModel_native_QItemSelectionModel_ptr(long __this__nativeId, long selectionModel);
/**
* See QTreeWidget::supportedDropActions()const
*/
@io.qt.QtUninvokable
protected io.qt.core.Qt.DropActions supportedDropActions(){
return new io.qt.core.Qt.DropActions(supportedDropActions_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int supportedDropActions_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QTreeWidget(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
*/
@io.qt.NativeAccess
protected QTreeWidget(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@io.qt.QtUninvokable
private static native void initialize_native(QTreeWidget instance, QDeclarativeConstructor constructor);
// 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
}