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.1
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.Map __rcObjectForObject; /** * 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*)

* @param parent */ 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*)

* @param sender */ 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

* @param object * @return */ @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

* @param text * @return */ @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

* @param id * @return */ @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*)

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

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

* @param sender * @param object */ @QtUninvokable public final void setMapping(io.qt.core.@Nullable QObject sender, io.qt.core.@Nullable QObject object){ InternalAccess.NativeIdInfo __object__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(object); InternalAccess.NativeIdInfo __sender__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(sender); setMapping_native_QObject_ptr_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), __sender__NativeIdInfo.nativeId(), __object__NativeIdInfo.nativeId()); if ((sender != null && __sender__NativeIdInfo.needsReferenceCounting()) || (object != null && __object__NativeIdInfo.needsReferenceCounting())) { if(__rcObjectForObject==null) __rcObjectForObject = QtJambi_LibraryUtilities.internal.newRCMap(); __rcObjectForObject.put(sender, object); } else{ if(__rcObjectForObject!=null) __rcObjectForObject.remove(sender); } } @QtUninvokable private native void setMapping_native_QObject_ptr_QObject_ptr(long __this__nativeId, long sender, long object); /** *

See QSignalMapper::setMapping(QObject*,QString)

* @param sender * @param text */ @QtUninvokable public final void setMapping(io.qt.core.@Nullable QObject sender, java.lang.@NonNull String text){ InternalAccess.NativeIdInfo __sender__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(sender); setMapping_native_QObject_ptr_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), __sender__NativeIdInfo.nativeId(), text); if (sender != null && __sender__NativeIdInfo.needsReferenceCounting()) { if(__rcObjectForObject==null) __rcObjectForObject = QtJambi_LibraryUtilities.internal.newRCMap(); __rcObjectForObject.put(sender, null); } else{ if(__rcObjectForObject!=null) __rcObjectForObject.remove(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)

* @param sender * @param id */ @QtUninvokable public final void setMapping(io.qt.core.@Nullable QObject sender, int id){ InternalAccess.NativeIdInfo __sender__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(sender); setMapping_native_QObject_ptr_int(QtJambi_LibraryUtilities.internal.nativeId(this), __sender__NativeIdInfo.nativeId(), id); if (sender != null && __sender__NativeIdInfo.needsReferenceCounting()) { if(__rcObjectForObject==null) __rcObjectForObject = QtJambi_LibraryUtilities.internal.newRCMap(); __rcObjectForObject.put(sender, null); } else{ if(__rcObjectForObject!=null) __rcObjectForObject.remove(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); /** *

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy