Copyright © 2004 Christopher M Butler This work is licensed under a Creative Commons License.
Eleritec Docking Framework Tutorial
Overview A Simple Dockable Demo
Keeping Things Simple
The docking process is designed to be non-invasive with respect to application code. This is to say that, aside from implementing the Dockable and DockingPort interfaces, there is a minimum of supporting code required to enable docking. Furthermore, in some cases, the Dockable interface itself may be completely foregone in favor of allowing the DockingManager wrap dockable components within a DefaultComponentWrapper (a Dockable instance) automatically. In terms of drag initiation, no supporting listener management need be added to application code. Both overloaded static registerDockable() methods on the DockingManager class take care of listener management transparently.

With respect to implementing the DockingPort interface, a DefaultDockingPort class has been provided. Docking, at this point, becomes as simple as adding a DefaultDockingPort to a Container, placing a Dockable or plain Component somewhere else, registering the dockable component via DockingManager.registerDockable(), and dragging the dockable component over to the DockingPort.
Overview A Simple Dockable Demo