@FrameworkOnly public class CLayoutChangeStrategy extends DefaultLayoutChangeStrategy
MultipleCDockableFactory.match(bibliothek.gui.dock.common.MultipleCDockable, bibliothek.gui.dock.common.MultipleCDockableLayout)
and that fires CVetoClosingEvents for MultipleCDockables as well.| Modifier and Type | Class and Description |
|---|---|
protected class |
CLayoutChangeStrategy.CSettingAccess
A
DefaultLayoutChangeStrategy.SettingAccess that modifies the roots by calling
replaceMultipleDockables(DockFrontendInternals, CSettingAccess, DockLayoutComposition). |
DefaultLayoutChangeStrategy.SettingAccess| Constructor and Description |
|---|
CLayoutChangeStrategy(CControl control)
Creates a new strategy.
|
| Modifier and Type | Method and Description |
|---|---|
protected DefaultLayoutChangeStrategy.SettingAccess |
createAccess(DockFrontendInternals frontend,
Setting setting) |
protected PredefinedDockSituation |
createSituation(DockFrontendInternals frontend,
boolean entry,
boolean onSetLayout) |
protected Set<Dockable> |
estimateVisible(DockFrontendInternals frontend,
DockSituation situation,
DockLayoutComposition layout) |
protected Collection<Dockable> |
getClosingDockables(DockFrontendInternals frontend,
Set<Dockable> visible) |
protected DockLayoutComposition |
replaceMultipleDockables(DockFrontendInternals frontend,
CLayoutChangeStrategy.CSettingAccess setting,
DockLayoutComposition composition)
Checks the
DockLayout that is associated with composition and may replace
the layout by another layout if a MultipleCDockableFactory finds a match between an existing
item and meta-data about an item. |
protected boolean |
shouldPredefine(Dockable dockable) |
applyInvisibleLayout, applyLayout, approveClosing, createPerspective, createSituation, createTransformer, estimateLocations, getPlaceholderStrategy, listEstimateLocations, listLayouts, setLayout, shouldUpdateLayoutOnAddpublic CLayoutChangeStrategy(CControl control)
control - the control in whose realm this strategy will be usedprotected PredefinedDockSituation createSituation(DockFrontendInternals frontend, boolean entry, boolean onSetLayout)
createSituation in class DefaultLayoutChangeStrategyprotected boolean shouldPredefine(Dockable dockable)
shouldPredefine in class DefaultLayoutChangeStrategyprotected Set<Dockable> estimateVisible(DockFrontendInternals frontend, DockSituation situation, DockLayoutComposition layout)
estimateVisible in class DefaultLayoutChangeStrategyprotected Collection<Dockable> getClosingDockables(DockFrontendInternals frontend, Set<Dockable> visible)
getClosingDockables in class DefaultLayoutChangeStrategyprotected DockLayoutComposition replaceMultipleDockables(DockFrontendInternals frontend, CLayoutChangeStrategy.CSettingAccess setting, DockLayoutComposition composition)
DockLayout that is associated with composition and may replace
the layout by another layout if a MultipleCDockableFactory finds a match between an existing
item and meta-data about an item.frontend - the caller of this methodsetting - the layout that is about to be appliedcomposition - the composition to modify, may be nullnullprotected DefaultLayoutChangeStrategy.SettingAccess createAccess(DockFrontendInternals frontend, Setting setting)
createAccess in class DefaultLayoutChangeStrategyCopyright © 2018. All rights reserved.