Class DropEvent


public class DropEvent extends MouseEvent
This class contains the data of the drop event. These are the following:
  • The client on which the event occurred
  • The ID of the component on which the event occurred
  • The event type
  • The instance of the component, on which the event occurred
  • The event's unique ID
  • If the ALT button was held down during the event
  • If the CONTROL button was held down during the event
  • If the Meta button was held down during the event
  • If the SHIFT button was held down during the event
  • Which mouse button was held down during the event
  • The position of the mouse cursor, relative to the client area
  • The position of the mouse cursor, relative to the previous MouseMove event
  • The position of the mouse cursor, relative to the component area.
  • The position of the mouse cursor, relative to the page
  • The position of the mouse cursor, relative to the screen
  • The id of the dropped component
  • The instance of the dropped component
Since:
4.0
Author:
JBStrap
  • Constructor Details

    • DropEvent

      public DropEvent()
  • Method Details

    • getDroppedComponentId

      public String getDroppedComponentId()
      Gets the id of the dropped component
      Returns:
      The id of the dropped component
    • getDroppedComponent

      public final Component<?> getDroppedComponent()
      Gets the dropped component
      Returns:
      The instance of the dropped component, or null if not found on the current UI.