Class AcceptAll
- java.lang.Object
-
- com.vaadin.event.dd.acceptcriteria.ClientSideCriterion
-
- com.vaadin.event.dd.acceptcriteria.AcceptAll
-
- All Implemented Interfaces:
AcceptCriterion
,Serializable
public final class AcceptAll extends ClientSideCriterion
Criterion that accepts all drops anywhere on the component.Note! Class is singleton, use
get()
method to get the instance.- Since:
- 6.3
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(DragAndDropEvent dragEvent)
Validates the data in event to be appropriate for theDropHandler.drop(DragAndDropEvent)
method.static AcceptCriterion
get()
-
Methods inherited from class com.vaadin.event.dd.acceptcriteria.ClientSideCriterion
getIdentifier, isClientSideVerifiable, paint, paintContent, paintResponse
-
-
-
-
Method Detail
-
get
public static AcceptCriterion get()
-
accept
public boolean accept(DragAndDropEvent dragEvent)
Description copied from interface:AcceptCriterion
Validates the data in event to be appropriate for theDropHandler.drop(DragAndDropEvent)
method.Note that even if your criterion is validated on client side, you should always validate the data on server side too.
- Returns:
-
-