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 Form| 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 Tree.TargetItemAllowsChildren |
get() |
getIdentifier, paintContentisClientSideVerifiable, paint, paintResponsepublic static Tree.TargetItemAllowsChildren get()
public 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.
accept in interface AcceptCriterionaccept in class TargetDetailIsCopyright © 2016 Vaadin Ltd. All rights reserved.