Package com.jbstrap.core.event
Class DropEvent
java.lang.Object
com.jbstrap.core.event.BaseEvent
com.jbstrap.core.event.BrowserEvent
com.jbstrap.core.event.MouseEvent
com.jbstrap.core.event.DropEvent
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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Component<?>
Gets the dropped componentGets the id of the dropped componentMethods inherited from class com.jbstrap.core.event.MouseEvent
getAltKey, getButton, getButtons, getClientX, getClientY, getCtrlKey, getMetaKey, getMovementX, getMovementY, getOffsetX, getOffsetY, getPageX, getPageY, getScreenX, getScreenY, getShiftKey, getWhich
Methods inherited from class com.jbstrap.core.event.BrowserEvent
fireEvent, getBubbles, getCancelable, getClientId, getComposed, getDefaultPrevented, getDetail, getEventPhase, getIsTrusted, getType
Methods inherited from class com.jbstrap.core.event.BaseEvent
getClient, getComponent, getEventId, getEventType, getSenderId
-
Constructor Details
-
DropEvent
public DropEvent()
-
-
Method Details
-
getDroppedComponentId
Gets the id of the dropped component- Returns:
- The id of the dropped component
-
getDroppedComponent
Gets the dropped component- Returns:
- The instance of the dropped component, or
null
if not found on the currentUI
.
-