com.vaadin.event.dd
Class TargetDetailsImpl

java.lang.Object
  extended by com.vaadin.event.dd.TargetDetailsImpl
All Implemented Interfaces:
TargetDetails, Serializable
Direct Known Subclasses:
AbstractSelect.AbstractSelectTargetDetails, DragAndDropWrapper.WrapperTargetDetails

public class TargetDetailsImpl
extends Object
implements TargetDetails

A HashMap backed implementation of TargetDetails for terminal implementation and for extension.

Since:
6.3
See Also:
Serialized Form

Constructor Summary
protected TargetDetailsImpl(Map<String,Object> rawDropData)
           
  TargetDetailsImpl(Map<String,Object> rawDropData, DropTarget dropTarget)
           
 
Method Summary
 Object getData(String key)
          Gets target data associated with the given string key
 DropTarget getTarget()
           
 Object setData(String key, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TargetDetailsImpl

protected TargetDetailsImpl(Map<String,Object> rawDropData)

TargetDetailsImpl

public TargetDetailsImpl(Map<String,Object> rawDropData,
                         DropTarget dropTarget)
Method Detail

getData

public Object getData(String key)
Description copied from interface: TargetDetails
Gets target data associated with the given string key

Specified by:
getData in interface TargetDetails
Returns:
The data associated with the key

setData

public Object setData(String key,
                      Object value)

getTarget

public DropTarget getTarget()
Specified by:
getTarget in interface TargetDetails
Returns:
the drop target on which the DragAndDropEvent happened.


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