io.qt.gui.QFileOpenEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi Show documentation
Show all versions of qtjambi Show documentation
QtJambi base module containing QtCore, QtGui and QtWidgets.
package io.qt.gui;
import io.qt.*;
/**
* Event that will be sent when there is a request to open a file or a URL
* Java wrapper for Qt class QFileOpenEvent
*/
public class QFileOpenEvent extends io.qt.core.QEvent
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QFileOpenEvent:: QFileOpenEvent(QFileOpenEvent)
*/
protected QFileOpenEvent(io.qt.gui.@StrictNonNull QFileOpenEvent arg__1){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected.");
initialize_native(this, arg__1);
}
private native static void initialize_native(QFileOpenEvent instance, io.qt.gui.QFileOpenEvent arg__1);
/**
* See QFileOpenEvent:: QFileOpenEvent(QString)
*/
public QFileOpenEvent(java.lang.@NonNull String file){
super((QPrivateConstructor)null);
initialize_native(this, file);
}
private native static void initialize_native(QFileOpenEvent instance, java.lang.String file);
/**
* See QFileOpenEvent:: QFileOpenEvent(QUrl)
*/
public QFileOpenEvent(io.qt.core.@NonNull QUrl url){
super((QPrivateConstructor)null);
initialize_native(this, url);
}
private native static void initialize_native(QFileOpenEvent instance, io.qt.core.QUrl url);
/**
* See QFileOpenEvent:: file()const
*/
@QtUninvokable
public final java.lang.@NonNull String file(){
return file_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String file_native_constfct(long __this__nativeId);
/**
* See QFileOpenEvent:: openFile(QFile&, QIODevice::OpenMode)const
*/
@QtUninvokable
public final boolean openFile(io.qt.core.@StrictNonNull QFile file, io.qt.core.QIODeviceBase.@NonNull OpenMode flags){
java.util.Objects.requireNonNull(file, "Argument 'file': null not expected.");
return openFile_native_ref_QFile_QIODeviceBase_OpenMode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(file), flags.value());
}
@QtUninvokable
private native boolean openFile_native_ref_QFile_QIODeviceBase_OpenMode_constfct(long __this__nativeId, long file, int flags);
/**
* See QFileOpenEvent:: operator=(QFileOpenEvent)
*/
@QtUninvokable
protected final void assign(io.qt.gui.@StrictNonNull QFileOpenEvent other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
assign_native_cref_QFileOpenEvent(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QFileOpenEvent(long __this__nativeId, long other);
/**
* See QFileOpenEvent:: url()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QUrl url(){
return url_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QUrl url_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
@Override
public io.qt.gui.@Nullable QFileOpenEvent clone(){
return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QFileOpenEvent clone_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QFileOpenEvent(QPrivateConstructor p) { super(p); }
/**
* Overloaded function for {@link #openFile(io.qt.core.QFile, io.qt.core.QIODeviceBase.OpenMode)}.
*/
@QtUninvokable
public final boolean openFile(io.qt.core.@StrictNonNull QFile file, io.qt.core.QIODeviceBase.@NonNull OpenModeFlag @NonNull... flags) {
return openFile(file, new io.qt.core.QIODeviceBase.OpenMode(flags));
}
/**
* @deprecated Use {@link #assign(io.qt.gui.QFileOpenEvent)} instead.
*/
@Deprecated
@QtUninvokable
protected final void set(io.qt.gui.@StrictNonNull QFileOpenEvent other) {
assign(other);
}
}