Class Revealer.Builder<B extends Revealer.Builder<B>>

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

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

      public B setRevealChild(boolean revealChild)
      Whether the revealer should reveal the child.
      Parameters:
      revealChild - the value for the reveal-child property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setTransitionDuration

      public B setTransitionDuration(int transitionDuration)
      The animation duration, in milliseconds.
      Parameters:
      transitionDuration - the value for the transition-duration property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setTransitionType

      public B setTransitionType(RevealerTransitionType transitionType)
      The type of animation used to transition.
      Parameters:
      transitionType - the value for the transition-type property
      Returns:
      the Builder instance is returned, to allow method chaining