Class Drop.Builder<B extends Drop.Builder<B>>

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

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

      public B setActions(Set<DragAction> actions)
      The possible actions for this drop
      Parameters:
      actions - the value for the actions property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setDevice

      public B setDevice(Device device)
      The GdkDevice performing the drop
      Parameters:
      device - the value for the device property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setDrag

      public B setDrag(Drag drag)
      The GdkDrag that initiated this drop
      Parameters:
      drag - the value for the drag property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setFormats

      public B setFormats(ContentFormats formats)
      The possible formats that the drop can provide its data in.
      Parameters:
      formats - the value for the formats property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setSurface

      public B setSurface(Surface surface)
      The GdkSurface the drop happens on
      Parameters:
      surface - the value for the surface property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setActions

      public B setActions(DragAction... actions)
      The possible actions for this drop
      Parameters:
      actions - the value for the actions property
      Returns:
      the Builder instance is returned, to allow method chaining