|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.event.dd.acceptcriteria.ClientSideCriterion
com.vaadin.event.dd.acceptcriteria.TargetDetailIs
com.vaadin.ui.Tree.TargetItemAllowsChildren
public static class Tree.TargetItemAllowsChildren
A criterion that accepts 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 FormMethod Summary | |
---|---|
boolean |
accept(DragAndDropEvent dragEvent)
Validates the data in event to be appropriate for the DropHandler.drop(DragAndDropEvent) method. |
static Tree.TargetItemAllowsChildren |
get()
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |