Interface IDropDelegate

All Known Implementing Classes:
AbstractMoveCommandInterfaceByCommandDropDelegate, CopyAttributeColumnDropDelegate, CopyAttributeDropDelegate, CopyDropDelegate, CopyFormCommandDropDelegate, CopyFormItemByMoveFormItemDropDelegate, CopyFormItemByPasteFormItemDropDelegate, CopyFormItemOnWysiwygByMoveFormItemDropDelegate, CopyParameterDropDelegate, CopyToExternalFormByFormItemDropDelegate, CreateButtonByCommandDropDelegate, CreateButtonByIndependentCommandDropDelegate, CreateButtonByParameterizedCommandDropDelegate, CreateButtonByParameterizedCommandPathDropDelegate, CreateButtonByPasteCommandDropDelegate, CreateButtonByPasteParameterizedCommandDropDelegate, CreateButtonOnWysiwygByCommandDropDelegate, CreateButtonOnWysiwygByIndependentCommandDropDelegate, CreateButtonOnWysiwygByParameterizedCommandDropDelegate, CreateButtonOnWysiwygByParameterizedCommandPathDropDelegate, CreateCommandInterfaceItemByCommandDropDelegate, CreateCommandInterfaceItemByIndependentCommandDropDelegate, CreateCommandInterfaceItemByParameterizedCommandDopDelegate, CreateCommandInterfaceItemByParameterizedCommandPathDropDelegate, CreateCommandInterfaceItemByParameterizedObjectDropDelegate, CreateCommandInterfaceItemByPasteCommandDropDelegate, CreateCommandInterfaceItemByPasteParameterizedCommandDropDelegate, CreateCommandInterfaceItemDropDelegate, CreateFormItemByFormItemDropDelegate, CreateFormItemByPastePropertyInfoDropDelegate, CreateFormItemByPropertyInfoDropDelegate, CreateFormItemOnWysiwygByPropertyInfoDropDelegate, DropDelegateBase, FormEntityDropDelegate, FormItemDropDelegate, MoveCommandInterfaceAutoCommandDropDelegate, MoveCommandInterfaceItemDropDelegate, MoveFormItemDropDelegate, MoveFormItemFromWysiwygDropDelegate, MoveFormItemToWysiwygDropDelegate, MoveFormItemWysiwygDropDelegate, MoveFormItemWysiwygToWysiwygDropDelegate

public interface IDropDelegate
A handler of drop events.
  • Method Details

    • 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 be null
      event - the drop target event, cannot be null
      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 be null
      event - the drop target event, cannot be null
    • 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 in DropTargetListener#dragOver(DropEvent).
      Parameters:
      transferObjects - the collection of the objects to be dropped, cannot be null
      event - the drop target event, cannot be null
      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, otherwise false