com.vaadin.event.dd
Interface TargetDetails

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractSelect.AbstractSelectTargetDetails, DragAndDropWrapper.WrapperTargetDetails, TargetDetailsImpl, Tree.TreeTargetDetails

public interface TargetDetails
extends Serializable

TargetDetails wraps drop target related information about DragAndDropEvent.

When a TargetDetails object is used in DropHandler it is often preferable to cast the TargetDetails to an implementation provided by DropTarget like Tree.TreeTargetDetails. They often provide a better typed, drop target specific API.

Since:
6.3

Method Summary
 Object getData(String key)
          Gets target data associated with the given string key
 DropTarget getTarget()
           
 

Method Detail

getData

Object getData(String key)
Gets target data associated with the given string key

Parameters:
key -
Returns:
The data associated with the key

getTarget

DropTarget getTarget()
Returns:
the drop target on which the DragAndDropEvent happened.


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.