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 accepts Transferable
only 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
get
public static Tree.TargetItemAllowsChildren get()
accept
public boolean accept(DragAndDropEvent dragEvent)
- Description copied from interface:
AcceptCriterion
- Validates the data in event to be appropriate for the
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.
- Specified by:
accept
in interface AcceptCriterion
- Overrides:
accept
in class TargetDetailIs
- Returns:
Copyright © 2000-2010 IT Mill Ltd. All Rights Reserved.