Package bibliothek.gui.dock.common.grouping
package bibliothek.gui.dock.common.grouping
-
ClassDescription
CGroupingBehaviorallows clients to define howDockables organize themselves in groups.Default implementation ofCGroupingBehavior, just returnsCDockable.getGrouping().ADockableGroupingis an algorithm that rewrites the location of aDockable, allowing clients to group several dockables together.
While the name of the interface implies that dockables should be grouped together, nothing prevents a client from writing an implementation that does the opposite, e.g.ThisHistoryRewritergets the currentCGroupingBehaviorusing the keyCControl.GROUPING_BEHAVIORfrom itsCControl.When aDockableis about to be moved to a new position, then thisDockableGroupingsearches for a unique identifier, called a "placeholder", which indicates where theDockableshould be placed.
Theplaceholderis placed at the location of theDockable, for whichPlaceholderGrouping.hierarchyChanged(Dockable)was called last.