*
* Example is pretty stupid (accepts drop on all nodes, but by
* explicitly defining them here), but demonstrates lazy initialization
* option if rules are heavy.
*/
final AcceptCriterion crit = new Tree.TreeDropCriterion() {
@Override
protected Set<Object> getAllowedItemIds(DragAndDropEvent dragEvent,
Tree tree) {
return new HashSet<Object>(tree.getItemIds());