Class Frame
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gobject.GObject
org.webkitgtk.webprocessextension.Frame
- All Implemented Interfaces:
Proxy
A web page frame.
Each WebKitWebPage has at least one main frame, and can have any number
of subframes.
- Since:
- 2.26
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFrame.Builder<B extends Frame.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.static classNested classes/interfaces inherited from class org.gnome.gobject.GObject
GObject.NotifyCallback, GObject.ObjectClass -
Constructor Summary
ConstructorsConstructorDescriptionFrame()Creates a new Frame.Frame(MemorySegment address) Create a Frame proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionprotected FrameasParent()Returns this instance as if it were its parent type.static Frame.Builder<? extends Frame.Builder> builder()AFrame.Builderobject constructs aFramewith the specified properties.longgetId()Gets the process-unique identifier of thisWebKitFrame.Get the JavaScript execution context offrame.Use this function to bridge between the WebKit and JavaScriptCore APIs.Get the JavaScript execution context of this Frame for the givenWebKitScriptWorld.static @Nullable TypegetType()Get the GType of the Frame classgetUri()Gets the current active URI offrame.booleanGets whether this Frame is the main frame of aWebKitWebPageMethods 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, getMemoryLayout, getProperty, getProperty, getProperty, getQdata, getv, interfaceFindProperty, interfaceInstallProperty, interfaceListProperties, isFloating, 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, withPropertiesMethods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
Frame
Create a Frame proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
Frame
public Frame()Creates a new Frame.
-
-
Method Details
-
getType
-
asParent
Returns this instance as if it were its parent type. This is mostly synonymous to the Javasuperkeyword, 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. -
getId
public long getId()Gets the process-unique identifier of thisWebKitFrame. No other frame in the same web process will have the same ID; however, frames in other web processes may.- Returns:
- the identifier of this Frame
- Since:
- 2.26
-
getJsContext
Get the JavaScript execution context offrame.Use this function to bridge between the WebKit and JavaScriptCore APIs.- Returns:
- the
JSCContextfor the JavaScript execution context offrame. - Since:
- 2.22
-
getJsContextForScriptWorld
Get the JavaScript execution context of this Frame for the givenWebKitScriptWorld.- Parameters:
world- aWebKitScriptWorld- Returns:
- the
JSCContextfor the JavaScript execution context of this Frame forworld. - Since:
- 2.22
-
getUri
Gets the current active URI offrame.- Returns:
- the current active URI of this Frame or
nullif nothing has been loaded yet. - Since:
- 2.2
-
isMainFrame
public boolean isMainFrame()Gets whether this Frame is the main frame of aWebKitWebPage- Returns:
trueif this Frame is a main frame orfalseotherwise- Since:
- 2.2
-
builder
AFrame.Builderobject constructs aFramewith the specified properties. Use the variousset...()methods to set properties, and finish construction withFrame.Builder.build().- Returns:
- the builder object
-