All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.widgets.QDataWidgetMapper Maven / Gradle / Ivy

The newest version!
package io.qt.widgets;


/**
 * 

Mapping between a section of a data model to widgets

*

Java wrapper for Qt class QDataWidgetMapper

*/ public class QDataWidgetMapper extends io.qt.core.QObject { static { QtJambi_LibraryUtilities.initialize(); } @io.qt.QtPropertyMember(enabled=false) private Object __rcItemDelegate = null; @io.qt.QtPropertyMember(enabled=false) private java.util.Collection __rcMappings; @io.qt.QtPropertyMember(enabled=false) private Object __rcModel = null; /** * This variable stores the meta-object for the class. */ public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QDataWidgetMapper.class); /** *

Java wrapper for Qt enum QDataWidgetMapper::SubmitPolicy

*/ public enum SubmitPolicy implements io.qt.QtEnumerator { AutoSubmit(0), ManualSubmit(1); private SubmitPolicy(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 SubmitPolicy resolve(int value) { switch (value) { case 0: return AutoSubmit; case 1: return ManualSubmit; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

See QDataWidgetMapper::currentIndexChanged(int)

*/ @io.qt.QtPropertyNotify(name="currentIndex") public final Signal1<@io.qt.QtPrimitiveType Integer> currentIndexChanged = new Signal1<>(); /** *

Overloaded constructor for {@link #QDataWidgetMapper(io.qt.core.QObject)} * with parent = null.

*/ public QDataWidgetMapper() { this((io.qt.core.QObject)null); } /** *

See QDataWidgetMapper::QDataWidgetMapper(QObject*)

*/ public QDataWidgetMapper(io.qt.core.QObject parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QDataWidgetMapper instance, io.qt.core.QObject parent); /** *

See QDataWidgetMapper::addMapping(QWidget*,int)

*/ @io.qt.QtUninvokable public final void addMapping(io.qt.widgets.QWidget widget, int section){ addMapping_native_QWidget_ptr_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget), section); if (widget != null) { if(__rcMappings==null) __rcMappings = QtJambi_LibraryUtilities.internal.newRCList(); __rcMappings.add(widget); } } @io.qt.QtUninvokable private native void addMapping_native_QWidget_ptr_int(long __this__nativeId, long widget, int section); /** *

See QDataWidgetMapper::addMapping(QWidget*,int,QByteArray)

*/ @io.qt.QtUninvokable public final void addMapping(io.qt.widgets.QWidget widget, int section, io.qt.core.QByteArray propertyName){ addMapping_native_QWidget_ptr_int_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget), section, QtJambi_LibraryUtilities.internal.checkedNativeId(propertyName)); if (widget != null) { if(__rcMappings==null) __rcMappings = QtJambi_LibraryUtilities.internal.newRCList(); __rcMappings.add(widget); } } @io.qt.QtUninvokable private native void addMapping_native_QWidget_ptr_int_cref_QByteArray(long __this__nativeId, long widget, int section, long propertyName); /** *

See QDataWidgetMapper::clearMapping()

*/ @io.qt.QtUninvokable public final void clearMapping(){ clearMapping_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native void clearMapping_native(long __this__nativeId); /** *

See QDataWidgetMapper::currentIndex()const

*/ @io.qt.QtPropertyReader(name="currentIndex") @io.qt.QtUninvokable public final int currentIndex(){ return currentIndex_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int currentIndex_native_constfct(long __this__nativeId); /** *

See QDataWidgetMapper::itemDelegate()const

*/ @io.qt.QtUninvokable public final io.qt.widgets.QAbstractItemDelegate itemDelegate(){ return itemDelegate_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.widgets.QAbstractItemDelegate itemDelegate_native_constfct(long __this__nativeId); /** *

See QDataWidgetMapper::mappedPropertyName(QWidget*)const

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray mappedPropertyName(io.qt.widgets.QWidget widget){ return mappedPropertyName_native_QWidget_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget)); } @io.qt.QtUninvokable private native io.qt.core.QByteArray mappedPropertyName_native_QWidget_ptr_constfct(long __this__nativeId, long widget); /** *

See QDataWidgetMapper::mappedSection(QWidget*)const

*/ @io.qt.QtUninvokable public final int mappedSection(io.qt.widgets.QWidget widget){ return mappedSection_native_QWidget_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget)); } @io.qt.QtUninvokable private native int mappedSection_native_QWidget_ptr_constfct(long __this__nativeId, long widget); /** *

See QDataWidgetMapper::mappedWidgetAt(int)const

*/ @io.qt.QtUninvokable public final io.qt.widgets.QWidget mappedWidgetAt(int section){ return mappedWidgetAt_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), section); } @io.qt.QtUninvokable private native io.qt.widgets.QWidget mappedWidgetAt_native_int_constfct(long __this__nativeId, int section); /** *

See QDataWidgetMapper::model()const

*/ @io.qt.QtUninvokable public final io.qt.core.QAbstractItemModel model(){ return model_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QAbstractItemModel model_native_constfct(long __this__nativeId); /** *

See QDataWidgetMapper::orientation()const

*/ @io.qt.QtPropertyReader(name="orientation") @io.qt.QtUninvokable public final io.qt.core.Qt.Orientation orientation(){ return io.qt.core.Qt.Orientation.resolve(orientation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int orientation_native_constfct(long __this__nativeId); /** *

See QDataWidgetMapper::removeMapping(QWidget*)

*/ @io.qt.QtUninvokable public final void removeMapping(io.qt.widgets.QWidget widget){ removeMapping_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget)); if (widget != null) { while (__rcMappings != null && __rcMappings.remove(widget)) ; } } @io.qt.QtUninvokable private native void removeMapping_native_QWidget_ptr(long __this__nativeId, long widget); /** *

See QDataWidgetMapper::revert()

*/ public final void revert(){ revert_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void revert_native(long __this__nativeId); /** *

See QDataWidgetMapper::rootIndex()const

*/ @io.qt.QtUninvokable public final io.qt.core.QModelIndex rootIndex(){ return rootIndex_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QModelIndex rootIndex_native_constfct(long __this__nativeId); /** *

See QDataWidgetMapper::setCurrentModelIndex(QModelIndex)

*/ public final void setCurrentModelIndex(io.qt.core.QModelIndex index){ setCurrentModelIndex_native_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), index); } private native void setCurrentModelIndex_native_cref_QModelIndex(long __this__nativeId, io.qt.core.QModelIndex index); /** *

See QDataWidgetMapper::setItemDelegate(QAbstractItemDelegate*)

*/ @io.qt.QtUninvokable public final void setItemDelegate(io.qt.widgets.QAbstractItemDelegate delegate){ setItemDelegate_native_QAbstractItemDelegate_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(delegate)); __rcItemDelegate = delegate; } @io.qt.QtUninvokable private native void setItemDelegate_native_QAbstractItemDelegate_ptr(long __this__nativeId, long delegate); /** *

See QDataWidgetMapper::setModel(QAbstractItemModel*)

*/ @io.qt.QtUninvokable public final void setModel(io.qt.core.QAbstractItemModel model){ setModel_native_QAbstractItemModel_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(model)); __rcModel = model; } @io.qt.QtUninvokable private native void setModel_native_QAbstractItemModel_ptr(long __this__nativeId, long model); /** *

See QDataWidgetMapper::setOrientation(Qt::Orientation)

*/ @io.qt.QtPropertyWriter(name="orientation") @io.qt.QtUninvokable public final void setOrientation(io.qt.core.Qt.Orientation aOrientation){ setOrientation_native_Qt_Orientation(QtJambi_LibraryUtilities.internal.nativeId(this), aOrientation.value()); } @io.qt.QtUninvokable private native void setOrientation_native_Qt_Orientation(long __this__nativeId, int aOrientation); /** *

See QDataWidgetMapper::setRootIndex(QModelIndex)

*/ @io.qt.QtUninvokable public final void setRootIndex(io.qt.core.QModelIndex index){ setRootIndex_native_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), index); } @io.qt.QtUninvokable private native void setRootIndex_native_cref_QModelIndex(long __this__nativeId, io.qt.core.QModelIndex index); /** *

See QDataWidgetMapper::setSubmitPolicy(QDataWidgetMapper::SubmitPolicy)

*/ @io.qt.QtPropertyWriter(name="submitPolicy") @io.qt.QtUninvokable public final void setSubmitPolicy(io.qt.widgets.QDataWidgetMapper.SubmitPolicy policy){ setSubmitPolicy_native_QDataWidgetMapper_SubmitPolicy(QtJambi_LibraryUtilities.internal.nativeId(this), policy.value()); } @io.qt.QtUninvokable private native void setSubmitPolicy_native_QDataWidgetMapper_SubmitPolicy(long __this__nativeId, int policy); /** *

See QDataWidgetMapper::submit()

*/ public final boolean submit(){ return submit_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native boolean submit_native(long __this__nativeId); /** *

See QDataWidgetMapper::submitPolicy()const

*/ @io.qt.QtPropertyReader(name="submitPolicy") @io.qt.QtUninvokable public final io.qt.widgets.QDataWidgetMapper.SubmitPolicy submitPolicy(){ return io.qt.widgets.QDataWidgetMapper.SubmitPolicy.resolve(submitPolicy_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int submitPolicy_native_constfct(long __this__nativeId); /** *

See QDataWidgetMapper::toFirst()

*/ public final void toFirst(){ toFirst_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void toFirst_native(long __this__nativeId); /** *

See QDataWidgetMapper::toLast()

*/ public final void toLast(){ toLast_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void toLast_native(long __this__nativeId); /** *

See QDataWidgetMapper::toNext()

*/ public final void toNext(){ toNext_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void toNext_native(long __this__nativeId); /** *

See QDataWidgetMapper::toPrevious()

*/ public final void toPrevious(){ toPrevious_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void toPrevious_native(long __this__nativeId); /** *

See QDataWidgetMapper::setCurrentIndex(int)

*/ @io.qt.QtPropertyWriter(name="currentIndex") public void setCurrentIndex(int index){ setCurrentIndex_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), index); } private native void setCurrentIndex_native_int(long __this__nativeId, int index); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QDataWidgetMapper(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 QDataWidgetMapper(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @io.qt.QtUninvokable private static native void initialize_native(QDataWidgetMapper instance, QDeclarativeConstructor constructor); }