public class DefaultDockFrontendPerspective extends Object implements DockFrontendPerspective
DockFrontendPerspective is used by the
DefaultLayoutChangeStrategy and builds upon a PredefinedDockSituation.| Constructor and Description |
|---|
DefaultDockFrontendPerspective(DockFrontend frontend,
PredefinedPerspective perspective,
boolean entry)
Creates a new perspective
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply()
Applies the current layout to the
DockFrontend which created this perspective.Please note that implementations may restrict what information is applied, specifically: It may not be possible to add/remove root-stations through this method. Invisible elements may not be touched |
PredefinedPerspective |
getPerspective()
Gets the internal representation of this layout.
|
PropertyTransformer |
getPropertyTransformer()
Gets a
PropertyTransformer which is used to read and write
DockablePropertys. |
PerspectiveStation |
getRoot(String root)
Allows access to the root
DockStation named root. |
void |
store(String name)
Stores this perspective in the
DockFrontend using name as key. |
public DefaultDockFrontendPerspective(DockFrontend frontend, PredefinedPerspective perspective, boolean entry)
frontend - the DockFrontend in whose realm this perspective is usedperspective - the perspective to build upon, not nullentry - whether the layout is a full or regular layoutpublic PropertyTransformer getPropertyTransformer()
DockFrontendPerspectivePropertyTransformer which is used to read and write
DockablePropertys.getPropertyTransformer in interface DockFrontendPerspectivepublic PredefinedPerspective getPerspective()
DockFrontendPerspectivegetPerspective in interface DockFrontendPerspectivepublic PerspectiveStation getRoot(String root)
DockFrontendPerspectiveDockStation named root.getRoot in interface DockFrontendPerspectiveroot - the name of the stationnull if not foundpublic void apply()
DockFrontendPerspectiveDockFrontend which created this perspective.apply in interface DockFrontendPerspectivepublic void store(String name)
DockFrontendPerspectiveDockFrontend using name as key. The same restrictions
as found in DockFrontendPerspective.apply() may apply to this method.store in interface DockFrontendPerspectivename - the name of this layoutCopyright © 2017 Docking Frames. All rights reserved.