io.qt.core.QMimeData 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.core;
import io.qt.*;
/**
* Container for data that records information about its MIME type
* Java wrapper for Qt class QMimeData
*/
public class QMimeData extends io.qt.core.QObject
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QMimeData.class);
/**
*
*/
public QMimeData(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QMimeData instance);
/**
*
*/
@QtUninvokable
public final void clear(){
clear_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void clear_native(long __this__nativeId);
/**
* See QMimeData:: colorData()const
*/
@QtUninvokable
public final java.lang.Object colorData(){
return colorData_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.Object colorData_native_constfct(long __this__nativeId);
/**
* See QMimeData:: data(QString)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArray data(java.lang.@NonNull String mimetype){
return data_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), mimetype);
}
@QtUninvokable
private native io.qt.core.QByteArray data_native_cref_QString_constfct(long __this__nativeId, java.lang.String mimetype);
/**
* See QMimeData:: hasColor()const
*/
@QtUninvokable
public final boolean hasColor(){
return hasColor_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean hasColor_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final boolean hasHtml(){
return hasHtml_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean hasHtml_native_constfct(long __this__nativeId);
/**
* See QMimeData:: hasImage()const
*/
@QtUninvokable
public final boolean hasImage(){
return hasImage_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean hasImage_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final boolean hasText(){
return hasText_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean hasText_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final boolean hasUrls(){
return hasUrls_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean hasUrls_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final java.lang.@NonNull String html(){
return html_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String html_native_constfct(long __this__nativeId);
/**
* See QMimeData:: imageData()const
*/
@QtUninvokable
public final java.lang.Object imageData(){
return imageData_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.Object imageData_native_constfct(long __this__nativeId);
/**
* See QMimeData:: removeFormat(QString)
*/
@QtUninvokable
public final void removeFormat(java.lang.@NonNull String mimetype){
removeFormat_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), mimetype);
}
@QtUninvokable
private native void removeFormat_native_cref_QString(long __this__nativeId, java.lang.String mimetype);
/**
* See QMimeData:: setColorData(QVariant)
*/
@QtUninvokable
public final void setColorData(java.lang.Object color){
setColorData_native_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), color);
}
@QtUninvokable
private native void setColorData_native_cref_QVariant(long __this__nativeId, java.lang.Object color);
/**
* See QMimeData:: setData(QString, QByteArray)
*/
@QtUninvokable
public final void setData(java.lang.@NonNull String mimetype, io.qt.core.@NonNull QByteArray data){
setData_native_cref_QString_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), mimetype, QtJambi_LibraryUtilities.internal.checkedNativeId(data));
}
@QtUninvokable
private native void setData_native_cref_QString_cref_QByteArray(long __this__nativeId, java.lang.String mimetype, long data);
/**
* See QMimeData:: setHtml(QString)
*/
@QtUninvokable
public final void setHtml(java.lang.@NonNull String html){
setHtml_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), html);
}
@QtUninvokable
private native void setHtml_native_cref_QString(long __this__nativeId, java.lang.String html);
/**
* See QMimeData:: setImageData(QVariant)
*/
@QtUninvokable
public final void setImageData(java.lang.Object image){
setImageData_native_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), image);
}
@QtUninvokable
private native void setImageData_native_cref_QVariant(long __this__nativeId, java.lang.Object image);
/**
* See QMimeData:: setText(QString)
*/
@QtUninvokable
public final void setText(java.lang.@NonNull String text){
setText_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text);
}
@QtUninvokable
private native void setText_native_cref_QString(long __this__nativeId, java.lang.String text);
/**
* See QMimeData:: setUrls(QList<QUrl>)
*/
@QtUninvokable
public final void setUrls(java.util.@NonNull Collection extends io.qt.core.@NonNull QUrl> urls){
setUrls_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), urls);
}
@QtUninvokable
private native void setUrls_native_cref_QList(long __this__nativeId, java.util.Collection extends io.qt.core.QUrl> urls);
/**
*
*/
@QtUninvokable
public final java.lang.@NonNull String text(){
return text_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String text_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QList urls(){
return urls_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QList urls_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public java.util.@NonNull List formats(){
return formats_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.util.List formats_native_constfct(long __this__nativeId);
/**
* See QMimeData:: hasFormat(QString)const
*/
@QtUninvokable
public boolean hasFormat(java.lang.@NonNull String mimetype){
return hasFormat_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), mimetype);
}
@QtUninvokable
private native boolean hasFormat_native_cref_QString_constfct(long __this__nativeId, java.lang.String mimetype);
/**
* See QMimeData:: retrieveData(QString, QMetaType)const
*/
@QtUninvokable
protected java.lang.Object retrieveData(java.lang.@NonNull String mimetype, io.qt.core.@NonNull QMetaType preferredType){
return retrieveData_native_cref_QString_QMetaType_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), mimetype, QtJambi_LibraryUtilities.internal.checkedNativeId(preferredType));
}
@QtUninvokable
private native java.lang.Object retrieveData_native_cref_QString_QMetaType_constfct(long __this__nativeId, java.lang.String mimetype, long preferredType);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QMimeData(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QMimeData(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QMimeData instance, QDeclarativeConstructor constructor);
/**
* Overloaded function for {@link #setData(java.lang.String, io.qt.core.QByteArray)}.
*/
@QtUninvokable
public final void setData(java.lang.@NonNull String mimetype, byte @NonNull[] data) {
setData(mimetype, new io.qt.core.QByteArray(data));
}
}