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 Not
java.lang.Object
com.vaadin.event.dd.acceptcriteria.ClientSideCriterion
com.vaadin.event.dd.acceptcriteria.Not
All Implemented Interfaces:
- extends ClientSideCriterion
public class Not
Criterion that wraps another criterion and inverts its return value.
Since:
6.3
See Also:
Constructor Summary | |
---|---|
Not(ClientSideCriterion acceptCriterion)
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
Not
public Not(ClientSideCriterion acceptCriterion)
Method Detail |
---|
paintContent
public void paintContent(PaintTarget target)
throws PaintException
- Overrides:
paintContent
in classClientSideCriterion
- Throws:
PaintException
accept
public boolean accept(DragAndDropEvent dragEvent)
- Returns:
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.