currentIndexChanged = new Signal1<>();
/**
* See QDataWidgetMapper::QDataWidgetMapper(QObject*)
*/
public QDataWidgetMapper(io.qt.core.@Nullable 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)
*/
@QtUninvokable
public final void addMapping(io.qt.widgets.@Nullable 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);
}
}
@QtUninvokable
private native void addMapping_native_QWidget_ptr_int(long __this__nativeId, long widget, int section);
/**
* See QDataWidgetMapper::addMapping(QWidget*,int,QByteArray)
*/
@QtUninvokable
public final void addMapping(io.qt.widgets.@Nullable QWidget widget, int section, io.qt.core.@NonNull 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);
}
}
@QtUninvokable
private native void addMapping_native_QWidget_ptr_int_cref_QByteArray(long __this__nativeId, long widget, int section, long propertyName);
/**
* See QDataWidgetMapper::clearMapping()
*/
@QtUninvokable
public final void clearMapping(){
clearMapping_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void clearMapping_native(long __this__nativeId);
/**
* See QDataWidgetMapper::currentIndex()const
*/
@QtPropertyReader(name="currentIndex")
@QtUninvokable
public final int currentIndex(){
return currentIndex_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int currentIndex_native_constfct(long __this__nativeId);
/**
* See QDataWidgetMapper::itemDelegate()const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QAbstractItemDelegate itemDelegate(){
return itemDelegate_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QAbstractItemDelegate itemDelegate_native_constfct(long __this__nativeId);
/**
* See QDataWidgetMapper::mappedPropertyName(QWidget*)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArray mappedPropertyName(io.qt.widgets.@Nullable QWidget widget){
return mappedPropertyName_native_QWidget_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native io.qt.core.QByteArray mappedPropertyName_native_QWidget_ptr_constfct(long __this__nativeId, long widget);
/**
* See QDataWidgetMapper::mappedSection(QWidget*)const
*/
@QtUninvokable
public final int mappedSection(io.qt.widgets.@Nullable QWidget widget){
return mappedSection_native_QWidget_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native int mappedSection_native_QWidget_ptr_constfct(long __this__nativeId, long widget);
/**
* See QDataWidgetMapper::mappedWidgetAt(int)const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QWidget mappedWidgetAt(int section){
return mappedWidgetAt_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), section);
}
@QtUninvokable
private native io.qt.widgets.QWidget mappedWidgetAt_native_int_constfct(long __this__nativeId, int section);
/**
* See QDataWidgetMapper::model()const
*/
@QtUninvokable
public final io.qt.core.@Nullable QAbstractItemModel model(){
return model_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QAbstractItemModel model_native_constfct(long __this__nativeId);
/**
* See QDataWidgetMapper::orientation()const
*/
@QtPropertyReader(name="orientation")
@QtUninvokable
public final io.qt.core.Qt.@NonNull Orientation orientation(){
return io.qt.core.Qt.Orientation.resolve(orientation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int orientation_native_constfct(long __this__nativeId);
/**
* See QDataWidgetMapper::removeMapping(QWidget*)
*/
@QtUninvokable
public final void removeMapping(io.qt.widgets.@Nullable 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)) ;
}
}
@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
*/
@QtUninvokable
public final io.qt.core.@NonNull QModelIndex rootIndex(){
return rootIndex_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QModelIndex rootIndex_native_constfct(long __this__nativeId);
/**
* See QDataWidgetMapper::setCurrentModelIndex(QModelIndex)
*/
public final void setCurrentModelIndex(io.qt.core.@NonNull QModelIndex index){
setCurrentModelIndex_native_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
private native void setCurrentModelIndex_native_cref_QModelIndex(long __this__nativeId, long index);
/**
* See QDataWidgetMapper::setItemDelegate(QAbstractItemDelegate*)
*/
@QtUninvokable
public final void setItemDelegate(io.qt.widgets.@Nullable QAbstractItemDelegate delegate){
setItemDelegate_native_QAbstractItemDelegate_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(delegate));
__rcItemDelegate = delegate;
}
@QtUninvokable
private native void setItemDelegate_native_QAbstractItemDelegate_ptr(long __this__nativeId, long delegate);
/**
* See QDataWidgetMapper::setModel(QAbstractItemModel*)
*/
@QtUninvokable
public final void setModel(io.qt.core.@Nullable QAbstractItemModel model){
setModel_native_QAbstractItemModel_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(model));
__rcModel = model;
}
@QtUninvokable
private native void setModel_native_QAbstractItemModel_ptr(long __this__nativeId, long model);
/**
* See QDataWidgetMapper::setOrientation(Qt::Orientation)
*/
@QtPropertyWriter(name="orientation")
@QtUninvokable
public final void setOrientation(io.qt.core.Qt.@NonNull Orientation aOrientation){
setOrientation_native_Qt_Orientation(QtJambi_LibraryUtilities.internal.nativeId(this), aOrientation.value());
}
@QtUninvokable
private native void setOrientation_native_Qt_Orientation(long __this__nativeId, int aOrientation);
/**
* See QDataWidgetMapper::setRootIndex(QModelIndex)
*/
@QtUninvokable
public final void setRootIndex(io.qt.core.@NonNull QModelIndex index){
setRootIndex_native_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native void setRootIndex_native_cref_QModelIndex(long __this__nativeId, long index);
/**
* See QDataWidgetMapper::setSubmitPolicy(QDataWidgetMapper::SubmitPolicy)
*/
@QtPropertyWriter(name="submitPolicy")
@QtUninvokable
public final void setSubmitPolicy(io.qt.widgets.QDataWidgetMapper.@NonNull SubmitPolicy policy){
setSubmitPolicy_native_QDataWidgetMapper_SubmitPolicy(QtJambi_LibraryUtilities.internal.nativeId(this), policy.value());
}
@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
*/
@QtPropertyReader(name="submitPolicy")
@QtUninvokable
public final io.qt.widgets.QDataWidgetMapper.@NonNull SubmitPolicy submitPolicy(){
return io.qt.widgets.QDataWidgetMapper.SubmitPolicy.resolve(submitPolicy_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@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)
*/
@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
.
* @hidden
*/
@NativeAccess
protected QDataWidgetMapper(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QDataWidgetMapper(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QDataWidgetMapper instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QDataWidgetMapper(io.qt.core.QObject)}
* with parent = null
.
*/
public QDataWidgetMapper() {
this((io.qt.core.QObject)null);
}
/**
* Overloaded function for {@link #addMapping(io.qt.widgets.QWidget, int, io.qt.core.QByteArray)}.
*/
@QtUninvokable
public final void addMapping(io.qt.widgets.@Nullable QWidget widget, int section, byte @NonNull[] propertyName) {
addMapping(widget, section, new io.qt.core.QByteArray(propertyName));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #currentIndex()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getCurrentIndex() {
return currentIndex();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #orientation()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.Qt.@NonNull Orientation getOrientation() {
return orientation();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #submitPolicy()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.widgets.QDataWidgetMapper.@NonNull SubmitPolicy getSubmitPolicy() {
return submitPolicy();
}
}