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
DockableProperty s. |
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 null
entry
- whether the layout is a full or regular layoutpublic PropertyTransformer getPropertyTransformer()
DockFrontendPerspective
PropertyTransformer
which is used to read and write
DockableProperty
s.getPropertyTransformer
in interface DockFrontendPerspective
public PredefinedPerspective getPerspective()
DockFrontendPerspective
getPerspective
in interface DockFrontendPerspective
public PerspectiveStation getRoot(String root)
DockFrontendPerspective
DockStation
named root
.getRoot
in interface DockFrontendPerspective
root
- the name of the stationnull
if not foundpublic void apply()
DockFrontendPerspective
DockFrontend
which created this perspective.apply
in interface DockFrontendPerspective
public void store(String name)
DockFrontendPerspective
DockFrontend
using name
as key. The same restrictions
as found in DockFrontendPerspective.apply()
may apply to this method.store
in interface DockFrontendPerspective
name
- the name of this layout