com.vaadin.event.dd
Interface TargetDetails

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

public interface TargetDetails
extends java.io.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
 java.lang.Object getData(java.lang.String key)
          Gets target data associated with the given string key
 DropTarget getTarget()
           
 

Method Detail

getData

java.lang.Object getData(java.lang.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-2014 Vaadin Ltd. All Rights Reserved.