Class CContentPerspective
java.lang.Object
bibliothek.gui.dock.common.perspective.CContentPerspective
A representation of a
CContentArea. Please note that
CContentPerspective is only a wrapper around a CPerspective, two
CContentPerspective represent the same CContentArea if they have the
same identifier.- Author:
- Benjamin Sigg
-
Constructor Summary
ConstructorsConstructorDescriptionCContentPerspective(CPerspective perspective, String id) Creates a new perspective. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidensureType(String id, Class<?> type) Searches theCStationPerspectivewith unique identifieridand makes sure the station is eithernullor of typetype.Gets the station that is shown in the middle of the content-area.getEast()Gets the station that is shown at the east side of the content-area.getId()Gets the unique identifier of this perspectivegetNorth()Gets the station that is shown at the north side of the content-area.Gets theCPerspectivein whose realm thisCContentPerspectiveworks.getSouth()Gets the station that is shown at the south side of the content-area.getWest()Gets the station that is shown at the west side of the content-area.
-
Constructor Details
-
CContentPerspective
Creates a new perspective. Clients should useCPerspective.getContentArea()to obtain aCContentPerspective.- Parameters:
perspective- a map containing the stations which are used by this perspectiveid- the unique identifier of this perspective
-
-
Method Details
-
ensureType
Searches theCStationPerspectivewith unique identifieridand makes sure the station is eithernullor of typetype.- Parameters:
id- the unique identifier of the stationtype- the type of the station- Throws:
IllegalStateException- if the station has the wrong type
-
getId
Gets the unique identifier of this perspective- Returns:
- the unique identifier
-
getPerspective
Gets theCPerspectivein whose realm thisCContentPerspectiveworks.- Returns:
- the perspective, not
null
-
getCenter
Gets the station that is shown in the middle of the content-area.- Returns:
- the center
-
getNorth
Gets the station that is shown at the north side of the content-area.- Returns:
- the minimize-area at the top side
-
getSouth
Gets the station that is shown at the south side of the content-area.- Returns:
- the minimize-area at the bottom side
-
getEast
Gets the station that is shown at the east side of the content-area.- Returns:
- the minimize-area at the right side
-
getWest
Gets the station that is shown at the west side of the content-area.- Returns:
- the minimize-area at the left side
-