public abstract class ServerSideCriterion extends Object implements Serializable, AcceptCriterion
Transferable).
Subclasses should implement the
AcceptCriterion.accept(com.vaadin.event.dd.DragAndDropEvent) method.
As all server side state can be used to make a decision, this is more
flexible than ClientSideCriterion. However, this does require
additional requests from the browser to the server during a drag operation.
AcceptCriterion,
ClientSideCriterion,
Serialized Form| Constructor and Description |
|---|
ServerSideCriterion() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getIdentifier() |
boolean |
isClientSideVerifiable()
Returns whether the criteria can be checked on the client or whether a
server request is needed to check the criteria.
|
void |
paint(PaintTarget target) |
void |
paintContent(PaintTarget target) |
void |
paintResponse(PaintTarget target)
This needs to be implemented iff criterion does some lazy server side
initialization.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptpublic final boolean isClientSideVerifiable()
AcceptCriterionisClientSideVerifiable in interface AcceptCriterionpublic void paint(PaintTarget target) throws PaintException
paint in interface AcceptCriterionPaintExceptionpublic void paintContent(PaintTarget target)
public void paintResponse(PaintTarget target) throws PaintException
AcceptCriterionAcceptCriterion.accept(DragAndDropEvent) is called before this method.paintResponse in interface AcceptCriterionPaintExceptionprotected String getIdentifier()
Copyright © 2019 Vaadin Ltd. All rights reserved.