public static class AbstractSelect.TargetItemIs extends ClientSideCriterion
Table and Tree. The
target and identifiers of valid Items are given in constructor.| Constructor and Description |
|---|
TargetItemIs(AbstractSelect select,
Object... itemId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(DragAndDropEvent dragEvent)
Validates the data in event to be appropriate for the
DropHandler.drop(DragAndDropEvent) method. |
getIdentifier, isClientSideVerifiable, paint, paintResponsepublic TargetItemIs(AbstractSelect select, Object... itemId)
select - the select implementation that is used as a drop targetitemId - the identifier(s) that are valid drop locationspublic boolean accept(DragAndDropEvent dragEvent)
AcceptCriterionDropHandler.drop(DragAndDropEvent) method.
Note that even if your criterion is validated on client side, you should always validate the data on server side too.
Copyright © 2016 Vaadin Ltd. All rights reserved.