|
||||||||||
| 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.AcceptItem
public static class AbstractSelect.AcceptItem
This criterion accepts a only a Transferable that contains given
Item (practically its identifier) from a specific AbstractSelect.
| Field Summary | |
|---|---|
static ClientSideCriterion |
ALL
A simple accept criterion which ensures that Transferable
contains an Item (or actually its identifier). |
| Constructor Summary | |
|---|---|
AbstractSelect.AcceptItem(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 |
| Field Detail |
|---|
public static final ClientSideCriterion ALL
Transferable
contains an Item (or actually its identifier). In other words
the criterion check that drag is coming from a Container like
Tree or Table.
| Constructor Detail |
|---|
public AbstractSelect.AcceptItem(AbstractSelect select,
java.lang.Object... itemId)
select - the select from which the item id's are checkeditemId - the item identifier(s) of the select that are accepted| 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 | |||||||||