io.qt.webengine.core.QWebEngineNewWindowRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi-webenginecore-jre8 Show documentation
Show all versions of qtjambi-webenginecore-jre8 Show documentation
Provides public API shared by both modules {@code qtjambi.webenginequick} and {@code qtjambi.webenginewidgets}.
package io.qt.webengine.core;
/**
* A utility type for the QWebEnginePage::newWindowRequested() signal
* Java wrapper for Qt class QWebEngineNewWindowRequest
*/
public final class QWebEngineNewWindowRequest extends io.qt.core.QObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QWebEngineNewWindowRequest.class);
/**
* Java wrapper for Qt enum QWebEngineNewWindowRequest::DestinationType
*/
public enum DestinationType implements io.qt.QtEnumerator {
InNewWindow(0),
InNewTab(1),
InNewDialog(2),
InNewBackgroundTab(3);
private DestinationType(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static DestinationType resolve(int value) {
switch (value) {
case 0: return InNewWindow;
case 1: return InNewTab;
case 2: return InNewDialog;
case 3: return InNewBackgroundTab;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QWebEngineNewWindowRequest::destination()const
*/
@io.qt.QtPropertyReader(name="destination")
@io.qt.QtPropertyConstant
@io.qt.QtUninvokable
public final io.qt.webengine.core.QWebEngineNewWindowRequest.DestinationType destination(){
return io.qt.webengine.core.QWebEngineNewWindowRequest.DestinationType.resolve(destination_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int destination_native_constfct(long __this__nativeId);
/**
* See QWebEngineNewWindowRequest::isUserInitiated()const
*/
@io.qt.QtPropertyReader(name="userInitiated")
@io.qt.QtPropertyConstant
@io.qt.QtUninvokable
public final boolean isUserInitiated(){
return isUserInitiated_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isUserInitiated_native_constfct(long __this__nativeId);
/**
* See QWebEngineNewWindowRequest::openIn(QWebEnginePage*)
*/
@io.qt.QtUninvokable
public final void openIn(io.qt.webengine.core.QWebEnginePage arg__1){
openIn_native_QWebEnginePage_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void openIn_native_QWebEnginePage_ptr(long __this__nativeId, long arg__1);
/**
* See QWebEngineNewWindowRequest::requestedGeometry()const
*/
@io.qt.QtPropertyReader(name="requestedGeometry")
@io.qt.QtPropertyConstant
@io.qt.QtUninvokable
public final io.qt.core.QRect requestedGeometry(){
return requestedGeometry_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QRect requestedGeometry_native_constfct(long __this__nativeId);
/**
* See QWebEngineNewWindowRequest::requestedUrl()const
*/
@io.qt.QtPropertyReader(name="requestedUrl")
@io.qt.QtPropertyConstant
@io.qt.QtUninvokable
public final io.qt.core.QUrl requestedUrl(){
return requestedUrl_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QUrl requestedUrl_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QWebEngineNewWindowRequest(QPrivateConstructor p) { super(p); }
}