public static class Tree.TargetItemAllowsChildren extends TargetDetailIs
Transferable
only directly on a tree
node that can have children.
Class is singleton, use get()
to get the
instance.
Tree.setChildrenAllowed(Object, boolean)
,
Serialized FormModifier and Type | Method and Description |
---|---|
boolean |
accept(DragAndDropEvent dragEvent)
Validates the data in event to be appropriate for the
DropHandler.drop(DragAndDropEvent) method. |
static Tree.TargetItemAllowsChildren |
get() |
getIdentifier, paintContent
isClientSideVerifiable, paint, paintResponse
public static Tree.TargetItemAllowsChildren get()
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.
accept
in interface AcceptCriterion
accept
in class TargetDetailIs
Copyright © 2021 Vaadin Ltd. All rights reserved.