Class FlowBoxChild.Builder<B extends FlowBoxChild.Builder<B>>

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

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

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

      public B onActivate(FlowBoxChild.ActivateCallback handler)

      Emitted when the user activates a child widget in a GtkFlowBox.

      This can happen either by clicking or double-clicking, or via a keybinding.

      This is a keybinding signal, but it can be used by applications for their own purposes.

      The default bindings are Space and Enter.

      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also: