Package org.webkitgtk
Class WindowProperties.Builder<B extends WindowProperties.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.webkitgtk.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theWindowPropertiesobject.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
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theWindowPropertiesobject. 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:
buildin classGObject.Builder<B extends WindowProperties.Builder<B>>- Returns:
- a new instance of
WindowPropertieswith the properties that were set in the Builder object.
-
setFullscreen
Whether window will be displayed fullscreen.- Parameters:
fullscreen- the value for thefullscreenproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setGeometry
-
setLocationbarVisible
Whether the locationbar should be visible for the window.- Parameters:
locationbarVisible- the value for thelocationbar-visibleproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setMenubarVisible
Whether the menubar should be visible for the window.- Parameters:
menubarVisible- the value for themenubar-visibleproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setResizable
Whether the window can be resized.- Parameters:
resizable- the value for theresizableproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setScrollbarsVisible
Whether the scrollbars should be visible for the window.- Parameters:
scrollbarsVisible- the value for thescrollbars-visibleproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setStatusbarVisible
Whether the statusbar should be visible for the window.- Parameters:
statusbarVisible- the value for thestatusbar-visibleproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setToolbarVisible
Whether the toolbar should be visible for the window.- Parameters:
toolbarVisible- the value for thetoolbar-visibleproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-