public class CWorkingPerspective extends CGridPerspective
CWorkingArea
. When using this perspective to handle the children of a CWorkingArea
the following rules must be followed:
CDockablePerspective
to this station may trigger a call to CDockablePerspective.setWorkingArea(CStationPerspective)
, clients
can however first add/remove a dockable and then alter the working-area of the dockable to their likings.this
if the working-area had a value of null
null
if the working-area had a value of this
and if
isAutoUnset()
returns true
. MultipleCDockablePerspective
: if the working-area is set, then it is automatically set in the MultipleCDockable
as well.SingleCDockablePerspective
: if the working-area is set, then it is automatically set in the SingleCDockable
as well.PerspectiveStation
was added and then some children are added
to that station, then this CworkingPerspective
will not set the working-area property of the new children.CGridPerspective.CommonSplitDockPerspective
SingleCDockablePerspective.Intern
Constructor and Description |
---|
CWorkingPerspective(String id)
Creates a new working area.
|
CWorkingPerspective(String id,
Path typeId)
Creates a new working area.
|
Modifier and Type | Method and Description |
---|---|
protected CGridPerspective.CommonSplitDockPerspective |
create()
Called the first time
SingleCDockablePerspective.intern() is called, this method creates
the intern representation of this SingleCDockablePerspective . |
boolean |
isAutoUnset()
Tells whether the working-area of children is automatically set to
null when the children
are removed from this station. |
void |
setAutoUnset(boolean autoUnset)
Tells this station to set the
working-area
to null when a child of this station is removed. |
asStation, getFactoryID, getGridNodes, getMaximized, getPerspective, getPlaceholders, getRoot, getTypeId, grid, gridAdd, gridClear, gridDeploy, gridHorizontal, gridPlaceholder, gridPlaceholder, gridPrepare, gridSelect, gridVertical, intern, isAutoDeploy, isRoot, isWorkingArea, maximize, maximize, maybeDeploy, setAutoDeploy, setPerspective, setPlaceholders, setRoot, setWorkingArea, unpack
asDockable, getUniqueId
getLocationHistory, getParent, getWorkingArea, remove, setWorkingArea
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUniqueId
asDockable
public CWorkingPerspective(String id)
id
- the unique identifier of this areapublic void setAutoUnset(boolean autoUnset)
working-area
to null
when a child of this station is removed. The default value of this property is
false
.autoUnset
- whether the working-area should be automatically set to null
public boolean isAutoUnset()
null
when the children
are removed from this station.null
protected CGridPerspective.CommonSplitDockPerspective create()
SingleCDockablePerspective
SingleCDockablePerspective.intern()
is called, this method creates
the intern representation of this SingleCDockablePerspective
.create
in class CGridPerspective
this