We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.event.dd.acceptcriteria.
Class And
- java.lang.Object
-
- com.vaadin.event.dd.acceptcriteria.ClientSideCriterion
-
- com.vaadin.event.dd.acceptcriteria.And
-
All Implemented Interfaces:
public class And extends ClientSideCriterion
A compound criterion that accepts the drag if all of its criteria accepts the drag.
Since:
6.3
See Also:
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientSideCriterion[]
criteria
-
Constructor Summary
Constructors Constructor Description And(ClientSideCriterion... criteria)
-
Method Summary
All Methods Modifier and Type Method Description boolean
accept(DragAndDropEvent dragEvent)
Validates the data in event to be appropriate for the
DropHandler.drop(DragAndDropEvent)
method.void
paintContent(PaintTarget target)
-
Methods inherited from class com.vaadin.event.dd.acceptcriteria.ClientSideCriterion
getIdentifier, isClientSideVerifiable, paint, paintResponse
-
-
-
-
Field Detail
-
criteria
protected ClientSideCriterion[] criteria
-
-
Constructor Detail
-
And
public And(ClientSideCriterion... criteria)
Parameters:
criteria
- criteria of which the And criterion will be composed
-
-
Method Detail
-
paintContent
public void paintContent(PaintTarget target) throws PaintException
Overrides:
paintContent
in classClientSideCriterion
Throws:
-
accept
public boolean accept(DragAndDropEvent dragEvent)
Description copied from interface:
AcceptCriterion
Validates the data in event to be appropriate for the
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.
Returns:
-
-