Schnittstelle DropTarget.OnEnter

Umschließende Klasse:
DropTarget
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public static interface DropTarget.OnEnter
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    int
    onEnter(double x, double y)
    Emitted on the drop site when the pointer enters the widget.
  • Methodendetails

    • onEnter

      int onEnter(double x, double y)
      Emitted on the drop site when the pointer enters the widget.

      It can be used to set up custom highlighting.
      Parameter:
      x - the x coordinate of the current pointer position
      y - the y coordinate of the current pointer position
      Gibt zurück:
      Preferred action for this drag operation or 0 if dropping is not supported at the current @x,@y location.