Class OptionMenu.Builder<B extends OptionMenu.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
OptionMenu

public static class OptionMenu.Builder<B extends OptionMenu.Builder<B>> extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
Since:
2.18
  • Constructor Details

    • Builder

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

    • build

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

      public B onClose(OptionMenu.CloseCallback handler)
      Emitted when closing a WebKitOptionMenu is requested. This can happen when the user explicitly calls webkit_option_menu_close() or when the element is detached from the current page.
      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.18
      See Also: