com.allen_sauer.gwt.dnd.demo.client.example.resetcache
Class TabSelectingDropController

java.lang.Object
  extended by com.allen_sauer.gwt.dnd.client.drop.AbstractDropController
      extended by com.allen_sauer.gwt.dnd.demo.client.example.resetcache.TabSelectingDropController
All Implemented Interfaces:
DropController

public class TabSelectingDropController
extends AbstractDropController


Constructor Summary
TabSelectingDropController(com.google.gwt.user.client.ui.Widget tabWidgetDropTarget, com.google.gwt.user.client.ui.TabPanel tabPanel, int tabIndex)
           
 
Method Summary
 void onDrop(DragContext context)
          Called when the draggable widget or its proxy is dropped on our drop target.
 void onEnter(DragContext context)
          Called when the draggable widget or its proxy engages our drop target.
 
Methods inherited from class com.allen_sauer.gwt.dnd.client.drop.AbstractDropController
getDropTarget, onLeave, onMove, onPreviewDrop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabSelectingDropController

public TabSelectingDropController(com.google.gwt.user.client.ui.Widget tabWidgetDropTarget,
                                  com.google.gwt.user.client.ui.TabPanel tabPanel,
                                  int tabIndex)
Method Detail

onDrop

public void onDrop(DragContext context)
Description copied from interface: DropController
Called when the draggable widget or its proxy is dropped on our drop target. Implementing classes must attach the draggable widget to our drop target in a suitable manner.

Specified by:
onDrop in interface DropController
Overrides:
onDrop in class AbstractDropController
Parameters:
context - the current drag context
See Also:
DropController.onPreviewDrop(DragContext)

onEnter

public void onEnter(DragContext context)
Description copied from interface: DropController
Called when the draggable widget or its proxy engages our drop target. This occurs when the widget area and the drop target area intersect and there are no drop targets which are descendants of our drop target which also intersect with the widget. If there are, the widget engages with the descendant drop target instead.

Specified by:
onEnter in interface DropController
Overrides:
onEnter in class AbstractDropController
Parameters:
context - the current drag context
See Also:
DropController.onLeave(DragContext)