Class CLayoutChangeStrategy
java.lang.Object
bibliothek.gui.dock.frontend.DefaultLayoutChangeStrategy
bibliothek.gui.dock.common.intern.layout.CLayoutChangeStrategy
- All Implemented Interfaces:
LayoutChangeStrategy
Strategy that pays attention to
MultipleCDockableFactory.match(bibliothek.gui.dock.common.MultipleCDockable, bibliothek.gui.dock.common.MultipleCDockableLayout)
and that fires CVetoClosingEvents for MultipleCDockables as well.- Author:
- Benjamin Sigg
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classADefaultLayoutChangeStrategy.SettingAccessthat modifies the roots by callingreplaceMultipleDockables(DockFrontendInternals, CSettingAccess, DockLayoutComposition).Nested classes/interfaces inherited from class bibliothek.gui.dock.frontend.DefaultLayoutChangeStrategy
DefaultLayoutChangeStrategy.SettingAccess -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAccess(DockFrontendInternals frontend, Setting setting) protected PredefinedDockSituationcreateSituation(DockFrontendInternals frontend, boolean entry, boolean onSetLayout) estimateVisible(DockFrontendInternals frontend, DockSituation situation, DockLayoutComposition layout) protected Collection<Dockable>getClosingDockables(DockFrontendInternals frontend, Set<Dockable> visible) protected DockLayoutCompositionreplaceMultipleDockables(DockFrontendInternals frontend, CLayoutChangeStrategy.CSettingAccess setting, DockLayoutComposition composition) Checks theDockLayoutthat is associated withcompositionand may replace the layout by another layout if aMultipleCDockableFactoryfinds a match between an existing item and meta-data about an item.protected booleanshouldPredefine(Dockable dockable) Methods inherited from class bibliothek.gui.dock.frontend.DefaultLayoutChangeStrategy
applyInvisibleLayout, applyLayout, approveClosing, createPerspective, createSituation, createTransformer, estimateLocations, getPlaceholderStrategy, listEstimateLocations, listLayouts, setLayout, shouldUpdateLayoutOnAdd
-
Constructor Details
-
CLayoutChangeStrategy
Creates a new strategy.- Parameters:
control- the control in whose realm this strategy will be used
-
-
Method Details
-
createSituation
protected PredefinedDockSituation createSituation(DockFrontendInternals frontend, boolean entry, boolean onSetLayout) - Overrides:
createSituationin classDefaultLayoutChangeStrategy
-
shouldPredefine
- Overrides:
shouldPredefinein classDefaultLayoutChangeStrategy
-
estimateVisible
protected Set<Dockable> estimateVisible(DockFrontendInternals frontend, DockSituation situation, DockLayoutComposition layout) - Overrides:
estimateVisiblein classDefaultLayoutChangeStrategy
-
getClosingDockables
protected Collection<Dockable> getClosingDockables(DockFrontendInternals frontend, Set<Dockable> visible) - Overrides:
getClosingDockablesin classDefaultLayoutChangeStrategy
-
replaceMultipleDockables
protected DockLayoutComposition replaceMultipleDockables(DockFrontendInternals frontend, CLayoutChangeStrategy.CSettingAccess setting, DockLayoutComposition composition) Checks theDockLayoutthat is associated withcompositionand may replace the layout by another layout if aMultipleCDockableFactoryfinds a match between an existing item and meta-data about an item.- Parameters:
frontend- the caller of this methodsetting- the layout that is about to be appliedcomposition- the composition to modify, may benull- Returns:
- the replacement composition or
null
-
createAccess
protected DefaultLayoutChangeStrategy.SettingAccess createAccess(DockFrontendInternals frontend, Setting setting) - Overrides:
createAccessin classDefaultLayoutChangeStrategy
-