io.qt.widgets.QTreeWidget Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* 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.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QTreeWidget.class);
/**
* See QTreeWidget:: currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*)
*/
public final @NonNull Signal2 currentItemChanged = new Signal2<>();
/**
* See QTreeWidget:: itemActivated(QTreeWidgetItem*, int)
*/
public final @NonNull Signal2 itemActivated = new Signal2<>();
/**
* See QTreeWidget:: itemChanged(QTreeWidgetItem*, int)
*/
public final @NonNull Signal2 itemChanged = new Signal2<>();
/**
* See QTreeWidget:: itemClicked(QTreeWidgetItem*, int)
*/
public final @NonNull Signal2 itemClicked = new Signal2<>();
/**
* See QTreeWidget:: itemCollapsed(QTreeWidgetItem*)
*/
public final @NonNull Signal1 itemCollapsed = new Signal1<>();
/**
* See QTreeWidget:: itemDoubleClicked(QTreeWidgetItem*, int)
*/
public final @NonNull Signal2 itemDoubleClicked = new Signal2<>();
/**
* See QTreeWidget:: itemEntered(QTreeWidgetItem*, int)
*/
public final @NonNull Signal2 itemEntered = new Signal2<>();
/**
* See QTreeWidget:: itemExpanded(QTreeWidgetItem*)
*/
public final @NonNull Signal1 itemExpanded = new Signal1<>();
/**
* See QTreeWidget:: itemPressed(QTreeWidgetItem*, int)
*/
public final @NonNull Signal2 itemPressed = new Signal2<>();
/**
* See QTreeWidget:: itemSelectionChanged()
*/
public final @NonNull Signal0 itemSelectionChanged = new Signal0();
/**
* See QTreeWidget:: QTreeWidget(QWidget*)
*/
public QTreeWidget(io.qt.widgets.@Nullable 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*)
*/
@QtUninvokable
public final void addTopLevelItem(io.qt.widgets.@Nullable QTreeWidgetItem item){
addTopLevelItem_native_QTreeWidgetItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
QtJambi_LibraryUtilities.internal.setCppOwnership(item);
}
@QtUninvokable
private native void addTopLevelItem_native_QTreeWidgetItem_ptr(long __this__nativeId, long item);
/**
* See QTreeWidget:: addTopLevelItems(QList<QTreeWidgetItem*>)
*/
@QtUninvokable
public final void addTopLevelItems(java.util.@NonNull Collection extends io.qt.widgets.@Nullable QTreeWidgetItem> 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);
}
}
@QtUninvokable
private native void addTopLevelItems_native_cref_QList(long __this__nativeId, java.util.Collection extends io.qt.widgets.QTreeWidgetItem> items);
/**
*
*/
public final void clear(){
clear_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void clear_native(long __this__nativeId);
/**
* See QTreeWidget:: closePersistentEditor(QTreeWidgetItem*, int)
*/
@QtUninvokable
public final void closePersistentEditor(io.qt.widgets.@Nullable QTreeWidgetItem item, int column){
closePersistentEditor_native_QTreeWidgetItem_ptr_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), column);
}
@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.@Nullable 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
*/
@QtPropertyReader(name="columnCount")
@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 QTreeWidget:: currentColumn()const
*/
@QtUninvokable
public final int currentColumn(){
return currentColumn_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int currentColumn_native_constfct(long __this__nativeId);
/**
* See QTreeWidget:: currentItem()const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QTreeWidgetItem currentItem(){
return currentItem_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QTreeWidgetItem currentItem_native_constfct(long __this__nativeId);
/**
* See QTreeWidget:: editItem(QTreeWidgetItem*, int)
*/
@QtUninvokable
public final void editItem(io.qt.widgets.@Nullable QTreeWidgetItem item, int column){
editItem_native_QTreeWidgetItem_ptr_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), column);
}
@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.@Nullable 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);
/**
* See QTreeWidget:: findItems(QString, Qt::MatchFlags, int)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QList findItems(java.lang.@NonNull String text, io.qt.core.Qt.@NonNull MatchFlags flags, int column){
return findItems_native_cref_QString_Qt_MatchFlags_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), text, flags.value(), column);
}
@QtUninvokable
private native io.qt.core.QList findItems_native_cref_QString_Qt_MatchFlags_int_constfct(long __this__nativeId, java.lang.String text, int flags, int column);
/**
* See QTreeWidget:: headerItem()const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QTreeWidgetItem headerItem(){
return headerItem_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QTreeWidgetItem headerItem_native_constfct(long __this__nativeId);
/**
* See QTreeWidget:: indexFromItem(const QTreeWidgetItem*, int)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QModelIndex indexFromItem(io.qt.widgets.@Nullable QTreeWidgetItem item, int column){
return indexFromItem_native_const_QTreeWidgetItem_ptr_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), column);
}
@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
*/
@QtUninvokable
public final int indexOfTopLevelItem(io.qt.widgets.@Nullable QTreeWidgetItem item){
return indexOfTopLevelItem_native_QTreeWidgetItem_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
}
@QtUninvokable
private native int indexOfTopLevelItem_native_QTreeWidgetItem_ptr_constfct(long __this__nativeId, long item);
/**
* See QTreeWidget:: insertTopLevelItem(int, QTreeWidgetItem*)
*/
@QtUninvokable
public final void insertTopLevelItem(int index, io.qt.widgets.@Nullable QTreeWidgetItem item){
insertTopLevelItem_native_int_QTreeWidgetItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), index, QtJambi_LibraryUtilities.internal.checkedNativeId(item));
QtJambi_LibraryUtilities.internal.setCppOwnership(item);
}
@QtUninvokable
private native void insertTopLevelItem_native_int_QTreeWidgetItem_ptr(long __this__nativeId, int index, long item);
/**
* See QTreeWidget:: insertTopLevelItems(int, QList<QTreeWidgetItem*>)
*/
@QtUninvokable
public final void insertTopLevelItems(int index, java.util.@NonNull Collection extends io.qt.widgets.@Nullable QTreeWidgetItem> 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);
}
}
@QtUninvokable
private native void insertTopLevelItems_native_int_cref_QList(long __this__nativeId, int index, java.util.Collection extends io.qt.widgets.QTreeWidgetItem> items);
/**
* See QTreeWidget:: invisibleRootItem()const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QTreeWidgetItem invisibleRootItem(){
return invisibleRootItem_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QTreeWidgetItem invisibleRootItem_native_constfct(long __this__nativeId);
/**
* See QTreeWidget:: isPersistentEditorOpen(QTreeWidgetItem*, int)const
*/
@QtUninvokable
public final boolean isPersistentEditorOpen(io.qt.widgets.@Nullable QTreeWidgetItem item, int column){
return isPersistentEditorOpen_native_QTreeWidgetItem_ptr_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), column);
}
@QtUninvokable
private native boolean isPersistentEditorOpen_native_QTreeWidgetItem_ptr_int_constfct(long __this__nativeId, long item, int column);
/**
* See QTreeWidget:: itemAbove(const QTreeWidgetItem*)const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QTreeWidgetItem itemAbove(io.qt.widgets.@Nullable QTreeWidgetItem item){
return itemAbove_native_const_QTreeWidgetItem_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
}
@QtUninvokable
private native io.qt.widgets.QTreeWidgetItem itemAbove_native_const_QTreeWidgetItem_ptr_constfct(long __this__nativeId, long item);
/**
* See QTreeWidget:: itemAt(QPoint)const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QTreeWidgetItem itemAt(io.qt.core.@NonNull QPoint p){
return itemAt_native_cref_QPoint_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p));
}
@QtUninvokable
private native io.qt.widgets.QTreeWidgetItem itemAt_native_cref_QPoint_constfct(long __this__nativeId, long p);
/**
* See QTreeWidget:: itemAt(int, int)const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QTreeWidgetItem itemAt(int x, int y){
return itemAt_native_int_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), x, y);
}
@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
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QTreeWidgetItem itemBelow(io.qt.widgets.@Nullable QTreeWidgetItem item){
return itemBelow_native_const_QTreeWidgetItem_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
}
@QtUninvokable
private native io.qt.widgets.QTreeWidgetItem itemBelow_native_const_QTreeWidgetItem_ptr_constfct(long __this__nativeId, long item);
/**
* See QTreeWidget:: itemFromIndex(QModelIndex)const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QTreeWidgetItem itemFromIndex(io.qt.core.@NonNull QModelIndex index){
return itemFromIndex_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native io.qt.widgets.QTreeWidgetItem itemFromIndex_native_cref_QModelIndex_constfct(long __this__nativeId, long index);
/**
* See QTreeWidget:: itemWidget(QTreeWidgetItem*, int)const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QWidget itemWidget(io.qt.widgets.@Nullable QTreeWidgetItem item, int column){
return itemWidget_native_QTreeWidgetItem_ptr_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), column);
}
@QtUninvokable
private native io.qt.widgets.QWidget itemWidget_native_QTreeWidgetItem_ptr_int_constfct(long __this__nativeId, long item, int column);
/**
* See QTreeWidget:: openPersistentEditor(QTreeWidgetItem*, int)
*/
@QtUninvokable
public final void openPersistentEditor(io.qt.widgets.@Nullable QTreeWidgetItem item, int column){
openPersistentEditor_native_QTreeWidgetItem_ptr_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), column);
}
@QtUninvokable
private native void openPersistentEditor_native_QTreeWidgetItem_ptr_int(long __this__nativeId, long item, int column);
/**
* See QTreeWidget:: removeItemWidget(QTreeWidgetItem*, int)
*/
@QtUninvokable
public final void removeItemWidget(io.qt.widgets.@Nullable 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);
}
@QtUninvokable
private native void removeItemWidget_native_QTreeWidgetItem_ptr_int(long __this__nativeId, long item, int column);
/**
* See QTreeWidget:: scrollToItem(const QTreeWidgetItem*, QAbstractItemView::ScrollHint)
*/
public final void scrollToItem(io.qt.widgets.@Nullable QTreeWidgetItem item, io.qt.widgets.QAbstractItemView.@NonNull 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
*/
@QtUninvokable
public final io.qt.core.@NonNull QList selectedItems(){
return selectedItems_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QList selectedItems_native_constfct(long __this__nativeId);
/**
* See QTreeWidget:: setColumnCount(int)
*/
@QtPropertyWriter(name="columnCount")
@QtUninvokable
public final void setColumnCount(int columns){
setColumnCount_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), columns);
}
@QtUninvokable
private native void setColumnCount_native_int(long __this__nativeId, int columns);
/**
* See QTreeWidget:: setCurrentItem(QTreeWidgetItem*)
*/
@QtUninvokable
public final void setCurrentItem(io.qt.widgets.@Nullable QTreeWidgetItem item){
setCurrentItem_native_QTreeWidgetItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
}
@QtUninvokable
private native void setCurrentItem_native_QTreeWidgetItem_ptr(long __this__nativeId, long item);
/**
* See QTreeWidget:: setCurrentItem(QTreeWidgetItem*, int)
*/
@QtUninvokable
public final void setCurrentItem(io.qt.widgets.@Nullable QTreeWidgetItem item, int column){
setCurrentItem_native_QTreeWidgetItem_ptr_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), column);
}
@QtUninvokable
private native void setCurrentItem_native_QTreeWidgetItem_ptr_int(long __this__nativeId, long item, int column);
/**
* See QTreeWidget:: setCurrentItem(QTreeWidgetItem*, int, QItemSelectionModel::SelectionFlags)
*/
@QtUninvokable
public final void setCurrentItem(io.qt.widgets.@Nullable QTreeWidgetItem item, int column, io.qt.core.QItemSelectionModel.@NonNull SelectionFlags command){
setCurrentItem_native_QTreeWidgetItem_ptr_int_QItemSelectionModel_SelectionFlags(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), column, command.value());
}
@QtUninvokable
private native void setCurrentItem_native_QTreeWidgetItem_ptr_int_QItemSelectionModel_SelectionFlags(long __this__nativeId, long item, int column, int command);
/**
* See QTreeWidget:: setHeaderItem(QTreeWidgetItem*)
*/
@QtUninvokable
public final void setHeaderItem(io.qt.widgets.@Nullable QTreeWidgetItem item){
setHeaderItem_native_QTreeWidgetItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
QtJambi_LibraryUtilities.internal.setCppOwnership(item);
}
@QtUninvokable
private native void setHeaderItem_native_QTreeWidgetItem_ptr(long __this__nativeId, long item);
/**
* See QTreeWidget:: setHeaderLabel(QString)
*/
@QtUninvokable
public final void setHeaderLabel(java.lang.@NonNull String label){
setHeaderLabel_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), label);
}
@QtUninvokable
private native void setHeaderLabel_native_cref_QString(long __this__nativeId, java.lang.String label);
/**
* See QTreeWidget:: setHeaderLabels(QStringList)
*/
@QtUninvokable
public final void setHeaderLabels(java.util.@NonNull Collection labels){
setHeaderLabels_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), labels);
}
@QtUninvokable
private native void setHeaderLabels_native_cref_QStringList(long __this__nativeId, java.util.Collection labels);
/**
* See QTreeWidget:: setItemWidget(QTreeWidgetItem*, int, QWidget*)
*/
@QtUninvokable
public final void setItemWidget(io.qt.widgets.@Nullable QTreeWidgetItem item, int column, io.qt.widgets.@Nullable 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));
}
@QtUninvokable
private native void setItemWidget_native_QTreeWidgetItem_ptr_int_QWidget_ptr(long __this__nativeId, long item, int column, long widget);
/**
* Function has no implementation because its native counterpart is private.
*/
@Deprecated
@QtUninvokable
@Override
public final void setModel(io.qt.core.@Nullable QAbstractItemModel model) throws QNoImplementationException {
throw new QNoImplementationException();
}
/**
* See QTreeWidget:: sortColumn()const
*/
@QtUninvokable
public final int sortColumn(){
return sortColumn_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int sortColumn_native_constfct(long __this__nativeId);
/**
* See QTreeWidget:: sortItems(int, Qt::SortOrder)
*/
@QtUninvokable
public final void sortItems(int column, io.qt.core.Qt.@NonNull SortOrder order){
sortItems_native_int_Qt_SortOrder(QtJambi_LibraryUtilities.internal.nativeId(this), column, order.value());
}
@QtUninvokable
private native void sortItems_native_int_Qt_SortOrder(long __this__nativeId, int column, int order);
/**
* See QTreeWidget:: takeTopLevelItem(int)
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QTreeWidgetItem takeTopLevelItem(int index){
return takeTopLevelItem_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native io.qt.widgets.QTreeWidgetItem takeTopLevelItem_native_int(long __this__nativeId, int index);
/**
* See QTreeWidget:: topLevelItem(int)const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QTreeWidgetItem topLevelItem(int index){
return topLevelItem_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native io.qt.widgets.QTreeWidgetItem topLevelItem_native_int_constfct(long __this__nativeId, int index);
/**
* See QTreeWidget:: topLevelItemCount()const
*/
@QtPropertyReader(name="topLevelItemCount")
@QtUninvokable
public final int topLevelItemCount(){
return topLevelItemCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int topLevelItemCount_native_constfct(long __this__nativeId);
/**
* See QTreeWidget:: visualItemRect(const QTreeWidgetItem*)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QRect visualItemRect(io.qt.widgets.@Nullable QTreeWidgetItem item){
return visualItemRect_native_const_QTreeWidgetItem_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
}
@QtUninvokable
private native io.qt.core.QRect visualItemRect_native_const_QTreeWidgetItem_ptr_constfct(long __this__nativeId, long item);
/**
* See QWidget:: dropEvent(QDropEvent*)
*/
@QtUninvokable
@Override
protected void dropEvent(io.qt.gui.@Nullable QDropEvent event){
dropEvent_native_QDropEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@QtUninvokable
private native void dropEvent_native_QDropEvent_ptr(long __this__nativeId, long event);
/**
* See QTreeWidget:: dropMimeData(QTreeWidgetItem*, int, const QMimeData*, Qt::DropAction)
*/
@QtUninvokable
protected boolean dropMimeData(io.qt.widgets.@Nullable QTreeWidgetItem parent, int index, io.qt.core.@Nullable QMimeData data, io.qt.core.Qt.@NonNull 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());
}
@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);
/**
*
*/
@QtUninvokable
@Override
public boolean event(io.qt.core.@Nullable QEvent e){
java.util.Objects.requireNonNull(e, "Argument 'e': null not expected.");
return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native boolean event_native_QEvent_ptr(long __this__nativeId, long e);
/**
* See QTreeWidget:: mimeData(QList<QTreeWidgetItem*>)const
*/
@QtUninvokable
protected io.qt.core.@Nullable QMimeData mimeData(java.util.@NonNull Collection extends io.qt.widgets.@Nullable QTreeWidgetItem> items){
return mimeData_native_cref_QList_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), items);
}
@QtUninvokable
private native io.qt.core.QMimeData mimeData_native_cref_QList_constfct(long __this__nativeId, java.util.Collection extends io.qt.widgets.QTreeWidgetItem> items);
/**
* See QTreeWidget:: mimeTypes()const
*/
@QtUninvokable
protected java.util.@NonNull List mimeTypes(){
return mimeTypes_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.util.List mimeTypes_native_constfct(long __this__nativeId);
/**
* See QAbstractItemView:: setSelectionModel(QItemSelectionModel*)
*/
@QtUninvokable
@Override
public void setSelectionModel(io.qt.core.@StrictNonNull 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);
}
@QtUninvokable
private native void setSelectionModel_native_QItemSelectionModel_ptr(long __this__nativeId, long selectionModel);
/**
* See QTreeWidget:: supportedDropActions()const
*/
@QtUninvokable
protected io.qt.core.Qt.@NonNull DropActions supportedDropActions(){
return new io.qt.core.Qt.DropActions(supportedDropActions_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int supportedDropActions_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QTreeWidget(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QTreeWidget(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QTreeWidget instance, QDeclarativeConstructor constructor);
// 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 constructor for {@link #QTreeWidget(io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QTreeWidget() {
this((io.qt.widgets.QWidget)null);
}
/**
* Overloaded function for {@link #closePersistentEditor(io.qt.widgets.QTreeWidgetItem, int)}
* with column = 0
.
*/
@QtUninvokable
public final void closePersistentEditor(io.qt.widgets.@Nullable QTreeWidgetItem item) {
closePersistentEditor(item, (int)0);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #columnCount()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getColumnCount() {
return columnCount();
}
/**
* Overloaded function for {@link #editItem(io.qt.widgets.QTreeWidgetItem, int)}
* with column = 0
.
*/
@QtUninvokable
public final void editItem(io.qt.widgets.@Nullable QTreeWidgetItem item) {
editItem(item, (int)0);
}
/**
* Overloaded function for {@link #findItems(java.lang.String, io.qt.core.Qt.MatchFlags, int)}
* with column = 0
.
*/
@QtUninvokable
public final io.qt.core.@NonNull QList findItems(java.lang.@NonNull String text, io.qt.core.Qt.@NonNull MatchFlags flags) {
return findItems(text, flags, (int)0);
}
/**
* Overloaded function for {@link #indexFromItem(io.qt.widgets.QTreeWidgetItem, int)}
* with column = 0
.
*/
@QtUninvokable
public final io.qt.core.@NonNull QModelIndex indexFromItem(io.qt.widgets.@Nullable QTreeWidgetItem item) {
return indexFromItem(item, (int)0);
}
/**
* Overloaded function for {@link #isPersistentEditorOpen(io.qt.widgets.QTreeWidgetItem, int)}
* with column = 0
.
*/
@QtUninvokable
public final boolean isPersistentEditorOpen(io.qt.widgets.@Nullable QTreeWidgetItem item) {
return isPersistentEditorOpen(item, (int)0);
}
/**
* Overloaded function for {@link #openPersistentEditor(io.qt.widgets.QTreeWidgetItem, int)}
* with column = 0
.
*/
@QtUninvokable
public final void openPersistentEditor(io.qt.widgets.@Nullable QTreeWidgetItem item) {
openPersistentEditor(item, (int)0);
}
/**
* 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.@Nullable QTreeWidgetItem item) {
scrollToItem(item, io.qt.widgets.QAbstractItemView.ScrollHint.EnsureVisible);
}
/**
* Overloaded function for {@link #setCurrentItem(io.qt.widgets.QTreeWidgetItem, int, io.qt.core.QItemSelectionModel.SelectionFlags)}.
*/
@QtUninvokable
public final void setCurrentItem(io.qt.widgets.@Nullable QTreeWidgetItem item, int column, io.qt.core.QItemSelectionModel.@NonNull SelectionFlag @NonNull... command) {
setCurrentItem(item, column, new io.qt.core.QItemSelectionModel.SelectionFlags(command));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #topLevelItemCount()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getTopLevelItemCount() {
return topLevelItemCount();
}
}