io.qt.widgets.QColumnView Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Model/view implementation of a column view
* Java wrapper for Qt class QColumnView
*/
public class QColumnView extends io.qt.widgets.QAbstractItemView
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QColumnView.class);
/**
* See QColumnView:: updatePreviewWidget(QModelIndex)
*/
public final @NonNull Signal1 updatePreviewWidget = new Signal1<>();
/**
* See QColumnView:: QColumnView(QWidget*)
*/
public QColumnView(io.qt.widgets.@Nullable QWidget parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QColumnView instance, io.qt.widgets.QWidget parent);
/**
* See QColumnView:: columnWidths()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QList columnWidths(){
return columnWidths_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QList columnWidths_native_constfct(long __this__nativeId);
/**
* See QColumnView:: initializeColumn(QAbstractItemView*)const
*/
@QtUninvokable
protected final void initializeColumn(io.qt.widgets.@Nullable QAbstractItemView column){
initializeColumn_native_QAbstractItemView_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(column));
}
@QtUninvokable
private native void initializeColumn_native_QAbstractItemView_ptr_constfct(long __this__nativeId, long column);
/**
* See QColumnView:: previewWidget()const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QWidget previewWidget(){
return previewWidget_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QWidget previewWidget_native_constfct(long __this__nativeId);
/**
* See QColumnView:: resizeGripsVisible()const
*/
@QtPropertyReader(name="resizeGripsVisible")
@QtUninvokable
public final boolean resizeGripsVisible(){
return resizeGripsVisible_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean resizeGripsVisible_native_constfct(long __this__nativeId);
/**
* See QColumnView:: setColumnWidths(QList<int>)
*/
@QtUninvokable
public final void setColumnWidths(java.util.@NonNull Collection list){
setColumnWidths_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), list);
}
@QtUninvokable
private native void setColumnWidths_native_cref_QList(long __this__nativeId, java.util.Collection list);
/**
* See QColumnView:: setPreviewWidget(QWidget*)
*/
@QtUninvokable
public final void setPreviewWidget(io.qt.widgets.@Nullable QWidget widget){
setPreviewWidget_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native void setPreviewWidget_native_QWidget_ptr(long __this__nativeId, long widget);
/**
* See QColumnView:: setResizeGripsVisible(bool)
*/
@QtPropertyWriter(name="resizeGripsVisible")
@QtUninvokable
public final void setResizeGripsVisible(boolean visible){
setResizeGripsVisible_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), visible);
}
@QtUninvokable
private native void setResizeGripsVisible_native_bool(long __this__nativeId, boolean visible);
/**
* See QColumnView:: createColumn(QModelIndex)
*/
@QtUninvokable
protected io.qt.widgets.@Nullable QAbstractItemView createColumn(io.qt.core.@NonNull QModelIndex rootIndex){
return createColumn_native_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rootIndex));
}
@QtUninvokable
private native io.qt.widgets.QAbstractItemView createColumn_native_cref_QModelIndex(long __this__nativeId, long rootIndex);
/**
* See QAbstractItemView:: currentChanged(QModelIndex, QModelIndex)
*/
@QtUninvokable
@Override
protected void currentChanged(io.qt.core.@NonNull QModelIndex current, io.qt.core.@NonNull QModelIndex previous){
currentChanged_native_cref_QModelIndex_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(current), QtJambi_LibraryUtilities.internal.checkedNativeId(previous));
}
@QtUninvokable
private native void currentChanged_native_cref_QModelIndex_cref_QModelIndex(long __this__nativeId, long current, long previous);
/**
* See QAbstractItemView:: horizontalOffset()const
*/
@QtUninvokable
@Override
protected int horizontalOffset(){
return horizontalOffset_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int horizontalOffset_native_constfct(long __this__nativeId);
/**
* See QAbstractItemView:: indexAt(QPoint)const
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QModelIndex indexAt(io.qt.core.@NonNull QPoint point){
return indexAt_native_cref_QPoint_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(point));
}
@QtUninvokable
private native io.qt.core.QModelIndex indexAt_native_cref_QPoint_constfct(long __this__nativeId, long point);
/**
* See QAbstractItemView:: isIndexHidden(QModelIndex)const
*/
@QtUninvokable
@Override
protected boolean isIndexHidden(io.qt.core.@NonNull QModelIndex index){
return isIndexHidden_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native boolean isIndexHidden_native_cref_QModelIndex_constfct(long __this__nativeId, long index);
/**
* See QAbstractItemView:: moveCursor(QAbstractItemView::CursorAction, Qt::KeyboardModifiers)
*/
@QtUninvokable
@Override
protected io.qt.core.@NonNull QModelIndex moveCursor(io.qt.widgets.QAbstractItemView.@NonNull CursorAction cursorAction, io.qt.core.Qt.@NonNull KeyboardModifiers modifiers){
return moveCursor_native_QAbstractItemView_CursorAction_Qt_KeyboardModifiers(QtJambi_LibraryUtilities.internal.nativeId(this), cursorAction.value(), modifiers.value());
}
@QtUninvokable
private native io.qt.core.QModelIndex moveCursor_native_QAbstractItemView_CursorAction_Qt_KeyboardModifiers(long __this__nativeId, int cursorAction, int modifiers);
/**
* See QWidget:: resizeEvent(QResizeEvent*)
*/
@QtUninvokable
@Override
protected void resizeEvent(io.qt.gui.@Nullable QResizeEvent event){
resizeEvent_native_QResizeEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@QtUninvokable
private native void resizeEvent_native_QResizeEvent_ptr(long __this__nativeId, long event);
/**
* See QAbstractItemView:: rowsInserted(QModelIndex, int, int)
*/
@QtUninvokable
@Override
protected void rowsInserted(io.qt.core.@NonNull QModelIndex parent, int start, int end){
rowsInserted_native_cref_QModelIndex_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(parent), start, end);
}
@QtUninvokable
private native void rowsInserted_native_cref_QModelIndex_int_int(long __this__nativeId, long parent, int start, int end);
/**
* See QAbstractScrollArea:: scrollContentsBy(int, int)
*/
@QtUninvokable
@Override
protected void scrollContentsBy(int dx, int dy){
scrollContentsBy_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), dx, dy);
}
@QtUninvokable
private native void scrollContentsBy_native_int_int(long __this__nativeId, int dx, int dy);
/**
* See QAbstractItemView:: scrollTo(QModelIndex, QAbstractItemView::ScrollHint)
*/
@QtUninvokable
@Override
public void scrollTo(io.qt.core.@NonNull QModelIndex index, io.qt.widgets.QAbstractItemView.@NonNull ScrollHint hint){
scrollTo_native_cref_QModelIndex_QAbstractItemView_ScrollHint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index), hint.value());
}
@QtUninvokable
private native void scrollTo_native_cref_QModelIndex_QAbstractItemView_ScrollHint(long __this__nativeId, long index, int hint);
/**
* See QAbstractItemView:: selectAll()
*/
@QtUninvokable
@Override
public void selectAll(){
selectAll_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void selectAll_native(long __this__nativeId);
/**
* See QAbstractItemView:: setModel(QAbstractItemModel*)
*/
@QtUninvokable
@Override
public void setModel(io.qt.core.@Nullable QAbstractItemModel model){
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);
}
@QtUninvokable
private native void setModel_native_QAbstractItemModel_ptr(long __this__nativeId, long model);
/**
* See QAbstractItemView:: setRootIndex(QModelIndex)
*/
@QtUninvokable
@Override
public void setRootIndex(io.qt.core.@NonNull QModelIndex index){
setRootIndex_native_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native void setRootIndex_native_cref_QModelIndex(long __this__nativeId, long index);
/**
* See QAbstractItemView:: setSelection(QRect, QItemSelectionModel::SelectionFlags)
*/
@QtUninvokable
@Override
protected void setSelection(io.qt.core.@NonNull QRect rect, io.qt.core.QItemSelectionModel.@NonNull SelectionFlags command){
setSelection_native_cref_QRect_QItemSelectionModel_SelectionFlags(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect), command.value());
}
@QtUninvokable
private native void setSelection_native_cref_QRect_QItemSelectionModel_SelectionFlags(long __this__nativeId, long rect, int command);
/**
* 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);
/**
*
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QSize sizeHint(){
return sizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QSize sizeHint_native_constfct(long __this__nativeId);
/**
* See QAbstractItemView:: verticalOffset()const
*/
@QtUninvokable
@Override
protected int verticalOffset(){
return verticalOffset_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int verticalOffset_native_constfct(long __this__nativeId);
/**
* See QAbstractItemView:: visualRect(QModelIndex)const
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QRect visualRect(io.qt.core.@NonNull QModelIndex index){
return visualRect_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native io.qt.core.QRect visualRect_native_cref_QModelIndex_constfct(long __this__nativeId, long index);
/**
* See QAbstractItemView:: visualRegionForSelection(QItemSelection)const
*/
@QtUninvokable
@Override
protected io.qt.gui.@NonNull QRegion visualRegionForSelection(io.qt.core.@NonNull QItemSelection selection){
return visualRegionForSelection_native_cref_QItemSelection_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(selection));
}
@QtUninvokable
private native io.qt.gui.QRegion visualRegionForSelection_native_cref_QItemSelection_constfct(long __this__nativeId, long selection);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QColumnView(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QColumnView(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QColumnView instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QColumnView(io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QColumnView() {
this((io.qt.widgets.QWidget)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #resizeGripsVisible()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getResizeGripsVisible() {
return resizeGripsVisible();
}
}