Interface IDropDelegate
-
public interface IDropDelegate
A handler of drop events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isCopyAction()
Checks the type of action that being processed.boolean
isDropAsSibling(Collection<TransferObject<?>> transferObjects, DropEvent event)
Checks whether the selection will be dropped as a sibling of a target form element or as its child.boolean
isDropSupported(Collection<TransferObject<?>> transferObjects, DropEvent event)
Checks whether this drop delegate supports drop of the specified selection.void
process(Collection<TransferObject<?>> transferObjects, DropEvent event)
Processes specified drop event.
-
-
-
Method Detail
-
isDropSupported
boolean isDropSupported(Collection<TransferObject<?>> transferObjects, DropEvent event)
Checks whether this drop delegate supports drop of the specified selection.- Parameters:
transferObjects
- the collection of the objects to be dropped, cannot benull
event
- the drop target event, cannot benull
- Returns:
true
if drop supported,false
otherwise
-
process
void process(Collection<TransferObject<?>> transferObjects, DropEvent event)
Processes specified drop event.- Parameters:
transferObjects
- the collection of the objects to be dropped, cannot benull
event
- the drop target event, cannot benull
-
isDropAsSibling
boolean isDropAsSibling(Collection<TransferObject<?>> transferObjects, DropEvent event)
Checks whether the selection will be dropped as a sibling of a target form element or as its child. It can be used to set feedback position inDropTargetListener#dragOver(DropEvent)
.- Parameters:
transferObjects
- the collection of the objects to be dropped, cannot benull
event
- the drop target event, cannot benull
- Returns:
true
if selection will be inserted as a sibling,false
if as child
-
isCopyAction
boolean isCopyAction()
Checks the type of action that being processed.- Returns:
true
if the copy action being processed for the selection, otherwisefalse
-
-