Class DragOverEvent
java.lang.Object
com.oorian.messaging.events.Event<DragDropListener>
com.oorian.messaging.events.client.ClientEvent<DragDropListener>
com.oorian.messaging.events.client.DragOverEvent
Event fired continuously while a dragged element is over a valid drop target.
This event carries the payload element being dragged, allowing the drop target to inspect the dragged content and provide visual feedback.
-
Constructor Summary
ConstructorsConstructorDescriptionDragOverEvent(Element payload) Creates a DragOverEvent with the specified payload element. -
Method Summary
Modifier and TypeMethodDescriptionvoiddispatchTo(DragDropListener listener) Dispatches this event to the specified listener.Returns the element being dragged.Methods inherited from class com.oorian.messaging.events.client.ClientEvent
getSource, getTarget, setSource, setTarget
-
Constructor Details
-
DragOverEvent
Creates a DragOverEvent with the specified payload element.- Parameters:
payload- the element being dragged over the drop target
-
-
Method Details
-
getPayload
Returns the element being dragged.- Returns:
- the dragged payload element
-
dispatchTo
Dispatches this event to the specified listener.Subclasses implement this method to call the appropriate handler method on the listener interface.
- Specified by:
dispatchToin classEvent<DragDropListener>- Parameters:
listener- the listener to dispatch this event to
-