io.qt.gui.QFileOpenEvent Maven / Gradle / Ivy
The newest version!
package io.qt.gui;
/**
* 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();
}
protected QFileOpenEvent(io.qt.gui.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);
public QFileOpenEvent(java.lang.String file){
super((QPrivateConstructor)null);
initialize_native(this, file);
}
private native static void initialize_native(QFileOpenEvent instance, java.lang.String file);
public QFileOpenEvent(io.qt.core.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
*/
@io.qt.QtUninvokable
public final java.lang.String file(){
return file_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String file_native_constfct(long __this__nativeId);
/**
* Overloaded function for {@link #openFile(io.qt.core.QFile, io.qt.core.QIODeviceBase.OpenMode)}.
*/
@io.qt.QtUninvokable
public final boolean openFile(io.qt.core.QFile file, io.qt.core.QIODeviceBase.OpenModeFlag ... flags){
return openFile(file, new io.qt.core.QIODeviceBase.OpenMode(flags));
}
/**
* See QFileOpenEvent::openFile(QFile&,QIODevice::OpenMode)const
*/
@io.qt.QtUninvokable
public final boolean openFile(io.qt.core.QFile file, io.qt.core.QIODeviceBase.OpenMode flags){
return openFile_native_ref_QFile_QFlags_QIODeviceBase_OpenModeFlag__constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(file), flags.value());
}
@io.qt.QtUninvokable
private native boolean openFile_native_ref_QFile_QFlags_QIODeviceBase_OpenModeFlag__constfct(long __this__nativeId, long file, int flags);
@io.qt.QtUninvokable
protected final void set(io.qt.gui.QFileOpenEvent other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
set_native_cref_QFileOpenEvent(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@io.qt.QtUninvokable
private native void set_native_cref_QFileOpenEvent(long __this__nativeId, long other);
/**
* See QFileOpenEvent::url()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QUrl url(){
return url_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QUrl url_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public io.qt.gui.QFileOpenEvent clone(){
return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QFileOpenEvent clone_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QFileOpenEvent(QPrivateConstructor p) { super(p); }
@Override
@io.qt.QtUninvokable
public String toString() {
return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private static native String toString_native(long __this_nativeId);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy