Class AbstractReferenceDropHandler<DRAGGED,TARGET>
- java.lang.Object
-
- com.hybris.backoffice.cockpitng.dnd.handlers.AbstractReferenceDropHandler<DRAGGED,TARGET>
-
- Type Parameters:
DRAGGED
- dragged objects type.TARGET
- target object type.
- All Implemented Interfaces:
com.hybris.cockpitng.dnd.DropHandler<DRAGGED,TARGET>
- Direct Known Subclasses:
CategoryToCatalogVersionDropHandler
,CategoryToCategoryDropHandler
,ProductToCategoryDropHandler
public abstract class AbstractReferenceDropHandler<DRAGGED,TARGET> extends java.lang.Object implements com.hybris.cockpitng.dnd.DropHandler<DRAGGED,TARGET>
Helper class facilitates implementation of drag and drop handlers. It provides ability to distinguish the type of drag and drop action performed.- See Also:
DragAndDropActionType
-
-
Constructor Summary
Constructors Constructor Description AbstractReferenceDropHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected com.hybris.cockpitng.services.dnd.DragAndDropConfigurationService
getDragAndDropConfigurationService()
protected abstract java.util.List<com.hybris.cockpitng.dnd.DropOperationData<DRAGGED,TARGET,java.lang.Object>>
handleAppend(java.util.List<DRAGGED> dragged, TARGET target, com.hybris.cockpitng.dnd.DragAndDropContext context)
Returns the result of appending of the dragged object to the target.java.util.List<com.hybris.cockpitng.dnd.DropOperationData<DRAGGED,TARGET,java.lang.Object>>
handleDrop(java.util.List<DRAGGED> dragged, TARGET target, com.hybris.cockpitng.dnd.DragAndDropContext context)
protected abstract java.util.List<com.hybris.cockpitng.dnd.DropOperationData<DRAGGED,TARGET,java.lang.Object>>
handleReplace(java.util.List<DRAGGED> dragged, TARGET target, com.hybris.cockpitng.dnd.DragAndDropContext context)
Returns the result of replacing of the dragged object in the target.protected com.hybris.cockpitng.dnd.DragAndDropActionType
resolveActionType(com.hybris.cockpitng.dnd.DragAndDropContext context)
void
setDragAndDropConfigurationService(com.hybris.cockpitng.services.dnd.DragAndDropConfigurationService dragAndDropConfigurationService)
-
-
-
Method Detail
-
handleDrop
public java.util.List<com.hybris.cockpitng.dnd.DropOperationData<DRAGGED,TARGET,java.lang.Object>> handleDrop(java.util.List<DRAGGED> dragged, TARGET target, com.hybris.cockpitng.dnd.DragAndDropContext context)
-
resolveActionType
protected com.hybris.cockpitng.dnd.DragAndDropActionType resolveActionType(com.hybris.cockpitng.dnd.DragAndDropContext context)
-
handleAppend
protected abstract java.util.List<com.hybris.cockpitng.dnd.DropOperationData<DRAGGED,TARGET,java.lang.Object>> handleAppend(java.util.List<DRAGGED> dragged, TARGET target, com.hybris.cockpitng.dnd.DragAndDropContext context)
Returns the result of appending of the dragged object to the target.- Parameters:
dragged
- dragged objects.target
- target object on which dragged objects are dropped.context
- context of drag&drop operation.
-
handleReplace
protected abstract java.util.List<com.hybris.cockpitng.dnd.DropOperationData<DRAGGED,TARGET,java.lang.Object>> handleReplace(java.util.List<DRAGGED> dragged, TARGET target, com.hybris.cockpitng.dnd.DragAndDropContext context)
Returns the result of replacing of the dragged object in the target.- Parameters:
dragged
- dragged objects.target
- target object on which dragged objects are dropped.context
- context of drag&drop operation.
-
getDragAndDropConfigurationService
protected com.hybris.cockpitng.services.dnd.DragAndDropConfigurationService getDragAndDropConfigurationService()
-
setDragAndDropConfigurationService
public void setDragAndDropConfigurationService(com.hybris.cockpitng.services.dnd.DragAndDropConfigurationService dragAndDropConfigurationService)
-
-