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 GObject
GObject.NotifyCallback, GObject.ObjectClass -
Constructor Summary
ConstructorsConstructorDescriptionFrame()Create a new Frame.Frame(MemorySegment address) Create a Frame instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionprotected FrameasParent()Return 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 MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the Frame class.getUri()Gets the current active URI offrame.booleanGets whether this Frame is the main frame of aWebKitWebPageMethods inherited from class 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, 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 TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
Frame
Create a Frame instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
Frame
public Frame()Create a new Frame.
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
asParent
-
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
-