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 FormConstructor 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, wait
accept
public final boolean isClientSideVerifiable()
AcceptCriterion
isClientSideVerifiable
in interface AcceptCriterion
public void paint(PaintTarget target) throws PaintException
paint
in interface AcceptCriterion
PaintException
public void paintContent(PaintTarget target)
public void paintResponse(PaintTarget target) throws PaintException
AcceptCriterion
AcceptCriterion.accept(DragAndDropEvent)
is called before this method.paintResponse
in interface AcceptCriterion
PaintException
protected String getIdentifier()
Copyright © 2017 Vaadin Ltd. All rights reserved.