Class PopoverBin.Builder<B extends PopoverBin.Builder<B>>

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

public static class PopoverBin.Builder<B extends PopoverBin.Builder<B>> extends Widget.Builder<B> implements Accessible.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
Since:
4.22
  • Constructor Details

    • Builder

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

    • build

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

      public B setChild(Widget child)
      The child widget of the popover bin.
      Parameters:
      child - the value for the child property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.22
    • setHandleInput

      public B setHandleInput(boolean handleInput)
      Whether the popover bin will handle input to trigger the popup.
      Parameters:
      handleInput - the value for the handle-input property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.22
    • setMenuModel

      public B setMenuModel(MenuModel menuModel)

      The GMenuModel from which the popup will be created.

      See PopoverBin.setMenuModel(MenuModel) for the interaction with the Gtk.PopoverBin:popover property.

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

      public B setPopover(Popover popover)
      The GtkPopover that will be popped up when calling PopoverBin.popup().
      Parameters:
      popover - the value for the popover property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.22