io.qt.webengine.core.QWebEngineNavigationRequest Maven / Gradle / Ivy
Show all versions of qtjambi-webenginecore Show documentation
package io.qt.webengine.core;
import io.qt.*;
/**
* A utility type for the QWebEnginePage::navigationRequested signal
* Java wrapper for Qt class QWebEngineNavigationRequest
* @since This class was introduced in Qt 6.2.
*/
public final class QWebEngineNavigationRequest extends io.qt.core.QObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QWebEngineNavigationRequest.class);
/**
* Java wrapper for Qt enum QWebEngineNavigationRequest::NavigationType
*/
public enum NavigationType implements QtEnumerator {
/**
* Representing QWebEngineNavigationRequest:: LinkClickedNavigation
*/
LinkClickedNavigation(0),
/**
* Representing QWebEngineNavigationRequest:: TypedNavigation
*/
TypedNavigation(1),
/**
* Representing QWebEngineNavigationRequest:: FormSubmittedNavigation
*/
FormSubmittedNavigation(2),
/**
* Representing QWebEngineNavigationRequest:: BackForwardNavigation
*/
BackForwardNavigation(3),
/**
* Representing QWebEngineNavigationRequest:: ReloadNavigation
*/
ReloadNavigation(4),
/**
* Representing QWebEngineNavigationRequest:: OtherNavigation
*/
OtherNavigation(5),
/**
* Representing QWebEngineNavigationRequest:: RedirectNavigation
*/
RedirectNavigation(6);
static {
QtJambi_LibraryUtilities.initialize();
}
private NavigationType(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull NavigationType resolve(int value) {
switch (value) {
case 0: return LinkClickedNavigation;
case 1: return TypedNavigation;
case 2: return FormSubmittedNavigation;
case 3: return BackForwardNavigation;
case 4: return ReloadNavigation;
case 5: return OtherNavigation;
case 6: return RedirectNavigation;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QWebEngineNavigationRequest:: actionChanged()
*/
@QtPropertyNotify(name="action")
public final @NonNull Signal0 actionChanged = new Signal0();
/**
* See QWebEngineNavigationRequest:: accept()
*/
public final void accept(){
accept_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void accept_native(long __this__nativeId);
/**
* See QWebEngineNavigationRequest:: hasFormData()const
* @return
*/
@QtPropertyReader(name="hasFormData")
@QtPropertyConstant
@QtUninvokable
public final boolean hasFormData(){
return hasFormData_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean hasFormData_native_constfct(long __this__nativeId);
/**
* See QWebEngineNavigationRequest:: isMainFrame()const
* @return
*/
@QtPropertyReader(name="isMainFrame")
@QtPropertyConstant
@QtUninvokable
public final boolean isMainFrame(){
return isMainFrame_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isMainFrame_native_constfct(long __this__nativeId);
/**
* See QWebEngineNavigationRequest:: navigationType()const
* @return
*/
@QtPropertyReader(name="navigationType")
@QtPropertyConstant
@QtUninvokable
public final io.qt.webengine.core.QWebEngineNavigationRequest.@NonNull NavigationType navigationType(){
return io.qt.webengine.core.QWebEngineNavigationRequest.NavigationType.resolve(navigationType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int navigationType_native_constfct(long __this__nativeId);
/**
* See QWebEngineNavigationRequest:: reject()
*/
public final void reject(){
reject_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void reject_native(long __this__nativeId);
/**
* See QWebEngineNavigationRequest:: url()const
* @return
*/
@QtPropertyReader(name="url")
@QtPropertyConstant
@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);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
private QWebEngineNavigationRequest(QPrivateConstructor p) { super(p); }
/**
* @hidden
* Kotlin property getter. In Java use {@link #hasFormData()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getHasFormData() {
return hasFormData();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #navigationType()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.webengine.core.QWebEngineNavigationRequest.@NonNull NavigationType getNavigationType() {
return navigationType();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #url()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QUrl getUrl() {
return url();
}
}