public class SourceIsTarget extends ClientSideCriterion
Table
could support only re-ordering of items, but no
Transferable
s 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, paintResponse
public boolean accept(DragAndDropEvent dragEvent)
AcceptCriterion
DropHandler.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 © 2021 Vaadin Ltd. All rights reserved.