Class PropertyAnimationTarget.Builder<B extends PropertyAnimationTarget.Builder<B>>

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

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

    • Builder

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

    • build

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

      public B setObject(GObject object)

      The object whose property will be animated.

      The AdwPropertyAnimationTarget instance does not hold a strong reference on the object; make sure the object is kept alive throughout the target's lifetime.

      Parameters:
      object - the value for the object property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.2
    • setPspec

      public B setPspec(ParamSpec pspec)
      The GParamSpec of the property to be animated.
      Parameters:
      pspec - the value for the pspec property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.2