Package org.webkitgtk
Class NavigationAction
java.lang.Object
org.javagi.base.ProxyInstance
org.webkitgtk.NavigationAction
-
Constructor Summary
ConstructorsConstructorDescriptionNavigationAction(MemorySegment address) Create a NavigationAction proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptioncopy()Make a copy ofnavigation.voidfree()Free theWebKitNavigationAction@Nullable StringGets the this NavigationAction target frame name.intReturn the modifier keys.intReturn the number of the mouse button that triggered the navigation.Return the type of action that triggered the navigation.Return theWebKitURIRequestassociated with the navigation action.static @Nullable TypegetType()Get the GType of the NavigationAction classbooleanReturns whether the this NavigationAction was redirected.booleanReturn whether the navigation was triggered by a user gesture like a mouse click.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
NavigationAction
Create a NavigationAction proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
-
Method Details
-
getType
Get the GType of the NavigationAction class- Returns:
- the GType
-
copy
Make a copy ofnavigation.- Returns:
- A copy of passed in
WebKitNavigationAction - Since:
- 2.6
-
free
public void free()Free theWebKitNavigationAction- Since:
- 2.6
-
getFrameName
Gets the this NavigationAction target frame name. For example if navigation was triggered by clicking a link with a target attribute equal to "_blank", this will return the value of that attribute. In all other cases this function will returnnull.- Returns:
- The name of the new frame this navigation action targets or
null - Since:
- 2.40
-
getModifiers
public int getModifiers()Return the modifier keys.Return a bitmask of
GdkModifierTypevalues describing the modifier keys that were in effect when the navigation was requested- Returns:
- the modifier keys
- Since:
- 2.6
-
getMouseButton
public int getMouseButton()Return the number of the mouse button that triggered the navigation.Return the number of the mouse button that triggered the navigation, or 0 if the navigation was not started by a mouse event.
- Returns:
- the mouse button number or 0
- Since:
- 2.6
-
getRequest
Return theWebKitURIRequestassociated with the navigation action.Modifications to the returned object are <emphasis>not</emphasis> taken into account when the request is sent over the network, and is intended only to aid in evaluating whether a navigation action should be taken or not. To modify requests before they are sent over the network the
WebKitPage::send-request signal can be used instead.- Returns:
- a
WebKitURIRequest - Since:
- 2.6
-
isRedirect
public boolean isRedirect()Returns whether the this NavigationAction was redirected.- Returns:
trueif the original navigation was redirected,falseotherwise.- Since:
- 2.20
-
isUserGesture
public boolean isUserGesture()Return whether the navigation was triggered by a user gesture like a mouse click.- Returns:
- whether navigation action is a user gesture
- Since:
- 2.6
-