Class DragAndDrop.Payload

java.lang.Object
com.prineside.tdi2.scene2d.utils.DragAndDrop.Payload
Enclosing class:
DragAndDrop

public static class DragAndDrop.Payload extends Object
The payload of a drag and drop operation. Actors can be optionally provided to follow the cursor and change when over a target. Such actors will be added the stage automatically during the drag operation as necessary and they will only be removed from the stage if they were added automatically. A source actor can be used as a payload drag actor.
  • Constructor Details

    • Payload

      public Payload()
  • Method Details

    • setDragActor

      public void setDragActor(@Null Actor dragActor)
    • getDragActor

      @Null public Actor getDragActor()
    • setValidDragActor

      public void setValidDragActor(@Null Actor validDragActor)
    • getValidDragActor

      @Null public Actor getValidDragActor()
    • setInvalidDragActor

      public void setInvalidDragActor(@Null Actor invalidDragActor)
    • getInvalidDragActor

      @Null public Actor getInvalidDragActor()
    • getObject

      @Null public Object getObject()
    • setObject

      public void setObject(@Null Object object)