public class SourceIsTarget extends ClientSideCriterion
Tree or Table could support only re-ordering of items, but no
Transferables coming outside.
Note! Class is singleton, use get() method to get the instance.
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(DragAndDropEvent dragEvent)
Validates the data in event to be appropriate for the
DropHandler.drop(DragAndDropEvent) method. |
static SourceIsTarget |
get() |
getIdentifier, isClientSideVerifiable, paint, paintContent, paintResponsepublic boolean accept(DragAndDropEvent dragEvent)
AcceptCriterionDropHandler.drop(DragAndDropEvent) method.
Note that even if your criterion is validated on client side, you should always validate the data on server side too.
public static SourceIsTarget get()
Copyright © 2022 Vaadin Ltd. All rights reserved.