io.qt.widgets.QAbstractItemDelegate Maven / Gradle / Ivy
package io.qt.widgets;
/**
* 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.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QAbstractItemDelegate.class);
@io.qt.NativeAccess
private static final class ConcreteWrapper extends QAbstractItemDelegate {
@io.qt.NativeAccess
private ConcreteWrapper(QPrivateConstructor p) { super(p); }
@Override
@io.qt.QtUninvokable
public void paint(io.qt.gui.QPainter painter, io.qt.widgets.QStyleOptionViewItem option, io.qt.core.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), index);
}
@io.qt.QtUninvokable
private native void paint_native_QPainter_ptr_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(long __this__nativeId, long painter, long option, io.qt.core.QModelIndex index);
@Override
@io.qt.QtUninvokable
public io.qt.core.QSize sizeHint(io.qt.widgets.QStyleOptionViewItem option, io.qt.core.QModelIndex index){
return sizeHint_native_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(option), index);
}
@io.qt.QtUninvokable
private native io.qt.core.QSize sizeHint_native_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(long __this__nativeId, long option, io.qt.core.QModelIndex index);
}
/**
* Java wrapper for Qt enum QAbstractItemDelegate::EndEditHint
*/
@io.qt.QtUnlistedEnum
public enum EndEditHint implements io.qt.QtEnumerator {
NoHint(0),
EditNextItem(1),
EditPreviousItem(2),
SubmitModelCache(3),
RevertModelCache(4);
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 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 io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QAbstractItemDelegate::closeEditor(QWidget*,QAbstractItemDelegate::EndEditHint)
*/
public final Signal2Default1 closeEditor = new Signal2Default1<>(()->io.qt.widgets.QAbstractItemDelegate.EndEditHint.NoHint);
/**
* See QAbstractItemDelegate::commitData(QWidget*)
*/
public final Signal1 commitData = new Signal1<>();
/**
* See QAbstractItemDelegate::sizeHintChanged(QModelIndex)
*/
public final Signal1 sizeHintChanged = new Signal1<>();
/**
* Overloaded constructor for {@link #QAbstractItemDelegate(io.qt.core.QObject)}
* with parent = null
.
*/
public QAbstractItemDelegate() {
this((io.qt.core.QObject)null);
}
/**
* See QAbstractItemDelegate::QAbstractItemDelegate(QObject*)
*/
public QAbstractItemDelegate(io.qt.core.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
*/
@io.qt.QtUninvokable
public io.qt.widgets.QWidget createEditor(io.qt.widgets.QWidget parent, io.qt.widgets.QStyleOptionViewItem option, io.qt.core.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), index);
}
@io.qt.QtUninvokable
private native io.qt.widgets.QWidget createEditor_native_QWidget_ptr_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(long __this__nativeId, long parent, long option, io.qt.core.QModelIndex index);
/**
* See QAbstractItemDelegate::destroyEditor(QWidget*,QModelIndex)const
*/
@io.qt.QtUninvokable
public void destroyEditor(io.qt.widgets.QWidget editor, io.qt.core.QModelIndex index){
destroyEditor_native_QWidget_ptr_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(editor), index);
}
@io.qt.QtUninvokable
private native void destroyEditor_native_QWidget_ptr_cref_QModelIndex_constfct(long __this__nativeId, long editor, io.qt.core.QModelIndex index);
/**
* See QAbstractItemDelegate::editorEvent(QEvent*,QAbstractItemModel*,QStyleOptionViewItem,QModelIndex)
*/
@io.qt.QtUninvokable
public boolean editorEvent(io.qt.core.QEvent event, io.qt.core.QAbstractItemModel model, io.qt.widgets.QStyleOptionViewItem option, io.qt.core.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), index);
}
@io.qt.QtUninvokable
private native boolean editorEvent_native_QEvent_ptr_QAbstractItemModel_ptr_cref_QStyleOptionViewItem_cref_QModelIndex(long __this__nativeId, long event, long model, long option, io.qt.core.QModelIndex index);
/**
* See QAbstractItemDelegate::helpEvent(QHelpEvent*,QAbstractItemView*,QStyleOptionViewItem,QModelIndex)
*/
@io.qt.QtUninvokable
public boolean helpEvent(io.qt.gui.QHelpEvent event, io.qt.widgets.QAbstractItemView view, io.qt.widgets.QStyleOptionViewItem option, io.qt.core.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), index);
}
@io.qt.QtUninvokable
private native boolean helpEvent_native_QHelpEvent_ptr_QAbstractItemView_ptr_cref_QStyleOptionViewItem_cref_QModelIndex(long __this__nativeId, long event, long view, long option, io.qt.core.QModelIndex index);
/**
* See QAbstractItemDelegate::paint(QPainter*,QStyleOptionViewItem,QModelIndex)const
*/
@io.qt.QtUninvokable
public abstract void paint(io.qt.gui.QPainter painter, io.qt.widgets.QStyleOptionViewItem option, io.qt.core.QModelIndex index);
@io.qt.QtUninvokable
private native void paint_native_QPainter_ptr_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(long __this__nativeId, long painter, long option, io.qt.core.QModelIndex index);
@io.qt.QtUninvokable
public java.util.List paintingRoles(){
return paintingRoles_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.util.List paintingRoles_native_constfct(long __this__nativeId);
/**
* See QAbstractItemDelegate::setEditorData(QWidget*,QModelIndex)const
*/
@io.qt.QtUninvokable
public void setEditorData(io.qt.widgets.QWidget editor, io.qt.core.QModelIndex index){
setEditorData_native_QWidget_ptr_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(editor), index);
}
@io.qt.QtUninvokable
private native void setEditorData_native_QWidget_ptr_cref_QModelIndex_constfct(long __this__nativeId, long editor, io.qt.core.QModelIndex index);
/**
* See QAbstractItemDelegate::setModelData(QWidget*,QAbstractItemModel*,QModelIndex)const
*/
@io.qt.QtUninvokable
public void setModelData(io.qt.widgets.QWidget editor, io.qt.core.QAbstractItemModel model, io.qt.core.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), index);
}
@io.qt.QtUninvokable
private native void setModelData_native_QWidget_ptr_QAbstractItemModel_ptr_cref_QModelIndex_constfct(long __this__nativeId, long editor, long model, io.qt.core.QModelIndex index);
/**
* See QAbstractItemDelegate::sizeHint(QStyleOptionViewItem,QModelIndex)const
*/
@io.qt.QtUninvokable
public abstract io.qt.core.QSize sizeHint(io.qt.widgets.QStyleOptionViewItem option, io.qt.core.QModelIndex index);
@io.qt.QtUninvokable
private native io.qt.core.QSize sizeHint_native_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(long __this__nativeId, long option, io.qt.core.QModelIndex index);
/**
* See QAbstractItemDelegate::updateEditorGeometry(QWidget*,QStyleOptionViewItem,QModelIndex)const
*/
@io.qt.QtUninvokable
public void updateEditorGeometry(io.qt.widgets.QWidget editor, io.qt.widgets.QStyleOptionViewItem option, io.qt.core.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), index);
}
@io.qt.QtUninvokable
private native void updateEditorGeometry_native_QWidget_ptr_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(long __this__nativeId, long editor, long option, io.qt.core.QModelIndex index);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QAbstractItemDelegate(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 QAbstractItemDelegate(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@io.qt.QtUninvokable
private static native void initialize_native(QAbstractItemDelegate instance, QDeclarativeConstructor constructor);
}