When a dockable is associated to a DockGroup (via its DockKey) drag and drop operations are limited to dockables of the same group (or new location) or compatible group (a group with a common ancestor see {@link #isCompatibleGroup(DockGroup)} ).
It becomes easy to develop, for example, and MDI program : all documents are given the same DockGroup, and other dockable are given another group so they don't mess with each other.
The DockGroups can be nested to allow some mixing (for example, an editor application can consist of 4 groups : "Formaters" and "Files" the parent of "TextFiles" and "HTMLfile". In that case, Textfiles and Htmlfiles can be part of tha same tabbed container whereas Formaters are kept outside. @see DockKey#setDockGroup(DockGroup) @author Lilian Chamontin, VLSolutions @since 2.0
|
|