com.allen_sauer.gwt.dnd.demo.client.example
Class DraggableFactory

java.lang.Object
  extended by com.allen_sauer.gwt.dnd.demo.client.example.DraggableFactory

public class DraggableFactory
extends java.lang.Object

Shared utility methods to produce draggable widgets.


Constructor Summary
DraggableFactory()
           
 
Method Summary
static com.google.gwt.user.client.ui.Widget createDraggablePumpkinImage(DragController dragController)
          Create a new draggable pumpkin image.
static com.google.gwt.user.client.ui.Widget createDraggableRedBox(DragController dragController)
          Create a new draggable red box widget.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DraggableFactory

public DraggableFactory()
Method Detail

createDraggablePumpkinImage

public static com.google.gwt.user.client.ui.Widget createDraggablePumpkinImage(DragController dragController)
Create a new draggable pumpkin image.

Parameters:
dragController - the drag controller
Returns:
the new widget

createDraggableRedBox

public static com.google.gwt.user.client.ui.Widget createDraggableRedBox(DragController dragController)
Create a new draggable red box widget.

Parameters:
dragController - the drag controller
Returns:
the new widget