|
||||||||||
| 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.ui.AbstractSelect.TargetItemIs
public static class AbstractSelect.TargetItemIs
Criterion which accepts a drop only if the drop target is (one of) the
given Item identifier(s). Criterion can be used only on a drop targets
that extends AbstractSelect like Table and Tree. The
target and identifiers of valid Items are given in constructor.
| Constructor Summary | |
|---|---|
AbstractSelect.TargetItemIs(AbstractSelect select,
java.lang.Object... itemId)
|
|
| Method Summary | |
|---|---|
boolean |
accept(DragAndDropEvent dragEvent)
Validates the data in event to be appropriate for the DropHandler.drop(DragAndDropEvent) method. |
| 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 |
|---|
public AbstractSelect.TargetItemIs(AbstractSelect select,
java.lang.Object... itemId)
select - the select implementation that is used as a drop targetitemId - the identifier(s) that are valid drop locations| Method Detail |
|---|
public boolean accept(DragAndDropEvent dragEvent)
AcceptCriterionDropHandler.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 | |||||||||