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

io.qt.core.QSignalMapper Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.core;

import io.qt.*;


/**
 * 

Bundles signals from identifiable senders

*

Java wrapper for Qt class QSignalMapper

*/ public class QSignalMapper extends io.qt.core.QObject { @QtPropertyMember(enabled=false) private java.util.Collection __rcMappings; /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QSignalMapper.class); /** *

See QSignalMapper::mappedInt(int)

*/ public final @NonNull Signal1 mappedInt = new Signal1<>(); /** *

See QSignalMapper::mappedObject(QObject*)

*/ public final @NonNull Signal1 mappedObject = new Signal1<>(); /** *

See QSignalMapper::mappedString(QString)

*/ public final @NonNull Signal1 mappedString = new Signal1<>(); /** *

See QSignalMapper::QSignalMapper(QObject*)

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

See QSignalMapper::map()

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

See QSignalMapper::map(QObject*)

*/ public final void map(io.qt.core.@Nullable QObject sender){ map_native_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(sender)); } private native void map_native_QObject_ptr(long __this__nativeId, long sender); /** *

See QSignalMapper::mapping(QObject*)const

*/ @QtUninvokable public final io.qt.core.@Nullable QObject mapping(io.qt.core.@Nullable QObject object){ return mapping_native_QObject_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(object)); } @QtUninvokable private native io.qt.core.QObject mapping_native_QObject_ptr_constfct(long __this__nativeId, long object); /** *

See QSignalMapper::mapping(QString)const

*/ @QtUninvokable public final io.qt.core.@Nullable QObject mapping(java.lang.@NonNull String text){ return mapping_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), text); } @QtUninvokable private native io.qt.core.QObject mapping_native_cref_QString_constfct(long __this__nativeId, java.lang.String text); /** *

See QSignalMapper::mapping(int)const

*/ @QtUninvokable public final io.qt.core.@Nullable QObject mapping(int id){ return mapping_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), id); } @QtUninvokable private native io.qt.core.QObject mapping_native_int_constfct(long __this__nativeId, int id); /** *

See QSignalMapper::removeMappings(QObject*)

*/ @QtUninvokable public final void removeMappings(io.qt.core.@Nullable QObject sender){ removeMappings_native_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(sender)); if (sender != null) { while (__rcMappings != null && __rcMappings.remove(sender)) ; } if (__rcObjectForObject!=null) __rcObjectForObject.remove(sender); } @QtUninvokable private native void removeMappings_native_QObject_ptr(long __this__nativeId, long sender); /** *

See QSignalMapper::setMapping(QObject*,QObject*)

*/ @QtUninvokable public final void setMapping(io.qt.core.@Nullable QObject sender, io.qt.core.@Nullable QObject object){ setMapping_native_QObject_ptr_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(sender), QtJambi_LibraryUtilities.internal.checkedNativeId(object)); if (sender != null) { if(__rcMappings==null) __rcMappings = QtJambi_LibraryUtilities.internal.newRCList(); __rcMappings.add(sender); } if (object == null) if(__rcObjectForObject!=null) __rcObjectForObject.remove(sender); else{ if(__rcObjectForObject==null) __rcObjectForObject = new java.util.HashMap<>(); __rcObjectForObject.put(sender,object); } } @QtUninvokable private native void setMapping_native_QObject_ptr_QObject_ptr(long __this__nativeId, long sender, long object); /** *

See QSignalMapper::setMapping(QObject*,QString)

*/ @QtUninvokable public final void setMapping(io.qt.core.@Nullable QObject sender, java.lang.@NonNull String text){ setMapping_native_QObject_ptr_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(sender), text); if (sender != null) { if(__rcMappings==null) __rcMappings = QtJambi_LibraryUtilities.internal.newRCList(); __rcMappings.add(sender); } } @QtUninvokable private native void setMapping_native_QObject_ptr_cref_QString(long __this__nativeId, long sender, java.lang.String text); /** *

See QSignalMapper::setMapping(QObject*,int)

*/ @QtUninvokable public final void setMapping(io.qt.core.@Nullable QObject sender, int id){ setMapping_native_QObject_ptr_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(sender), id); if (sender != null) { if(__rcMappings==null) __rcMappings = QtJambi_LibraryUtilities.internal.newRCList(); __rcMappings.add(sender); } } @QtUninvokable private native void setMapping_native_QObject_ptr_int(long __this__nativeId, long sender, int id); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QSignalMapper(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QSignalMapper(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QSignalMapper instance, QDeclarativeConstructor constructor); private java.util.HashMap __rcObjectForObject; /** *

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

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