|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.event.dd.acceptcriteria.ClientSideCriterion
com.vaadin.event.dd.acceptcriteria.And
public class And
A compound criterion that accepts the drag if all of its criteria accepts the drag.
Or
,
Serialized FormField Summary | |
---|---|
protected ClientSideCriterion[] |
criteria
|
Constructor Summary | |
---|---|
And(ClientSideCriterion... criteria)
|
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 |
Field Detail |
---|
protected ClientSideCriterion[] criteria
Constructor Detail |
---|
public And(ClientSideCriterion... criteria)
criteria
- criteria of which the And criterion will be composedMethod Detail |
---|
public void paintContent(PaintTarget target) throws PaintException
paintContent
in class ClientSideCriterion
PaintException
public 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |