영어에서 Drag event 을 사용하는 예와 한국어로 번역
{-}
-
Colloquial
-
Ecclesiastic
-
Ecclesiastic
-
Programming
-
Computer
The drag event listener and callback method.
This tells the system to start sending drag events.
Drag events happen when you finally let go of the button.
The system sends out a drag event in the form of a DragEvent object.
When you get a button-down event, a corresponding click or drag event will always follow.
All drag events are initially received by your drag event method or listener.
This tells the system to continue to send drag events to the listener.
The framework includes a drag event class, drag listeners, and helper methods and classes.
Both of these are described in more detail in the section The drag event listener and callback method.
The drag event contains the data that was passed to the system in the call to startDrag() that started the operation.
The system sends the View object's listener a drag event with action type ACTION_DROP.
To continue to receive drag events, including a possible drop event, a drag event listener must return true.
If the user releases the drag shadow in any other situation, no ACTION_DROP drag event is sent.
If the listener wants to continue receiving drag events for this operation, it must return boolean true to the system.
If the drag event listener returns false, then it will not receive drag events for the current operation until the system sends a drag event with action type ACTION_DRAG_ENDED.
During the drag, listeners primarily use drag events to decide if they should change the appearance of their View.
If the user drops the data over a View object, and that View object's listener or callback method has previously told the system that it wants to accept the drop, then the system sends the data to the listener or callback method in a drag event.
A View object's drag event listener receives this event action type when the system is ending the drag operation.
If it can't accept a drop,it should return false, and the system will stop sending drag events until it sends out ACTION_DRAG_ENDED.
A View object's drag event listener receives this event action type when the user releases the drag shadow over the View object.
The event is sent to every listener that is registered to receive drag events, even if the listener received the ACTION_DROP event. .
A View object's drag event listener receives this event action type when the drag shadow has just entered the bounding box of the View.
DragEnter Occurs when the input system reports an underlying drag event with this element as the drag target.
A View object's drag event listener receives this event action type just after the application calls startDrag() and gets a drag shadow.
As the drag shadow intersects the bounding box of a View object, the system sends one or more drag events to the View object's drag event listener(if it is registered to receive events). .
A View object's drag event listener receives this event action type after it receives a ACTION_DRAG_ENTERED event while the drag shadow is still within the bounding box of the View. ACTION_DRAG_EXITED.
Immediately after the userreleases the drag shadow, the system sends a drag event to all of the drag event listeners in your application, with an action type of ACTION_DRAG_ENDED.
When the user releases the drag shadow on a View in the application, and that View previously reported that it could accept the content being dragged, the system dispatches a drag event to that View with the action type ACTION_DROP.
During the drag operation, the system dispatches drag events to the drag event listeners of the View objects in the current layout.
A View object's drag event listener receives this event action type after it receives a ACTION_DRAG_ENTERED and at least one ACTION_DRAG_LOCATION event, and after the user has moved the drag shadow outside the bounding box of the View.