com.javadocking.drag
Class DefaultDragListenerFactory

java.lang.Object
  extended by com.javadocking.drag.DefaultDragListenerFactory
All Implemented Interfaces:
DragListenerFactory

public class DefaultDragListenerFactory
extends java.lang.Object
implements DragListenerFactory

This drag listener factory returns a DefaultDragListener as drag listener.

Author:
Heidi Rakels.

Constructor Summary
DefaultDragListenerFactory()
           
 
Method Summary
 DragListener createDragListener(Dockable dockable)
          Creates a drag listener for the given dockable.
 DragListener createDragListener(LeafDock dock)
          Creates a drag listener for the given dock.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDragListenerFactory

public DefaultDragListenerFactory()
Method Detail

createDragListener

public DragListener createDragListener(LeafDock dock)
Description copied from interface: DragListenerFactory
Creates a drag listener for the given dock.

Specified by:
createDragListener in interface DragListenerFactory
Parameters:
dock - The drag listener will listen to drag events on this dock.
Returns:
The drag listener.

createDragListener

public DragListener createDragListener(Dockable dockable)
Description copied from interface: DragListenerFactory
Creates a drag listener for the given dockable.

Specified by:
createDragListener in interface DragListenerFactory
Parameters:
dockable - The drag listener will listen to drag events of this dockable.
Returns:
The drag listener.