|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vaadin.terminal.gwt.client.ui.dd.VAbstractDropHandler com.vaadin.terminal.gwt.client.ui.table.VScrollTable.VScrollTableDropHandler
public class VScrollTable.VScrollTableDropHandler
Constructor Summary | |
---|---|
VScrollTable.VScrollTableDropHandler()
|
Method Summary | |
---|---|
protected void |
dragAccepted(VDragEvent drag)
This method is called when a valid drop location was found with AcceptCriterion either via client or server side check. |
void |
dragEnter(VDragEvent drag)
The default implementation in VAbstractDropHandler checks if the
Transferable is accepted. |
void |
dragLeave(VDragEvent drag)
Default implementation does nothing. |
void |
dragOver(VDragEvent drag)
Default implementation does nothing. |
boolean |
drop(VDragEvent drag)
The default implemmentation visits server if AcceptCriterion
can't be verified on client or if AcceptCriterion are met on
client. |
ApplicationConnection |
getApplicationConnection()
Returns the application connection to which this VDropHandler
belongs to. |
ComponentConnector |
getConnector()
Returns the Paintable who owns this VAbstractDropHandler . |
Methods inherited from class com.vaadin.terminal.gwt.client.ui.dd.VAbstractDropHandler |
---|
updateAcceptRules, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VScrollTable.VScrollTableDropHandler()
Method Detail |
---|
public void dragEnter(VDragEvent drag)
VAbstractDropHandler
VAbstractDropHandler
checks if the
Transferable is accepted.
If transferable is accepted (either via server visit or client side
rules) the default implementation calls abstract
VAbstractDropHandler.dragAccepted(VDragEvent)
method.
If drop handler has distinct places where some parts may accept the
Transferable
and others don't, one should use similar validation
logic in dragOver method and replace this method with empty
implementation.
dragEnter
in interface VDropHandler
dragEnter
in class VAbstractDropHandler
drag
- DragEvent which contains the transferable and other
information for the operationpublic void dragOver(VDragEvent drag)
VAbstractDropHandler
dragOver
in interface VDropHandler
dragOver
in class VAbstractDropHandler
public void dragLeave(VDragEvent drag)
VAbstractDropHandler
dragLeave
in interface VDropHandler
dragLeave
in class VAbstractDropHandler
drag
- DragEvent which contains the transferable and other
information for the operationpublic boolean drop(VDragEvent drag)
VAbstractDropHandler
AcceptCriterion
can't be verified on client or if AcceptCriterion
are met on
client.
drop
in interface VDropHandler
drop
in class VAbstractDropHandler
protected void dragAccepted(VDragEvent drag)
VAbstractDropHandler
AcceptCriterion
either via client or server side check.
Implementations can set some hints for users here to highlight that the drag is on a valid drop location.
dragAccepted
in class VAbstractDropHandler
public ComponentConnector getConnector()
VAbstractDropHandler
VAbstractDropHandler
. Server
side counterpart of the Paintable is expected to implement
DropTarget
interface.
getConnector
in interface VDropHandler
getConnector
in class VAbstractDropHandler
public ApplicationConnection getApplicationConnection()
VDropHandler
VDropHandler
belongs to. DragAndDropManager uses this fucction to send Transferable to
server side.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |