Class PopoverMenuBar.Builder<B extends PopoverMenuBar.Builder<B>>

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

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

      public B setMenuModel(MenuModel menuModel)

      The GMenuModel from which the menu bar is created.

      The model should only contain submenus as toplevel elements.

      Parameters:
      menuModel - the value for the menu-model property
      Returns:
      the Builder instance is returned, to allow method chaining