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 Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public WindowProperties build()
      Finish building the WindowProperties object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to WindowProperties.
      Overrides:
      build in class GObject.Builder<B extends WindowProperties.Builder<B>>
      Returns:
      a new instance of WindowProperties with the properties that were set in the Builder object.
    • setFullscreen

      public B setFullscreen(boolean fullscreen)
      Whether window will be displayed fullscreen.
      Parameters:
      fullscreen - the value for the fullscreen property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setGeometry

      public B setGeometry(Rectangle geometry)
      The size and position of the window on the screen.
      Parameters:
      geometry - the value for the geometry property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setLocationbarVisible

      public B setLocationbarVisible(boolean locationbarVisible)
      Whether the locationbar should be visible for the window.
      Parameters:
      locationbarVisible - the value for the locationbar-visible property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setMenubarVisible

      public B setMenubarVisible(boolean menubarVisible)
      Whether the menubar should be visible for the window.
      Parameters:
      menubarVisible - the value for the menubar-visible property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setResizable

      public B setResizable(boolean resizable)
      Whether the window can be resized.
      Parameters:
      resizable - the value for the resizable property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setScrollbarsVisible

      public B setScrollbarsVisible(boolean scrollbarsVisible)
      Whether the scrollbars should be visible for the window.
      Parameters:
      scrollbarsVisible - the value for the scrollbars-visible property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setStatusbarVisible

      public B setStatusbarVisible(boolean statusbarVisible)
      Whether the statusbar should be visible for the window.
      Parameters:
      statusbarVisible - the value for the statusbar-visible property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setToolbarVisible

      public B setToolbarVisible(boolean toolbarVisible)
      Whether the toolbar should be visible for the window.
      Parameters:
      toolbarVisible - the value for the toolbar-visible property
      Returns:
      the Builder instance is returned, to allow method chaining