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

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

The newest version!
package io.qt.core;


/**
 * 

The base class for all runnable objects

*

Java wrapper for Qt class QRunnable

*/ public interface QRunnable extends io.qt.QtObjectInterface, Runnable { /** *

Implementor class for interface {@link io.qt.core.QRunnable}

*/ public static abstract class Impl extends io.qt.QtObject implements io.qt.core.QRunnable, Runnable { static { QtJambi_LibraryUtilities.initialize(); } @io.qt.NativeAccess private static final class ConcreteWrapper extends QRunnable.Impl { @io.qt.NativeAccess private ConcreteWrapper(QPrivateConstructor p) { super(p); } @Override @io.qt.QtUninvokable public void run(){ run_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static void run_native(long __this__nativeId); } /** *

See QRunnable::QRunnable()

*/ public Impl(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QRunnable instance); /** *

See QRunnable::autoDelete()const

*/ @io.qt.QtUninvokable public final boolean autoDelete(){ return autoDelete_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static boolean autoDelete_native_constfct(long __this__nativeId); /** *

See QRunnable::setAutoDelete(bool)

*/ @io.qt.QtUninvokable public final void setAutoDelete(boolean autoDelete){ setAutoDelete_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), autoDelete); } private native static void setAutoDelete_native_bool(long __this__nativeId, boolean autoDelete); /** *

See QRunnable::run()

*/ @io.qt.QtUninvokable public abstract void run(); private native static void run_native(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected Impl(QPrivateConstructor p) { super(p); } } /** *

See QRunnable::autoDelete()const

*/ @io.qt.QtDeclaredFinal @io.qt.QtUninvokable public default boolean autoDelete(){ return Impl.autoDelete_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } /** *

See QRunnable::setAutoDelete(bool)

*/ @io.qt.QtDeclaredFinal @io.qt.QtUninvokable public default void setAutoDelete(boolean autoDelete){ Impl.setAutoDelete_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), autoDelete); } /** *

See QRunnable::run()

*/ @io.qt.QtUninvokable public void run(); public static QRunnable of(Runnable runnable) { if(runnable instanceof QRunnable) { return (QRunnable)runnable; }else if(runnable==null){ return null; }else { return runnable::run; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy