io.qt.widgets.QStyledItemDelegate Maven / Gradle / Ivy
package io.qt.widgets;
/**
* Display and editing facilities for data items from a model
* Java wrapper for Qt class QStyledItemDelegate
*/
public class QStyledItemDelegate extends io.qt.widgets.QAbstractItemDelegate
{
@io.qt.QtPropertyMember(enabled=false)
private Object __rcItemEditorFactory = null;
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QStyledItemDelegate.class);
/**
* Overloaded constructor for {@link #QStyledItemDelegate(io.qt.core.QObject)}
* with parent = null
.
*/
public QStyledItemDelegate() {
this((io.qt.core.QObject)null);
}
/**
* See QStyledItemDelegate::QStyledItemDelegate(QObject*)
*/
public QStyledItemDelegate(io.qt.core.QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QStyledItemDelegate instance, io.qt.core.QObject parent);
/**
* See QStyledItemDelegate::itemEditorFactory()const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QItemEditorFactory itemEditorFactory(){
return itemEditorFactory_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QItemEditorFactory itemEditorFactory_native_constfct(long __this__nativeId);
/**
* See QStyledItemDelegate::setItemEditorFactory(QItemEditorFactory*)
*/
@io.qt.QtUninvokable
public final void setItemEditorFactory(io.qt.widgets.QItemEditorFactory factory){
setItemEditorFactory_native_QItemEditorFactory_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(factory));
__rcItemEditorFactory = factory;
}
@io.qt.QtUninvokable
private native void setItemEditorFactory_native_QItemEditorFactory_ptr(long __this__nativeId, long factory);
/**
* 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 QStyledItemDelegate::displayText(QVariant,QLocale)const
*/
@io.qt.QtUninvokable
public java.lang.String displayText(java.lang.Object value, io.qt.core.QLocale locale){
return displayText_native_cref_QVariant_cref_QLocale_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), value, QtJambi_LibraryUtilities.internal.checkedNativeId(locale));
}
@io.qt.QtUninvokable
private native java.lang.String displayText_native_cref_QVariant_cref_QLocale_constfct(long __this__nativeId, java.lang.Object value, long locale);
/**
* 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 QObject::eventFilter(QObject*,QEvent*)
*/
@io.qt.QtUninvokable
public boolean eventFilter(io.qt.core.QObject object, io.qt.core.QEvent event){
return eventFilter_native_QObject_ptr_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(object), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@io.qt.QtUninvokable
private native boolean eventFilter_native_QObject_ptr_QEvent_ptr(long __this__nativeId, long object, long event);
/**
* See QStyledItemDelegate::initStyleOption(QStyleOptionViewItem*,QModelIndex)const
*/
@io.qt.QtUninvokable
protected void initStyleOption(io.qt.widgets.QStyleOptionViewItem option, io.qt.core.QModelIndex index){
initStyleOption_native_QStyleOptionViewItem_ptr_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), option, index);
}
@io.qt.QtUninvokable
private native void initStyleOption_native_QStyleOptionViewItem_ptr_cref_QModelIndex_constfct(long __this__nativeId, io.qt.widgets.QStyleOptionViewItem option, io.qt.core.QModelIndex index);
/**
* See QAbstractItemDelegate::paint(QPainter*,QStyleOptionViewItem,QModelIndex)const
*/
@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);
/**
* 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 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);
/**
* 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 QStyledItemDelegate(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 QStyledItemDelegate(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@io.qt.QtUninvokable
private static native void initialize_native(QStyledItemDelegate instance, QDeclarativeConstructor constructor);
}