io.qt.widgets.QStyledItemDelegate Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Display and editing facilities for data items from a model
* Java wrapper for Qt class QStyledItemDelegate
*/
public class QStyledItemDelegate extends io.qt.widgets.QAbstractItemDelegate
{
@QtPropertyMember(enabled=false)
private Object __rcItemEditorFactory = null;
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QStyledItemDelegate.class);
/**
* See QStyledItemDelegate:: QStyledItemDelegate(QObject*)
*/
public QStyledItemDelegate(io.qt.core.@Nullable 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
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QItemEditorFactory itemEditorFactory(){
return itemEditorFactory_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QItemEditorFactory itemEditorFactory_native_constfct(long __this__nativeId);
/**
* See QStyledItemDelegate:: setItemEditorFactory(QItemEditorFactory*)
*/
@QtUninvokable
public final void setItemEditorFactory(io.qt.widgets.@Nullable QItemEditorFactory factory){
setItemEditorFactory_native_QItemEditorFactory_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(factory));
__rcItemEditorFactory = factory;
}
@QtUninvokable
private native void setItemEditorFactory_native_QItemEditorFactory_ptr(long __this__nativeId, long factory);
/**
* See QAbstractItemDelegate:: createEditor(QWidget*, QStyleOptionViewItem, QModelIndex)const
*/
@QtUninvokable
@Override
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 QStyledItemDelegate:: displayText(QVariant, QLocale)const
*/
@QtUninvokable
public java.lang.@NonNull String displayText(java.lang.Object value, io.qt.core.@NonNull QLocale locale){
return displayText_native_cref_QVariant_cref_QLocale_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), value, QtJambi_LibraryUtilities.internal.checkedNativeId(locale));
}
@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)
*/
@QtUninvokable
@Override
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 QObject:: eventFilter(QObject*, QEvent*)
*/
@QtUninvokable
@Override
public boolean eventFilter(io.qt.core.@Nullable QObject object, io.qt.core.@Nullable QEvent event){
return eventFilter_native_QObject_ptr_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(object), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@QtUninvokable
private native boolean eventFilter_native_QObject_ptr_QEvent_ptr(long __this__nativeId, long object, long event);
/**
* See QStyledItemDelegate:: initStyleOption(QStyleOptionViewItem*, QModelIndex)const
*/
@QtUninvokable
protected void initStyleOption(io.qt.widgets.@Nullable QStyleOptionViewItem option, io.qt.core.@NonNull QModelIndex index){
initStyleOption_native_QStyleOptionViewItem_ptr_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native void initStyleOption_native_QStyleOptionViewItem_ptr_cref_QModelIndex_constfct(long __this__nativeId, long option, long index);
/**
* See QAbstractItemDelegate:: paint(QPainter*, QStyleOptionViewItem, QModelIndex)const
*/
@QtUninvokable
@Override
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);
/**
* See QAbstractItemDelegate:: setEditorData(QWidget*, QModelIndex)const
*/
@QtUninvokable
@Override
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
@Override
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
@Override
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);
/**
* See QAbstractItemDelegate:: updateEditorGeometry(QWidget*, QStyleOptionViewItem, QModelIndex)const
*/
@QtUninvokable
@Override
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 QStyledItemDelegate(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QStyledItemDelegate(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QStyledItemDelegate instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QStyledItemDelegate(io.qt.core.QObject)}
* with parent = null
.
*/
public QStyledItemDelegate() {
this((io.qt.core.QObject)null);
}
/**
* Overloaded function for {@link #displayText(java.lang.Object, io.qt.core.QLocale)}.
*/
@QtUninvokable
public final java.lang.@NonNull String displayText(java.lang.Object value, io.qt.core.QLocale.@NonNull Language locale) {
return displayText(value, new io.qt.core.QLocale(locale));
}
}