Class ApplicationWindow.Builder<B extends ApplicationWindow.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
Accessible.Builder<B>, BuilderInterface
Direct Known Subclasses:
ApplicationWindow.Builder
Enclosing class:
ApplicationWindow

public static class ApplicationWindow.Builder<B extends ApplicationWindow.Builder<B>> extends Window.Builder<B> implements Accessible.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 ApplicationWindow build()
      Finish building the ApplicationWindow object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to ApplicationWindow.
      Overrides:
      build in class Window.Builder<B extends ApplicationWindow.Builder<B>>
      Returns:
      a new instance of ApplicationWindow with the properties that were set in the Builder object.
    • setShowMenubar

      public B setShowMenubar(boolean showMenubar)

      If this property is true, the window will display a menubar unless it is shown by the desktop shell.

      See Application.setMenubar(MenuModel).

      If false, the window will not display a menubar, regardless of whether the desktop shell is showing it or not.

      Parameters:
      showMenubar - the value for the show-menubar property
      Returns:
      the Builder instance is returned, to allow method chaining