Package com.vaadin.ui
Class Tree.TargetItemAllowsChildren
- java.lang.Object
-
- com.vaadin.event.dd.acceptcriteria.ClientSideCriterion
-
- com.vaadin.event.dd.acceptcriteria.TargetDetailIs
-
- com.vaadin.ui.Tree.TargetItemAllowsChildren
-
- All Implemented Interfaces:
AcceptCriterion,Serializable
- Enclosing class:
- Tree
public static class Tree.TargetItemAllowsChildren extends TargetDetailIs
A criterion that acceptsTransferableonly directly on a tree node that can have children.Class is singleton, use
get()to get the instance.- Since:
- 6.3
- See Also:
Tree.setChildrenAllowed(Object, boolean), Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(DragAndDropEvent dragEvent)Validates the data in event to be appropriate for theDropHandler.drop(DragAndDropEvent)method.static Tree.TargetItemAllowsChildrenget()-
Methods inherited from class com.vaadin.event.dd.acceptcriteria.TargetDetailIs
getIdentifier, paintContent
-
Methods inherited from class com.vaadin.event.dd.acceptcriteria.ClientSideCriterion
isClientSideVerifiable, paint, paintResponse
-
-
-
-
Method Detail
-
get
public static Tree.TargetItemAllowsChildren get()
-
accept
public boolean accept(DragAndDropEvent dragEvent)
Description copied from interface:AcceptCriterionValidates the data in event to be appropriate for theDropHandler.drop(DragAndDropEvent)method.Note that even if your criterion is validated on client side, you should always validate the data on server side too.
- Specified by:
acceptin interfaceAcceptCriterion- Overrides:
acceptin classTargetDetailIs- Returns:
-
-