Package org.gnome.webkit
Class BackForwardListItem
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gobject.GObject
org.gnome.gobject.InitiallyUnowned
org.gnome.webkit.BackForwardListItem
- All Implemented Interfaces:
Proxy
@Generated("io.github.jwharm.JavaGI")
public final class BackForwardListItem
extends InitiallyUnowned
One item of the
WebKitBackForwardList
.
A history item is part of the WebKitBackForwardList
and consists
out of a title and a URI.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Inner class implementing a builder pattern to construct a GObject with properties.Nested classes/interfaces inherited from class org.gnome.gobject.InitiallyUnowned
InitiallyUnowned.InitiallyUnownedClass
Nested classes/interfaces inherited from class org.gnome.gobject.GObject
GObject.NotifyCallback, GObject.ObjectClass
-
Constructor Summary
ConstructorDescriptionBackForwardListItem
(MemorySegment address) Create a BackForwardListItem proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionprotected BackForwardListItem
asParent()
Returns this instance as if it were its parent type.static BackForwardListItem.Builder
<? extends BackForwardListItem.Builder> builder()
ABackForwardListItem.Builder
object constructs aBackForwardListItem
with the specified properties.Obtain the original URI of the item.getTitle()
Obtain the title of the item.static Type
getType()
Get the GType of the BackForwardListItem classgetUri()
Obtain the URI of the item.Methods inherited from class org.gnome.gobject.InitiallyUnowned
getMemoryLayout
Methods inherited from class org.gnome.gobject.GObject
addToggleRef, addWeakPointer, bindProperty, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, connect, constructed, disconnect, dispatchPropertiesChanged, dispose, dupData, dupQdata, emit, emitNotify, finalize_, forceFloating, freezeNotify, get, getData, getProperty, getProperty, getProperty, getQdata, getv, interfaceFindProperty, interfaceInstallProperty, interfaceListProperties, isFloating, newInstance, newInstance, newInstance, newInstance, newv, notify_, notify_, notifyByPspec, onNotify, ref, refSink, removeToggleRef, removeWeakPointer, replaceData, replaceQdata, runDispose, set, setData, setDataFull, setProperty, setProperty, setProperty, setQdata, setQdataFull, setv, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref, withProperties
Methods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, getPrivate, readGClass, writeGClass
Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
BackForwardListItem
Create a BackForwardListItem proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
-
Method Details
-
getType
-
asParent
Returns this instance as if it were its parent type. This is mostly synonymous to the Javasuper
keyword, but will set the native typeclass function pointers to the parent type. When overriding a native virtual method in Java, "chaining up" withsuper.methodName()
doesn't work, because it invokes the overridden function pointer again. To chain up, callasParent().methodName()
. This will call the native function pointer of this virtual method in the typeclass of the parent type.- Overrides:
asParent
in classInitiallyUnowned
-
getOriginalUri
Obtain the original URI of the item.See also webkit_back_forward_list_item_get_uri().
- Returns:
- the original URI of this BackForwardListItem or
null
when the original URI is empty.
-
getTitle
Obtain the title of the item.- Returns:
- the page title of this BackForwardListItem or
null
when the title is empty.
-
getUri
Obtain the URI of the item.This URI may differ from the original URI if the page was, for example, redirected to a new location. See also webkit_back_forward_list_item_get_original_uri().
- Returns:
- the URI of this BackForwardListItem or
null
when the URI is empty.
-
builder
ABackForwardListItem.Builder
object constructs aBackForwardListItem
with the specified properties. Use the variousset...()
methods to set properties, and finish construction withBackForwardListItem.Builder.build()
.
-