CentraSite Documentation : CentraSite Developer's Guide : Pluggable Architecture : Customizing Content Pages : Extension Points : Perspectives
Perspectives
Perspectives allow certain predefined screen layouts to be stored. When several perspectives are defined, it is possible to switch from one to the other easily.
The Perspective button will only be shown if more than one perspective is available. When you click the button, a popup dialog appears, which allows you to select the required perspective.
The perspective can be switched in two ways:
*Select one or more rows (perspectives) and click OK.
*Double click a single row.
Multiple perspectives will be represented in a way that the union of the corresponding topics is displayed on the right hand side. The header will be changed depending on the perspective to which the currently selected topic belongs.
The following features are provided for perspectives:
*A fixed set of perspectives as configured via extensions. You can switch a perspective via the Select Perspective dialog.
*A fixed set of topics per perspective. The association between topics and the corresponding perspective is established via the plug-in configuration file. Each declaration of a topic extension must contain a reference to the ID of the associated perspective extension.
*A perspective may contribute the following components:
*A name and an icon being used to represent the perspective in the Select Perspective dialog.
*An ICONLISTInfo object used to create a toolbar in the header frame. This can be suppressed if the perspective's supportsViews() method returns false.
*The label and valid values for the View list box. This can be suppressed.
*A tailored layout to be used as the workplace background. This will only be used if the perspective is used as the initial perspective. For more information, see Setting the Preferred Plug-In and Order of Plug-Ins.
Usage
Each plug-in may contribute a perspective to contain its own topics or the topics of other plug-ins
Attributes
*point="com.softwareag.cis.plugin.perspective"
*id
*class
Interface
*Perspective
*String getTitle()
(used in dynamically generated Select Perspective dialog)
*String getImageURL()
(used to represent a perspective by an icon in the Select Perspective dialog)
*Toolbar:
*ICONLISTInfo getToolbar()
*Logo
*String getLogoImageURL ()
(used for header frame)
*Handling of the View listbox:
*String getViewLabel()
*String[] getViewValues()
*String getView()
(returns the currently selected view)
*void setView(String view)
(called when the user changes the view selection)
*Default layout used for perspective background
*String getWorkplaceDefaultLayout();
(used for background of workplace if no activity is opened)
Abstract base class
AbstractPerspective
Provided by
PluggableUI
Example
(CentraSite Control/plugin.xml)
<extension point="com.softwareag.cis.plugin.perspective"
id="controlPerspective" <---+
class="com.centrasite.control.ext.ControlPerspective"> |
</extension> |
<extension point="com.softwareag.cis.plugin.topic" |
id="registry" |
perspective="com.centrasite.control.controlPerspective" ---+
class="com.centrasite.control.ext.ImportantTypesTopic">
</extension>
If a perspective is selected for display, all topics belonging to that perspective become visible. If one of these perspectives is selected in the navigation pane, the content of the header frame is adjusted with respect to the toolbar, the View listbox, and the visible logo.
Copyright © 2005-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback