Package com.vaadin.v7.ui
Class Tree.TargetInSubtree
- java.lang.Object
-
- com.vaadin.event.dd.acceptcriteria.ClientSideCriterion
-
- com.vaadin.v7.ui.Tree.TargetInSubtree
-
- All Implemented Interfaces:
com.vaadin.event.dd.acceptcriteria.AcceptCriterion
,java.io.Serializable
- Enclosing class:
- Tree
@Deprecated public class Tree.TargetInSubtree extends com.vaadin.event.dd.acceptcriteria.ClientSideCriterion
Deprecated.An accept criterion that checks the parent node (or parent hierarchy) for the item identifier given in constructor. If the parent is found, content is accepted. Criterion can be used to accepts drags on a specific sub tree only.The root items is also consider to be valid target.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TargetInSubtree(java.lang.Object parentItemId)
Deprecated.Constructs a criteria that accepts the drag if the targeted Item is a descendant of Item identified by given id.TargetInSubtree(java.lang.Object rootId, int depthToCheck)
Deprecated.Constructs a criteria that accepts drops within given level below the subtree root identified by given id.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
accept(com.vaadin.event.dd.DragAndDropEvent dragEvent)
Deprecated.void
paintContent(com.vaadin.server.PaintTarget target)
Deprecated.
-
-
-
Constructor Detail
-
TargetInSubtree
public TargetInSubtree(java.lang.Object parentItemId)
Deprecated.Constructs a criteria that accepts the drag if the targeted Item is a descendant of Item identified by given id.- Parameters:
parentItemId
- the item identifier of the parent node
-
TargetInSubtree
public TargetInSubtree(java.lang.Object rootId, int depthToCheck)
Deprecated.Constructs a criteria that accepts drops within given level below the subtree root identified by given id.- Parameters:
rootId
- the item identifier to be sought fordepthToCheck
- the depth that tree is traversed upwards to seek for the parent, -1 means that the whole structure should be checked
-
-
Method Detail
-
accept
public boolean accept(com.vaadin.event.dd.DragAndDropEvent dragEvent)
Deprecated.
-
paintContent
public void paintContent(com.vaadin.server.PaintTarget target) throws com.vaadin.server.PaintException
Deprecated.- Overrides:
paintContent
in classcom.vaadin.event.dd.acceptcriteria.ClientSideCriterion
- Throws:
com.vaadin.server.PaintException
-
-