Package org.gnome.webkit
Class WindowProperties.Builder<B extends WindowProperties.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.webkit.WindowProperties.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
WindowProperties
public static class WindowProperties.Builder<B extends WindowProperties.Builder<B>>
extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theWindowProperties
object.setFullscreen
(boolean fullscreen) Whether window will be displayed fullscreen.setGeometry
(Rectangle geometry) The size and position of the window on the screen.setLocationbarVisible
(boolean locationbarVisible) Whether the locationbar should be visible for the window.setMenubarVisible
(boolean menubarVisible) Whether the menubar should be visible for the window.setResizable
(boolean resizable) Whether the window can be resized.setScrollbarsVisible
(boolean scrollbarsVisible) Whether the scrollbars should be visible for the window.setStatusbarVisible
(boolean statusbarVisible) Whether the statusbar should be visible for the window.setToolbarVisible
(boolean toolbarVisible) Whether the toolbar should be visible for the window.Methods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theWindowProperties
object. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])
to create a new GObject instance, which is then cast toWindowProperties
.- Overrides:
build
in classGObject.Builder<B extends WindowProperties.Builder<B>>
- Returns:
- a new instance of
WindowProperties
with the properties that were set in the Builder object. - Throws:
UnsupportedPlatformException
- when run on an unsupported platform
-
setFullscreen
Whether window will be displayed fullscreen.- Parameters:
fullscreen
- the value for thefullscreen
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setGeometry
-
setLocationbarVisible
Whether the locationbar should be visible for the window.- Parameters:
locationbarVisible
- the value for thelocationbar-visible
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setMenubarVisible
Whether the menubar should be visible for the window.- Parameters:
menubarVisible
- the value for themenubar-visible
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setResizable
Whether the window can be resized.- Parameters:
resizable
- the value for theresizable
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setScrollbarsVisible
Whether the scrollbars should be visible for the window.- Parameters:
scrollbarsVisible
- the value for thescrollbars-visible
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setStatusbarVisible
Whether the statusbar should be visible for the window.- Parameters:
statusbarVisible
- the value for thestatusbar-visible
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setToolbarVisible
Whether the toolbar should be visible for the window.- Parameters:
toolbarVisible
- the value for thetoolbar-visible
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-