com.javadocking.drag
Class DynamicDraggerFactory

java.lang.Object
  extended by com.javadocking.drag.DynamicDraggerFactory
All Implemented Interfaces:
DraggerFactory

public class DynamicDraggerFactory
extends java.lang.Object
implements DraggerFactory

This dragger factory creates draggers that remove and add the dragged Dockables to new Docks dynamically during dragging.

Author:
Heidi Rakels.

Constructor Summary
DynamicDraggerFactory()
           
 
Method Summary
 Dragger createDragger(Dock dock)
          It creates for a TabDock a DynamicTabDragger.
 Dragger createDragger(Dockable dockable)
          It creates a DynamicDragger.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicDraggerFactory

public DynamicDraggerFactory()
Method Detail

createDragger

public Dragger createDragger(Dock dock)
It creates for a TabDock a DynamicTabDragger. For other types of docks a DynamicDragger is returned.

Specified by:
createDragger in interface DraggerFactory
Parameters:
dock - The dock for which a dragger should be created.
Returns:
The created dragger.

createDragger

public Dragger createDragger(Dockable dockable)
It creates a DynamicDragger.

Specified by:
createDragger in interface DraggerFactory
Parameters:
dockable - The dockable for which a dragger should be created.
Returns:
The created dragger.