public class DropCompositeHandler extends Object implements DropHandler<Object,Object>
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,DropHandler> |
handlers |
| Constructor and Description |
|---|
DropCompositeHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected Optional<DropHandler> |
findHandler(String dataType) |
List<String> |
findSupportedTypes()
Returns list of droppable types handled.
|
List<DropOperationData<Object,Object,Object>> |
handleDrop(List<Object> dragged,
Object target,
DragAndDropContext context)
Handles drop operation.
|
protected Optional<DataType> |
loadDataType(String qualifier) |
void |
setHandlers(Map<String,DropHandler> handlers) |
void |
setTypeFacade(TypeFacade typeFacade) |
protected Map<String,DropHandler> handlers
public List<DropOperationData<Object,Object,Object>> handleDrop(List<Object> dragged, Object target, DragAndDropContext context)
DropHandlerhandleDrop in interface DropHandler<Object,Object>dragged - dragged objects.target - target object on which dragged objects are dropped.context - context of drag and drop operation.protected Optional<DropHandler> findHandler(String dataType)
public List<String> findSupportedTypes()
DropHandlerfindSupportedTypes in interface DropHandler<Object,Object>public void setTypeFacade(TypeFacade typeFacade)
public void setHandlers(Map<String,DropHandler> handlers)
Copyright © 2018. All rights reserved.