|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.common.perspective.CPerspective
public class CPerspective
A CPerspective
is a lightweight, modifiable representation of all Dockable
s and DockStation
s
handled by a CControl
.
When using a CPerspective
clients have to be aware of:
CStation
used by a CControl
needs to be registered using addRoot(CStationPerspective)
Constructor Summary | |
---|---|
CPerspective(CControlAccess control)
Creates a new perspective |
Method Summary | |
---|---|
void |
addRoot(CStationPerspective station)
Adds a new root station to this perspective. |
java.util.Iterator<PerspectiveElement> |
elements()
Gets an iterator that will visit all the PerspectiveElement s of this CPerspective . |
CContentPerspective |
getContentArea()
Gets a representation of the default CContentArea . |
CContentPerspective |
getContentArea(java.lang.String id)
Gets a representation of the CContentArea with identifier id . |
LocationModeManagerPerspective |
getLocationManager()
Gets the representation of the CLocationModeManager , the representation
is responsible for finding out what ExtendedMode and location a
CDockablePerspective has. |
CStationPerspective |
getRoot(java.lang.String id)
Gets the station which was registered with the unique identifier id . |
java.lang.String[] |
getRootKeys()
Gets the names of all the stations that were registered as root station |
void |
shrink()
Searches all occurances of a ShrinkablePerspectiveStation and calls
shrink on them. |
Location |
storeLocation(CDockablePerspective dockable)
Determines the current location of dockable and stores that location
in a map using the ExtendedMode of the Location as key. |
void |
storeLocations()
Stores the current location of all CDockablePerspective s currently known to this
CPerspective . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CPerspective(CControlAccess control)
control
- the owner of this perspectiveMethod Detail |
---|
public LocationModeManagerPerspective getLocationManager()
CLocationModeManager
, the representation
is responsible for finding out what ExtendedMode
and location a
CDockablePerspective
has.
null
public void storeLocations()
CDockablePerspective
s currently known to this
CPerspective
. The location is stored in the LocationHistory
of each
dockable.
public Location storeLocation(CDockablePerspective dockable)
dockable
and stores that location
in a map using the ExtendedMode
of the Location
as key. If the
user later clicks on one of the buttons like "minimize" or "externalize" this
location information is read and applied.
dockable
- the element whose location should be stored
null
if the location of
dockable
could not be determinedpublic void addRoot(CStationPerspective station)
id
is
already registered, then this station gets replaced.
station
- the new stationpublic CStationPerspective getRoot(java.lang.String id)
id
.
id
- some unique identifier
id
, can be null
public java.lang.String[] getRootKeys()
null
public CContentPerspective getContentArea()
CContentArea
. If there are no
stations for the perspective, then the missing stations are automatically
added to this perspective.
public CContentPerspective getContentArea(java.lang.String id)
CContentArea
with identifier id
. If there are no
stations for the perspective, then the missing stations are automatically
added to this perspective.
id
- the unique identifier of the area
public void shrink()
ShrinkablePerspectiveStation
and calls
shrink
on them.
public java.util.Iterator<PerspectiveElement> elements()
PerspectiveElement
s of this CPerspective
. The
iterator does not check whether this perspective is modified while it is in use.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |