public class CContentPerspective
extends java.lang.Object
CContentArea
. Please note that
CContentPerspective
is only a wrapper around a CPerspective
, two
CContentPerspective
represent the same CContentArea
if they have the
same identifier.Constructor and Description |
---|
CContentPerspective(CPerspective perspective,
java.lang.String id)
Creates a new perspective.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ensureType(java.lang.String id,
java.lang.Class<?> type)
Searches the
CStationPerspective with unique identifier id and makes sure the
station is either null or of type type . |
CGridPerspective |
getCenter()
Gets the station that is shown in the middle of the content-area.
|
CMinimizePerspective |
getEast()
Gets the station that is shown at the east side of the content-area.
|
java.lang.String |
getId()
Gets the unique identifier of this perspective
|
CMinimizePerspective |
getNorth()
Gets the station that is shown at the north side of the content-area.
|
CPerspective |
getPerspective()
Gets the
CPerspective in whose realm this CContentPerspective works. |
CMinimizePerspective |
getSouth()
Gets the station that is shown at the south side of the content-area.
|
CMinimizePerspective |
getWest()
Gets the station that is shown at the west side of the content-area.
|
public CContentPerspective(CPerspective perspective, java.lang.String id)
CPerspective.getContentArea()
to obtain
a CContentPerspective
.perspective
- a map containing the stations which are used by this perspectiveid
- the unique identifier of this perspectiveprotected void ensureType(java.lang.String id, java.lang.Class<?> type)
CStationPerspective
with unique identifier id
and makes sure the
station is either null
or of type type
.id
- the unique identifier of the stationtype
- the type of the stationjava.lang.IllegalStateException
- if the station has the wrong typepublic java.lang.String getId()
public CPerspective getPerspective()
CPerspective
in whose realm this CContentPerspective
works.null
public CGridPerspective getCenter()
public CMinimizePerspective getNorth()
public CMinimizePerspective getSouth()
public CMinimizePerspective getEast()
public CMinimizePerspective getWest()