public static class AbstractSelect.AcceptItem extends ClientSideCriterion
Transferable
that contains given
Item (practically its identifier) from a specific AbstractSelect.Modifier and Type | Field and Description |
---|---|
static ClientSideCriterion |
ALL
A simple accept criterion which ensures that
Transferable
contains an Item (or actually its identifier). |
Constructor and Description |
---|
AcceptItem(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, paintResponse
public static final ClientSideCriterion ALL
Transferable
contains an Item
(or actually its identifier). In other words
the criterion check that drag is coming from a Container
like
Tree
or Table
.public AcceptItem(AbstractSelect select, Object... itemId)
select
- the select from which the item id's are checkeditemId
- the item identifier(s) of the select that are acceptedpublic 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.
Copyright © 2022 Vaadin Ltd. All rights reserved.