io.qt.widgets.QAbstractItemDelegate Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Used to display and edit data items from a model
* Java wrapper for Qt class QAbstractItemDelegate
*/
public abstract class QAbstractItemDelegate extends io.qt.core.QObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QAbstractItemDelegate.class);
@NativeAccess
private static final class ConcreteWrapper extends QAbstractItemDelegate {
@NativeAccess
private ConcreteWrapper(QPrivateConstructor p) { super(p); }
@Override
@QtUninvokable
public void paint(io.qt.gui.@Nullable QPainter painter, io.qt.widgets.@NonNull QStyleOptionViewItem option, io.qt.core.@NonNull QModelIndex index){
paint_native_QPainter_ptr_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native void paint_native_QPainter_ptr_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(long __this__nativeId, long painter, long option, long index);
@Override
@QtUninvokable
public io.qt.core.@NonNull QSize sizeHint(io.qt.widgets.@NonNull QStyleOptionViewItem option, io.qt.core.@NonNull QModelIndex index){
return sizeHint_native_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native io.qt.core.QSize sizeHint_native_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(long __this__nativeId, long option, long index);
}
/**
* Java wrapper for Qt enum QAbstractItemDelegate::EndEditHint
*/
@QtUnlistedEnum
public enum EndEditHint implements QtEnumerator {
/**
* Representing QAbstractItemDelegate:: NoHint
*/
NoHint(0),
/**
* Representing QAbstractItemDelegate:: EditNextItem
*/
EditNextItem(1),
/**
* Representing QAbstractItemDelegate:: EditPreviousItem
*/
EditPreviousItem(2),
/**
* Representing QAbstractItemDelegate:: SubmitModelCache
*/
SubmitModelCache(3),
/**
* Representing QAbstractItemDelegate:: RevertModelCache
*/
RevertModelCache(4);
static {
QtJambi_LibraryUtilities.initialize();
}
private EndEditHint(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull EndEditHint resolve(int value) {
switch (value) {
case 0: return NoHint;
case 1: return EditNextItem;
case 2: return EditPreviousItem;
case 3: return SubmitModelCache;
case 4: return RevertModelCache;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QAbstractItemDelegate:: closeEditor(QWidget*, QAbstractItemDelegate::EndEditHint)
*/
public final @NonNull Signal2Default1 closeEditor = new Signal2Default1<>(()->io.qt.widgets.QAbstractItemDelegate.EndEditHint.NoHint);
/**
* See QAbstractItemDelegate:: commitData(QWidget*)
*/
public final @NonNull Signal1 commitData = new Signal1<>();
/**
* See QAbstractItemDelegate:: sizeHintChanged(QModelIndex)
*/
public final @NonNull Signal1 sizeHintChanged = new Signal1<>();
/**
* See QAbstractItemDelegate:: QAbstractItemDelegate(QObject*)
*/
public QAbstractItemDelegate(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QAbstractItemDelegate instance, io.qt.core.QObject parent);
/**
* See QAbstractItemDelegate:: createEditor(QWidget*, QStyleOptionViewItem, QModelIndex)const
*/
@QtUninvokable
public io.qt.widgets.@Nullable QWidget createEditor(io.qt.widgets.@Nullable QWidget parent, io.qt.widgets.@NonNull QStyleOptionViewItem option, io.qt.core.@NonNull QModelIndex index){
return createEditor_native_QWidget_ptr_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(parent), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native io.qt.widgets.QWidget createEditor_native_QWidget_ptr_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(long __this__nativeId, long parent, long option, long index);
/**
* See QAbstractItemDelegate:: destroyEditor(QWidget*, QModelIndex)const
*/
@QtUninvokable
public void destroyEditor(io.qt.widgets.@Nullable QWidget editor, io.qt.core.@NonNull QModelIndex index){
destroyEditor_native_QWidget_ptr_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(editor), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native void destroyEditor_native_QWidget_ptr_cref_QModelIndex_constfct(long __this__nativeId, long editor, long index);
/**
* See QAbstractItemDelegate:: editorEvent(QEvent*, QAbstractItemModel*, QStyleOptionViewItem, QModelIndex)
*/
@QtUninvokable
public boolean editorEvent(io.qt.core.@Nullable QEvent event, io.qt.core.@Nullable QAbstractItemModel model, io.qt.widgets.@NonNull QStyleOptionViewItem option, io.qt.core.@NonNull QModelIndex index){
return editorEvent_native_QEvent_ptr_QAbstractItemModel_ptr_cref_QStyleOptionViewItem_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event), QtJambi_LibraryUtilities.internal.checkedNativeId(model), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native boolean editorEvent_native_QEvent_ptr_QAbstractItemModel_ptr_cref_QStyleOptionViewItem_cref_QModelIndex(long __this__nativeId, long event, long model, long option, long index);
/**
* See QAbstractItemDelegate:: helpEvent(QHelpEvent*, QAbstractItemView*, QStyleOptionViewItem, QModelIndex)
*/
@QtUninvokable
public boolean helpEvent(io.qt.gui.@Nullable QHelpEvent event, io.qt.widgets.@Nullable QAbstractItemView view, io.qt.widgets.@NonNull QStyleOptionViewItem option, io.qt.core.@NonNull QModelIndex index){
return helpEvent_native_QHelpEvent_ptr_QAbstractItemView_ptr_cref_QStyleOptionViewItem_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event), QtJambi_LibraryUtilities.internal.checkedNativeId(view), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native boolean helpEvent_native_QHelpEvent_ptr_QAbstractItemView_ptr_cref_QStyleOptionViewItem_cref_QModelIndex(long __this__nativeId, long event, long view, long option, long index);
/**
* See QAbstractItemDelegate:: paint(QPainter*, QStyleOptionViewItem, QModelIndex)const
*/
@QtUninvokable
public abstract void paint(io.qt.gui.@Nullable QPainter painter, io.qt.widgets.@NonNull QStyleOptionViewItem option, io.qt.core.@NonNull QModelIndex index);
@QtUninvokable
private native void paint_native_QPainter_ptr_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(long __this__nativeId, long painter, long option, long index);
/**
* See QAbstractItemDelegate:: paintingRoles()const
*/
@QtUninvokable
public java.util.@NonNull List paintingRoles(){
return paintingRoles_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.util.List paintingRoles_native_constfct(long __this__nativeId);
/**
* See QAbstractItemDelegate:: setEditorData(QWidget*, QModelIndex)const
*/
@QtUninvokable
public void setEditorData(io.qt.widgets.@Nullable QWidget editor, io.qt.core.@NonNull QModelIndex index){
setEditorData_native_QWidget_ptr_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(editor), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native void setEditorData_native_QWidget_ptr_cref_QModelIndex_constfct(long __this__nativeId, long editor, long index);
/**
* See QAbstractItemDelegate:: setModelData(QWidget*, QAbstractItemModel*, QModelIndex)const
*/
@QtUninvokable
public void setModelData(io.qt.widgets.@Nullable QWidget editor, io.qt.core.@Nullable QAbstractItemModel model, io.qt.core.@NonNull QModelIndex index){
setModelData_native_QWidget_ptr_QAbstractItemModel_ptr_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(editor), QtJambi_LibraryUtilities.internal.checkedNativeId(model), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native void setModelData_native_QWidget_ptr_QAbstractItemModel_ptr_cref_QModelIndex_constfct(long __this__nativeId, long editor, long model, long index);
/**
* See QAbstractItemDelegate:: sizeHint(QStyleOptionViewItem, QModelIndex)const
*/
@QtUninvokable
public abstract io.qt.core.@NonNull QSize sizeHint(io.qt.widgets.@NonNull QStyleOptionViewItem option, io.qt.core.@NonNull QModelIndex index);
@QtUninvokable
private native io.qt.core.QSize sizeHint_native_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(long __this__nativeId, long option, long index);
/**
* See QAbstractItemDelegate:: updateEditorGeometry(QWidget*, QStyleOptionViewItem, QModelIndex)const
*/
@QtUninvokable
public void updateEditorGeometry(io.qt.widgets.@Nullable QWidget editor, io.qt.widgets.@NonNull QStyleOptionViewItem option, io.qt.core.@NonNull QModelIndex index){
updateEditorGeometry_native_QWidget_ptr_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(editor), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native void updateEditorGeometry_native_QWidget_ptr_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(long __this__nativeId, long editor, long option, long index);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QAbstractItemDelegate(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QAbstractItemDelegate(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QAbstractItemDelegate instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QAbstractItemDelegate(io.qt.core.QObject)}
* with parent = null
.
*/
public QAbstractItemDelegate() {
this((io.qt.core.QObject)null);
}
}