com.javadocking.dockable
Interface DraggableContent

All Known Implementing Classes:
ImageMinimzeHeader, MinimzeHeader

public interface DraggableContent

A Dockable that has an implementation of this interface as content, can be dragged by dragging the content component.

Information on using a draggable content is in How to Use Dockables in The Sanaware Developer Guide.

To make this dragging possible a DragListener should be added as mouse listener and mouse motion listener to this component or deeper components. A possible implementation of addDragListener(DragListener) is:


                this.addMouseListener(dragListener);
                this.addMouseMotionListener(dragListener);

 

Author:
Heidi Rakels.

Method Summary
 void addDragListener(DragListener dragListener)
          Adds the given drag listener as mouse listener and mouse motion listener on the content of this component.
 

Method Detail

addDragListener

void addDragListener(DragListener dragListener)
Adds the given drag listener as mouse listener and mouse motion listener on the content of this component.

Parameters:
dragListener - The drag listener for dragging and docking the dockable with this component as content.