Class Or
- java.lang.Object
-
- com.vaadin.event.dd.acceptcriteria.ClientSideCriterion
-
- com.vaadin.event.dd.acceptcriteria.Or
-
- All Implemented Interfaces:
AcceptCriterion
,Serializable
public class Or extends ClientSideCriterion
A compound criterion that accepts the drag if any of its criterion accepts it.- Since:
- 6.3
- See Also:
And
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Or(ClientSideCriterion... criteria)
-
Method Summary
All 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.void
paintContent(PaintTarget target)
-
Methods inherited from class com.vaadin.event.dd.acceptcriteria.ClientSideCriterion
getIdentifier, isClientSideVerifiable, paint, paintResponse
-
-
-
-
Constructor Detail
-
Or
public Or(ClientSideCriterion... criteria)
- Parameters:
criteria
- the criteria of which the Or criteria will be composed
-
-
Method Detail
-
paintContent
public void paintContent(PaintTarget target) throws PaintException
- Overrides:
paintContent
in classClientSideCriterion
- Throws:
PaintException
-
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:
-
-